[PATCH] ext2: Enable atomic inode security labeling
authorStephen Smalley <sds@tycho.nsa.gov>
Fri, 9 Sep 2005 20:01:39 +0000 (13:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:27 +0000 (13:57 -0700)
commit10f47e6a1b8b276323b652053945c87a63a5812d
treea927d6a4129cb9d76e96d2434b4dde7c1aff76d5
parent5e41ff9e0650f327a6c819841fa412da95d57319
[PATCH] ext2: Enable atomic inode security labeling

This patch modifies ext2 to call the inode_init_security LSM hook to obtain
the security attribute for a newly created inode and to set the resulting
attribute on the new inode.  This parallels the existing processing for
setting ACLs on newly created inodes.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ext2/ialloc.c
fs/ext2/xattr.h
fs/ext2/xattr_security.c