linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] NFSv4.2: Fix a mismatch between Linux labeled NFS and the NFSv4.2 spec
@ 2013-11-04 20:51 Trond Myklebust
  2013-11-04 20:51 ` [PATCH 2/5] NFS: __nfs_revalidate_inode() - use the nfs4_label to update file security info Trond Myklebust
  2013-11-04 21:27 ` [PATCH 1/5] NFSv4.2: Fix a mismatch between Linux labeled NFS and the NFSv4.2 spec J Bruce Fields
  0 siblings, 2 replies; 9+ messages in thread
From: Trond Myklebust @ 2013-11-04 20:51 UTC (permalink / raw)
  To: Linux NFS; +Cc: J Bruce Fields, Steve Dickson, Jeff Layton, David Quigley

In the spec, the security label attribute id is '80', which means that
it should be bit number 80-64 == 16 in the 3rd word of the bitmap.

Fixes: 4488cc96c581: NFS: Add NFSv4.2 protocol constants
Cc: J. Bruce Fields <bfields@fieldses.org>
Cc: Steve Dickson <steved@redhat.com>
Cc: stable@vger.kernel.org # 3.11+
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---
 include/linux/nfs4.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h
index c56fa8fedce9..bfe6c379a24e 100644
--- a/include/linux/nfs4.h
+++ b/include/linux/nfs4.h
@@ -395,7 +395,7 @@ enum lock_type4 {
 #define FATTR4_WORD1_FS_LAYOUT_TYPES    (1UL << 30)
 #define FATTR4_WORD2_LAYOUT_BLKSIZE     (1UL << 1)
 #define FATTR4_WORD2_MDSTHRESHOLD       (1UL << 4)
-#define FATTR4_WORD2_SECURITY_LABEL     (1UL << 17)
+#define FATTR4_WORD2_SECURITY_LABEL     (1UL << 16)
 
 /* MDS threshold bitmap bits */
 #define THRESHOLD_RD                    (1UL << 0)
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-11-04 21:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04 20:51 [PATCH 1/5] NFSv4.2: Fix a mismatch between Linux labeled NFS and the NFSv4.2 spec Trond Myklebust
2013-11-04 20:51 ` [PATCH 2/5] NFS: __nfs_revalidate_inode() - use the nfs4_label to update file security info Trond Myklebust
2013-11-04 20:51   ` [PATCH 3/5] NFSv4.2: encode_readdir - only ask for labels when doing readdirplus Trond Myklebust
2013-11-04 20:51     ` [PATCH 4/5] NFSv4: Sanity check the server reply in _nfs4_server_capabilities Trond Myklebust
2013-11-04 20:51       ` [PATCH 5/5] NFSv4.2: Remove redundant checks in nfs_setsecurity+nfs4_label_init_security Trond Myklebust
2013-11-04 21:00   ` [PATCH 2/5] NFS: __nfs_revalidate_inode() - use the nfs4_label to update file security info Myklebust, Trond
2013-11-04 21:24     ` Jeff Layton
2013-11-04 21:38       ` Myklebust, Trond
2013-11-04 21:27 ` [PATCH 1/5] NFSv4.2: Fix a mismatch between Linux labeled NFS and the NFSv4.2 spec J Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).