aboutsummaryrefslogtreecommitdiffstats
path: root/security/capability.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/capability.c')
-rw-r--r--security/capability.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/security/capability.c b/security/capability.c
index 185804f99ad1..b9e391425e6f 100644
--- a/security/capability.c
+++ b/security/capability.c
@@ -348,6 +348,16 @@ static void cap_cred_commit(struct cred *new, const struct cred *old)
348{ 348{
349} 349}
350 350
351static int cap_kernel_act_as(struct cred *new, u32 secid)
352{
353 return 0;
354}
355
356static int cap_kernel_create_files_as(struct cred *new, struct inode *inode)
357{
358 return 0;
359}
360
351static int cap_task_setuid(uid_t id0, uid_t id1, uid_t id2, int flags) 361static int cap_task_setuid(uid_t id0, uid_t id1, uid_t id2, int flags)
352{ 362{
353 return 0; 363 return 0;
@@ -889,6 +899,8 @@ void security_fixup_ops(struct security_operations *ops)
889 set_to_cap_if_null(ops, cred_free); 899 set_to_cap_if_null(ops, cred_free);
890 set_to_cap_if_null(ops, cred_prepare); 900 set_to_cap_if_null(ops, cred_prepare);
891 set_to_cap_if_null(ops, cred_commit); 901 set_to_cap_if_null(ops, cred_commit);
902 set_to_cap_if_null(ops, kernel_act_as);
903 set_to_cap_if_null(ops, kernel_create_files_as);
892 set_to_cap_if_null(ops, task_setuid); 904 set_to_cap_if_null(ops, task_setuid);
893 set_to_cap_if_null(ops, task_fix_setuid); 905 set_to_cap_if_null(ops, task_fix_setuid);
894 set_to_cap_if_null(ops, task_setgid); 906 set_to_cap_if_null(ops, task_setgid);