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.c769 if (!unpack_u32(e, &(profile->caps.allow.cap[0]), NULL)) in unpack_profile()
771 if (!unpack_u32(e, &(profile->caps.audit.cap[0]), NULL)) in unpack_profile()
773 if (!unpack_u32(e, &(profile->caps.quiet.cap[0]), NULL)) in unpack_profile()
781 if (!unpack_u32(e, &(profile->caps.allow.cap[1]), NULL)) in unpack_profile()
783 if (!unpack_u32(e, &(profile->caps.audit.cap[1]), NULL)) in unpack_profile()
785 if (!unpack_u32(e, &(profile->caps.quiet.cap[1]), NULL)) in unpack_profile()
796 if (!unpack_u32(e, &(profile->caps.extended.cap[0]), NULL)) in unpack_profile()
798 if (!unpack_u32(e, &(profile->caps.extended.cap[1]), NULL)) in unpack_profile()
Dlsm.c159 profile->caps.allow); in apparmor_capget()
161 profile->caps.allow); in apparmor_capget()
Dpolicy.c223 aa_free_cap_rules(&profile->caps); in aa_free_profile()
/security/
Dcommoncap.c529 static inline int bprm_caps_from_vfs_caps(struct cpu_vfs_cap_data *caps, in bprm_caps_from_vfs_caps() argument
538 if (caps->magic_etc & VFS_CAP_FLAGS_EFFECTIVE) in bprm_caps_from_vfs_caps()
541 if (caps->magic_etc & VFS_CAP_REVISION_MASK) in bprm_caps_from_vfs_caps()
545 __u32 permitted = caps->permitted.cap[i]; in bprm_caps_from_vfs_caps()
546 __u32 inheritable = caps->inheritable.cap[i]; in bprm_caps_from_vfs_caps()
579 struct vfs_cap_data *caps = (struct vfs_cap_data *) &data; in get_vfs_caps_from_disk() local
602 cpu_caps->magic_etc = magic_etc = le32_to_cpu(caps->magic_etc); in get_vfs_caps_from_disk()
635 cpu_caps->permitted.cap[i] = le32_to_cpu(caps->data[i].permitted); in get_vfs_caps_from_disk()
636 cpu_caps->inheritable.cap[i] = le32_to_cpu(caps->data[i].inheritable); in get_vfs_caps_from_disk()
Dsecurity.c1435 unsigned caps = file->f_op->mmap_capabilities(file); in mmap_prot() local
1436 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