diff options
author | Eric Paris <eparis@redhat.com> | 2006-09-25 23:32:00 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 08:48:53 -0700 |
commit | 296fddf7513c155adbd3a443d12add1f62b5cddb (patch) | |
tree | 1fc7e3067f1b635b34a178fcb9a96b88bf5c626e /include | |
parent | f3f8771420737004da55159c2f2dc0b6f483a4ef (diff) | |
download | op-kernel-dev-296fddf7513c155adbd3a443d12add1f62b5cddb.zip op-kernel-dev-296fddf7513c155adbd3a443d12add1f62b5cddb.tar.gz |
[PATCH] SELinux: eliminate inode_security_set_security
inode_security_set_sid is only called by security_inode_init_security, which
is called when a new file is being created and needs to have its incore
security state initialized and its security xattr set. This helper used to be
called in other places in the past, but now only has the one. So this patch
rolls inode_security_set_sid directly back into security_inode_init_security.
There also is no need to hold the isec->sem while doing this, as the inode is
not available to other threads at this point in time.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions