aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/selinux/genheaders/genheaders.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <[email protected]>2016-11-10 21:18:28 +0000
committerPaul Moore <[email protected]>2016-11-14 20:39:48 +0000
commitdb978da8fa1d0819b210c137d31a339149b88875 (patch)
tree877976508c0ebadc5372fecdb82f0e91121c1c1a /scripts/selinux/genheaders/genheaders.c
parentselinux: Minor cleanups (diff)
downloadkernel-db978da8fa1d0819b210c137d31a339149b88875.tar.gz
kernel-db978da8fa1d0819b210c137d31a339149b88875.zip
proc: Pass file mode to proc_pid_make_inode
Pass the file mode of the proc inode to be created to proc_pid_make_inode. In proc_pid_make_inode, initialize inode->i_mode before calling security_task_to_inode. This allows selinux to set isec->sclass right away without introducing "half-initialized" inode security structs. Signed-off-by: Andreas Gruenbacher <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'scripts/selinux/genheaders/genheaders.c')
0 files changed, 0 insertions, 0 deletions