]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: Clean up initialization of isec->sclass
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 10 Nov 2016 21:18:29 +0000 (22:18 +0100)
committerPaul Moore <paul@paul-moore.com>
Mon, 14 Nov 2016 20:53:04 +0000 (15:53 -0500)
commitc3d42e965f19d4983b224fc28608fe6c2c36b76a
tree31dedd978a6e088a8d4e14741c37063027ad4a7c
parent1c6d7a92cd54fa28bd18eb4f27a4a707d874d563
selinux: Clean up initialization of isec->sclass

Now that isec->initialized == LABEL_INITIALIZED implies that
isec->sclass is valid, skip such inodes immediately in
inode_doinit_with_dentry.

For the remaining inodes, initialize isec->sclass at the beginning of
inode_doinit_with_dentry to simplify the code.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c