Home
last modified time | relevance | path

Searched refs:caps (Results 1 – 9 of 9) sorted by relevance

/security/apparmor/
Dcapability.c34 kernel_cap_t caps; member
75 !cap_raised(profile->caps.audit, cap))) in audit_caps()
79 cap_raised(profile->caps.kill, cap)) { in audit_caps()
81 } else if (cap_raised(profile->caps.quiet, cap) && in audit_caps()
90 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps()
98 cap_raise(ent->caps, cap); in audit_caps()
119 if (cap_raised(profile->caps.allow, cap) && in profile_capable()
120 !cap_raised(profile->caps.denied, cap)) in profile_capable()
DMakefile52 quiet_cmd_make-caps = GEN $@
53 cmd_make-caps = echo "static const char *const capability_names[] = {" > $@ ;\
102 $(call cmd,make-caps)
Dpolicy_unpack.c782 if (!unpack_u32(e, &(profile->caps.allow.cap[0]), NULL)) in unpack_profile()
784 if (!unpack_u32(e, &(profile->caps.audit.cap[0]), NULL)) in unpack_profile()
786 if (!unpack_u32(e, &(profile->caps.quiet.cap[0]), NULL)) in unpack_profile()
794 if (!unpack_u32(e, &(profile->caps.allow.cap[1]), NULL)) in unpack_profile()
796 if (!unpack_u32(e, &(profile->caps.audit.cap[1]), NULL)) in unpack_profile()
798 if (!unpack_u32(e, &(profile->caps.quiet.cap[1]), NULL)) in unpack_profile()
809 if (!unpack_u32(e, &(profile->caps.extended.cap[0]), NULL)) in unpack_profile()
811 if (!unpack_u32(e, &(profile->caps.extended.cap[1]), NULL)) in unpack_profile()
Dlsm.c169 profile->caps.allow); in apparmor_capget()
171 profile->caps.allow); in apparmor_capget()
Dpolicy.c223 aa_free_cap_rules(&profile->caps); in aa_free_profile()
/security/
Dcommoncap.c550 static inline int bprm_caps_from_vfs_caps(struct cpu_vfs_cap_data *caps, in bprm_caps_from_vfs_caps() argument
559 if (caps->magic_etc & VFS_CAP_FLAGS_EFFECTIVE) in bprm_caps_from_vfs_caps()
562 if (caps->magic_etc & VFS_CAP_REVISION_MASK) in bprm_caps_from_vfs_caps()
566 __u32 permitted = caps->permitted.cap[i]; in bprm_caps_from_vfs_caps()
567 __u32 inheritable = caps->inheritable.cap[i]; in bprm_caps_from_vfs_caps()
600 struct vfs_cap_data *caps = (struct vfs_cap_data *) &data; in get_vfs_caps_from_disk() local
623 cpu_caps->magic_etc = magic_etc = le32_to_cpu(caps->magic_etc); in get_vfs_caps_from_disk()
656 cpu_caps->permitted.cap[i] = le32_to_cpu(caps->data[i].permitted); in get_vfs_caps_from_disk()
657 cpu_caps->inheritable.cap[i] = le32_to_cpu(caps->data[i].inheritable); in get_vfs_caps_from_disk()
Dsecurity.c1513 unsigned caps = file->f_op->mmap_capabilities(file); in mmap_prot() local
1514 if (!(caps & NOMMU_MAP_EXEC)) in mmap_prot()
/security/apparmor/include/
Dcapability.h41 static inline void aa_free_cap_rules(struct aa_caps *caps) in aa_free_cap_rules() argument
Dpolicy.h147 struct aa_caps caps; member