Inter-revision diff: patch 17

Comparing v24 (message) to v32 (message)

--- v24
+++ v32
@@ -4,8 +4,10 @@
 context so that security_release_secctx() can use the
 correct hook.
 
-Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
+Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
 Acked-by: Paul Moore <paul@paul-moore.com>
+Acked-by: Chuck Lever <chuck.lever@oracle.com>
+Reviewed-by: Kees Cook <keescook@chromium.org>
 Reviewed-by: John Johansen <john.johansen@canonical.com>
 Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
 Cc: linux-nfs@vger.kernel.org
@@ -16,10 +18,10 @@
  3 files changed, 23 insertions(+), 18 deletions(-)
 
 diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
-index 43698f15a52b..ac855bf37869 100644
+index fedc4b0292d6..4b77e6a13e78 100644
 --- a/fs/nfsd/nfs4xdr.c
 +++ b/fs/nfsd/nfs4xdr.c
-@@ -2717,11 +2717,11 @@ nfsd4_encode_layout_types(struct xdr_stream *xdr, u32 layout_types)
+@@ -2713,11 +2713,11 @@ nfsd4_encode_layout_types(struct xdr_stream *xdr, u32 layout_types)
  #ifdef CONFIG_NFSD_V4_SECURITY_LABEL
  static inline __be32
  nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp,
@@ -33,7 +35,7 @@
  	if (!p)
  		return nfserr_resource;
  
-@@ -2731,13 +2731,13 @@ nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp,
+@@ -2727,13 +2727,13 @@ nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp,
  	 */
  	*p++ = cpu_to_be32(0); /* lfs */
  	*p++ = cpu_to_be32(0); /* pi */
@@ -49,7 +51,7 @@
  { return 0; }
  #endif
  
-@@ -2834,9 +2834,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
+@@ -2830,9 +2830,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
  	int err;
  	struct nfs4_acl *acl = NULL;
  #ifdef CONFIG_NFSD_V4_SECURITY_LABEL
@@ -60,7 +62,7 @@
  #endif
  	bool contextsupport = false;
  	struct nfsd4_compoundres *resp = rqstp->rq_resp;
-@@ -2894,7 +2892,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
+@@ -2890,7 +2888,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
  	     bmval0 & FATTR4_WORD0_SUPPORTED_ATTRS) {
  		if (exp->ex_flags & NFSEXP_SECURITY_LABEL)
  			err = security_inode_getsecctx(d_inode(dentry),
@@ -69,7 +71,7 @@
  		else
  			err = -EOPNOTSUPP;
  		contextsupport = (err == 0);
-@@ -3314,8 +3312,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
+@@ -3310,8 +3308,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
  
  #ifdef CONFIG_NFSD_V4_SECURITY_LABEL
  	if (bmval2 & FATTR4_WORD2_SECURITY_LABEL) {
@@ -79,7 +81,7 @@
  		if (status)
  			goto out;
  	}
-@@ -3336,10 +3333,8 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
+@@ -3332,10 +3329,8 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
  
  out:
  #ifdef CONFIG_NFSD_V4_SECURITY_LABEL
@@ -93,10 +95,10 @@
  	kfree(acl);
  	if (tempfh) {
 diff --git a/include/linux/security.h b/include/linux/security.h
-index ead44674cea2..e5740e08bc0c 100644
+index 79554e5adb4c..e2939418789f 100644
 --- a/include/linux/security.h
 +++ b/include/linux/security.h
-@@ -571,7 +571,7 @@ void security_release_secctx(struct lsmcontext *cp);
+@@ -603,7 +603,7 @@ void security_release_secctx(struct lsmcontext *cp);
  void security_inode_invalidate_secctx(struct inode *inode);
  int security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen);
  int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen);
@@ -105,7 +107,7 @@
  int security_locked_down(enum lockdown_reason what);
  #else /* CONFIG_SECURITY */
  
-@@ -1418,7 +1418,8 @@ static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32
+@@ -1478,7 +1478,8 @@ static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32
  {
  	return -EOPNOTSUPP;
  }
@@ -116,10 +118,10 @@
  	return -EOPNOTSUPP;
  }
 diff --git a/security/security.c b/security/security.c
-index aab6d3f86e4a..ba39b9b13e08 100644
+index d56fcb794ff4..c9459c4754f3 100644
 --- a/security/security.c
 +++ b/security/security.c
-@@ -2324,9 +2324,18 @@ int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
+@@ -2421,9 +2421,18 @@ int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
  }
  EXPORT_SYMBOL(security_inode_setsecctx);
  
@@ -141,5 +143,5 @@
  EXPORT_SYMBOL(security_inode_getsecctx);
  
 -- 
-2.25.4
+2.31.1
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help