]> err.no Git - linux-2.6/commit
[PATCH] selinux: disable setxattr on mountpoint labeled filesystems
authorStephen Smalley <sds@tycho.nsa.gov>
Wed, 9 Nov 2005 05:34:33 +0000 (21:34 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:55:51 +0000 (07:55 -0800)
commit25a74f3ba8efb394e9a30d6de37566bf03fd3de8
tree8fbe98b01a13946c02a56ab7bab2c4ed077aee3f
parente517a0cd859ae0c4d9451107113fc2b076456f8f
[PATCH] selinux: disable setxattr on mountpoint labeled filesystems

This patch disables the setting of SELinux xattrs on files created in
filesystems labeled via mountpoint labeling (mounted with the context=
option).  selinux_inode_setxattr already prevents explicit setxattr from
userspace on such filesystems, so this provides consistent behavior for
file creation.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/hooks.c