Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-15 18:05:17 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-02-15 18:05:17 -0800
commit79352ac639fa8df9ef5425b4242dc0de3a569abd (patch)
tree1ada840e453a9f8c99af1e9b9c25b0b9d56dc0d6
parent86d3ef68854dfa6d537d75916b4a0c9c39f6dcbf (diff)
[PATCH] SELinux: context mount support - NFS
From: James Morris <jmorris@redhat.com> This patch modifies the kernel's NFS mount data structure to include SELinux context mount data. It allows NFS fileystems to be labeled on a per-mountpoint basis, and should not affect existing versions of userspace mount. (A patch to the userspace mount code is available at http://people.redhat.com/jmorris/selinux/context_mounts/)
-rw-r--r--include/linux/nfs_mount.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/nfs_mount.h b/include/linux/nfs_mount.h
index 23a9ff52537f..0071428231f9 100644
--- a/include/linux/nfs_mount.h
+++ b/include/linux/nfs_mount.h
@@ -20,7 +20,8 @@
* mount-to-kernel version compatibility. Some of these aren't used yet
* but here they are anyway.
*/
-#define NFS_MOUNT_VERSION 5
+#define NFS_MOUNT_VERSION 6
+#define NFS_MAX_CONTEXT_LEN 256
struct nfs_mount_data {
int version; /* 1 */
@@ -41,6 +42,7 @@ struct nfs_mount_data {
unsigned int bsize; /* 3 */
struct nfs3_fh root; /* 4 */
int pseudoflavor; /* 5 */
+ char context[NFS_MAX_CONTEXT_LEN + 1]; /* 6 */
};
/* bits in the flags field */