android_kernel_xiaomi_sm8350/security/selinux
Eric Paris 296fddf751 [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>
2006-09-26 08:48:53 -07:00
..
include [PATCH] selinux: add support for range transitions on object classes 2006-09-26 08:48:52 -07:00
ss [PATCH] selinux: add support for range transitions on object classes 2006-09-26 08:48:52 -07:00
avc.c [PATCH] support for context based audit filtering 2006-05-01 06:06:24 -04:00
exports.c [PATCH] selinux: rename selinux_ctxid_to_string 2006-09-26 08:48:52 -07:00
hooks.c [PATCH] SELinux: eliminate inode_security_set_security 2006-09-26 08:48:53 -07:00
Kconfig [PATCH] selinux: add support for range transitions on object classes 2006-09-26 08:48:52 -07:00
Makefile [PATCH] support for context based audit filtering 2006-05-01 06:06:24 -04:00
netif.c
netlink.c
nlmsgtab.c Merge branch 'audit.b3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current 2006-03-25 09:24:53 -08:00
selinuxfs.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
xfrm.c [MLSXFRM]: Auto-labeling of child sockets 2006-09-22 14:53:29 -07:00