aboutsummaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2016-07-13 10:44:48 -0400
committerPaul Moore <paul@paul-moore.com>2016-08-08 20:41:52 -0400
commit56909eb3f559103196ecbf2c08c923e0804980fb (patch)
tree5a0df1c21ea1acec5730298ef08df8b8d930cfe4 /security/security.c
parentsecurity, overlayfs: provide copy up security hook for unioned files (diff)
downloadlinux-dev-56909eb3f559103196ecbf2c08c923e0804980fb.tar.xz
linux-dev-56909eb3f559103196ecbf2c08c923e0804980fb.zip
selinux: Implementation for inode_copy_up() hook
A file is being copied up for overlay file system. Prepare a new set of creds and set create_sid appropriately so that new file is created with appropriate label. Overlay inode has right label for both context and non-context mount cases. In case of non-context mount, overlay inode will have the label of lower file and in case of context mount, overlay inode will have the label from context= mount option. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Acked-by: Stephen Smalley <sds@tycho.nsa.gov> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions