Inter-revision diff: patch 17

Comparing v12 (message) to v26 (message)

--- v12
+++ v26
@@ -4,7 +4,12 @@
 context so that security_release_secctx() can use the
 correct hook.
 
+Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
+Acked-by: Paul Moore <paul@paul-moore.com>
+Acked-by: Chuck Lever <chuck.lever@oracle.com>
+Reviewed-by: John Johansen <john.johansen@canonical.com>
 Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
+Cc: linux-nfs@vger.kernel.org
 ---
  fs/nfsd/nfs4xdr.c        | 23 +++++++++--------------
  include/linux/security.h |  5 +++--
@@ -12,10 +17,10 @@
  3 files changed, 23 insertions(+), 18 deletions(-)
 
 diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
-index e20011281915..98d20178e60f 100644
+index 089ec4b61ef1..fc7ba114c298 100644
 --- a/fs/nfsd/nfs4xdr.c
 +++ b/fs/nfsd/nfs4xdr.c
-@@ -2304,11 +2304,11 @@ nfsd4_encode_layout_types(struct xdr_stream *xdr, u32 layout_types)
+@@ -2727,11 +2727,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,
@@ -29,7 +34,7 @@
  	if (!p)
  		return nfserr_resource;
  
-@@ -2318,13 +2318,13 @@ nfsd4_encode_security_label(struct xdr_stream *xdr, struct svc_rqst *rqstp,
+@@ -2741,13 +2741,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 */
@@ -45,7 +50,7 @@
  { return 0; }
  #endif
  
-@@ -2421,9 +2421,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
+@@ -2844,9 +2844,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
@@ -56,7 +61,7 @@
  #endif
  	bool contextsupport = false;
  	struct nfsd4_compoundres *resp = rqstp->rq_resp;
-@@ -2481,7 +2479,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
+@@ -2904,7 +2902,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),
@@ -65,7 +70,7 @@
  		else
  			err = -EOPNOTSUPP;
  		contextsupport = (err == 0);
-@@ -2911,8 +2909,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
+@@ -3324,8 +3322,7 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
  
  #ifdef CONFIG_NFSD_V4_SECURITY_LABEL
  	if (bmval2 & FATTR4_WORD2_SECURITY_LABEL) {
@@ -75,7 +80,7 @@
  		if (status)
  			goto out;
  	}
-@@ -2924,10 +2921,8 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
+@@ -3346,10 +3343,8 @@ nfsd4_encode_fattr(struct xdr_stream *xdr, struct svc_fh *fhp,
  
  out:
  #ifdef CONFIG_NFSD_V4_SECURITY_LABEL
@@ -89,10 +94,10 @@
  	kfree(acl);
  	if (tempfh) {
 diff --git a/include/linux/security.h b/include/linux/security.h
-index a5eba06a9382..d0fab9f5dddf 100644
+index 666bd85e142b..0129400ff6e9 100644
 --- a/include/linux/security.h
 +++ b/include/linux/security.h
-@@ -537,7 +537,7 @@ void security_release_secctx(struct lsmcontext *cp);
+@@ -585,7 +585,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);
@@ -101,7 +106,7 @@
  int security_locked_down(enum lockdown_reason what);
  #else /* CONFIG_SECURITY */
  
-@@ -1362,7 +1362,8 @@ static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32
+@@ -1461,7 +1461,8 @@ static inline int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32
  {
  	return -EOPNOTSUPP;
  }
@@ -112,10 +117,10 @@
  	return -EOPNOTSUPP;
  }
 diff --git a/security/security.c b/security/security.c
-index 8aa107b57af9..963641acf9dc 100644
+index 5bb41ca1fa9f..1e441c3491b5 100644
 --- a/security/security.c
 +++ b/security/security.c
-@@ -2207,9 +2207,18 @@ int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
+@@ -2395,9 +2395,18 @@ int security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)
  }
  EXPORT_SYMBOL(security_inode_setsecctx);
  
@@ -137,5 +142,5 @@
  EXPORT_SYMBOL(security_inode_getsecctx);
  
 -- 
-2.20.1
+2.29.2
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help