Searched refs:kernel_cap_t (Results 1 – 10 of 10) sorted by relevance
| /linux/include/linux/ |
| H A D | capability.h | 24 typedef struct { u64 val; } kernel_cap_t; typedef 30 kernel_cap_t permitted; 31 kernel_cap_t inheritable; 35 #define _KERNEL_CAP_T_SIZE (sizeof(kernel_cap_t)) 66 # define CAP_EMPTY_SET ((kernel_cap_t) { 0 }) 67 # define CAP_FULL_SET ((kernel_cap_t) { CAP_VALID_MASK }) 68 # define CAP_FS_SET ((kernel_cap_t) { CAP_FS_MASK | BIT_ULL(CAP_LINUX_IMMUTABLE) }) 69 # define CAP_NFSD_SET ((kernel_cap_t) { CAP_FS_MASK | BIT_ULL(CAP_SYS_RESOURCE) }) 77 static inline kernel_cap_t cap_combine(const kernel_cap_t a, in cap_combine() 78 const kernel_cap_t b) in cap_combine() [all …]
|
| /linux/security/apparmor/include/ |
| H A D | capability.h | 30 kernel_cap_t allow; 31 kernel_cap_t audit; 32 kernel_cap_t denied; 33 kernel_cap_t quiet; 34 kernel_cap_t kill; 35 kernel_cap_t extended; 40 kernel_cap_t aa_profile_capget(const struct aa_profile *profile);
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_deny_namespace.c | 8 typedef struct { unsigned long long val; } kernel_cap_t; typedef 11 kernel_cap_t cap_effective; 19 kernel_cap_t caps = cred->cap_effective; in BPF_PROG()
|
| /linux/kernel/ |
| H A D | capability.c | 105 static inline int cap_get_target_pid(pid_t pid, kernel_cap_t *pEp, in cap_get_target_pid() 106 kernel_cap_t *pIp, kernel_cap_t *pPp) in cap_get_target_pid() 142 kernel_cap_t pE, pI, pP; in SYSCALL_DEFINE2() 193 static kernel_cap_t mk_kernel_cap(u32 low, u32 high) in mk_kernel_cap() 195 return (kernel_cap_t) { (low | ((u64)high << 32)) & CAP_VALID_MASK }; in mk_kernel_cap() 220 kernel_cap_t inheritable, permitted, effective; in SYSCALL_DEFINE2()
|
| /linux/security/apparmor/ |
| H A D | capability.c | 194 kernel_cap_t aa_profile_capget(const struct aa_profile *profile) in aa_profile_capget() 201 kernel_cap_t caps = CAP_EMPTY_SET; in aa_profile_capget()
|
| H A D | lsm.c | 166 static int apparmor_capget(const struct task_struct *target, kernel_cap_t *effective, in apparmor_capget() 167 kernel_cap_t *inheritable, kernel_cap_t *permitted) in apparmor_capget() 185 kernel_cap_t allowed; in apparmor_capget()
|
| H A D | policy_unpack.c | 329 static bool aa_unpack_cap_low(struct aa_ext *e, kernel_cap_t *data, const char *name) in aa_unpack_cap_low() 339 static bool aa_unpack_cap_high(struct aa_ext *e, kernel_cap_t *data, const char *name) in aa_unpack_cap_high() 1126 kernel_cap_t tmpcap; in unpack_profile()
|
| /linux/security/ |
| H A D | commoncap.c | 168 const kernel_cap_t *caller_caps; in cap_ptrace_access_check() 230 int cap_capget(const struct task_struct *target, kernel_cap_t *effective, in cap_capget() 231 kernel_cap_t *inheritable, kernel_cap_t *permitted) in cap_capget() 274 const kernel_cap_t *effective, in cap_capset() 275 const kernel_cap_t *inheritable, in cap_capset() 276 const kernel_cap_t *permitted) in cap_capset()
|
| H A D | security.c | 613 kernel_cap_t *effective, in security_capget() 614 kernel_cap_t *inheritable, in security_capget() 615 kernel_cap_t *permitted) in security_capget() 634 const kernel_cap_t *effective, in security_capset() 635 const kernel_cap_t *inheritable, in security_capset() 636 const kernel_cap_t *permitted) in security_capset()
|
| /linux/security/selinux/ |
| H A D | hooks.c | 2162 static int selinux_capget(const struct task_struct *target, kernel_cap_t *effective, in selinux_capget() 2163 kernel_cap_t *inheritable, kernel_cap_t *permitted) in selinux_capget() 2170 const kernel_cap_t *effective, in selinux_capset() 2171 const kernel_cap_t *inheritable, in selinux_capset() 2172 const kernel_cap_t *permitted) in selinux_capset()
|