Re: [PATCH 7/9] selinux: Implement dentry_create_files_as() hook

2016-07-13 Thread Stephen Smalley
On 07/13/2016 10:44 AM, Vivek Goyal wrote: > Calculate what would be the label of newly created file and set that secid > in the passed creds. > > Context of the task which is actually creating file is retrieved from > set of creds passed in. (old->security). > > Signed-off-by: Vivek Goyal

Re: [PATCH 7/9] selinux: Implement dentry_create_files_as() hook

2016-07-13 Thread Stephen Smalley
On 07/13/2016 10:44 AM, Vivek Goyal wrote: > Calculate what would be the label of newly created file and set that secid > in the passed creds. > > Context of the task which is actually creating file is retrieved from > set of creds passed in. (old->security). > > Signed-off-by: Vivek Goyal

[PATCH 7/9] selinux: Implement dentry_create_files_as() hook

2016-07-13 Thread Vivek Goyal
Calculate what would be the label of newly created file and set that secid in the passed creds. Context of the task which is actually creating file is retrieved from set of creds passed in. (old->security). Signed-off-by: Vivek Goyal --- security/selinux/hooks.c | 22

[PATCH 7/9] selinux: Implement dentry_create_files_as() hook

2016-07-13 Thread Vivek Goyal
Calculate what would be the label of newly created file and set that secid in the passed creds. Context of the task which is actually creating file is retrieved from set of creds passed in. (old->security). Signed-off-by: Vivek Goyal --- security/selinux/hooks.c | 22 ++ 1