]> Git Repo - linux.git/commit - security/selinux/hooks.c
selinux: Clean up initialization of isec->sclass
authorAndreas Gruenbacher <[email protected]>
Thu, 10 Nov 2016 21:18:29 +0000 (22:18 +0100)
committerPaul Moore <[email protected]>
Mon, 14 Nov 2016 20:53:04 +0000 (15:53 -0500)
commit13457d073c29da92001f6ee809075eaa8757fb96
tree31dedd978a6e088a8d4e14741c37063027ad4a7c
parentdb978da8fa1d0819b210c137d31a339149b88875
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 <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
security/selinux/hooks.c
This page took 0.047911 seconds and 4 git commands to generate.