Home
last modified time | relevance | path

Searched refs:aa_perms (Results 1 – 19 of 19) sorted by relevance

/linux/security/apparmor/include/
H A Dperms.h69 struct aa_perms { struct
99 extern struct aa_perms nullperms; argument
100 extern struct aa_perms allperms;
107 static inline void aa_perms_accum_raw(struct aa_perms *accum, in aa_perms_accum_raw()
108 struct aa_perms *addend) in aa_perms_accum_raw()
134 static inline void aa_perms_accum(struct aa_perms *accum, in aa_perms_accum()
135 struct aa_perms *addend) in aa_perms_accum()
200 extern struct aa_perms default_perms;
210 struct aa_perms *perms);
211 void aa_perms_accum(struct aa_perms *accum, struct aa_perms *addend);
[all …]
H A Dfile.h75 struct aa_profile *profile, struct aa_perms *perms,
80 struct aa_perms *aa_lookup_condperms(kuid_t subj_uid,
85 struct aa_perms *perms);
90 struct aa_perms *perms);
H A Dnet.h89 aa_state_t state, u32 request, struct aa_perms *p,
94 struct aa_perms **p, const char **info);
H A Dpolicy.h115 struct aa_perms *perms;
157 static inline struct aa_perms *aa_lookup_perms(struct aa_policydb *policy, in aa_lookup_perms()
H A Dlabel.h343 struct aa_perms;
347 u32 request, struct aa_perms *perms);
/linux/security/apparmor/
H A Dpolicy_compat.c100 static void compute_fperms_allow(struct aa_perms *perms, struct aa_dfa *dfa, in compute_fperms_allow()
112 static struct aa_perms compute_fperms_user(struct aa_dfa *dfa, in compute_fperms_user()
115 struct aa_perms perms = { }; in compute_fperms_user()
127 static struct aa_perms compute_fperms_other(struct aa_dfa *dfa, in compute_fperms_other()
130 struct aa_perms perms = { }; in compute_fperms_other()
150 static struct aa_perms *compute_fperms(struct aa_dfa *dfa, in compute_fperms()
155 struct aa_perms *table; in compute_fperms()
161 table = kvzalloc_objs(struct aa_perms, state_count * 2); in compute_fperms()
174 static struct aa_perms *compute_xmatch_perms(struct aa_dfa *xmatch, in compute_xmatch_perms()
177 struct aa_perms *perms; in compute_xmatch_perms()
[all …]
H A Dnet.c167 struct aa_perms *p, struct apparmor_audit_data *ad) in aa_do_perms()
169 struct aa_perms perms; in aa_do_perms()
188 static struct aa_perms *early_match(struct aa_policydb *policy, in early_match()
191 struct aa_perms *p; in early_match()
226 struct aa_perms **p, const char **info) in aa_match_to_prot()
255 struct aa_perms *p = NULL; in aa_profile_af_perm()
365 struct aa_perms perms = { }; in aa_secmark_perm()
H A Daf_unix.c88 struct aa_perms **p, in match_to_local()
124 struct unix_sock *u, struct aa_perms **p, in match_to_sk()
140 char cmd, struct aa_perms **p, in match_to_cmd()
158 struct aa_perms **p, const char **info) in match_to_peer()
175 struct aa_perms *p, in match_label()
230 struct aa_perms *p = NULL; in profile_sk_perm()
258 struct aa_perms *p = NULL; in profile_bind_perm()
289 struct aa_perms *p = NULL; in profile_listen_perm()
326 struct aa_perms *p = NULL; in profile_accept_perm()
356 struct aa_perms *p = NULL; in profile_opt_perm()
[all …]
H A Dfile.c96 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file()
175 struct aa_perms default_perms = {};
187 struct aa_perms *aa_lookup_condperms(kuid_t subj_uid, struct aa_policydb *rules, in aa_lookup_condperms()
216 struct aa_perms *perms) in aa_str_perms()
229 struct aa_perms *perms) in __aa_path_perm()
251 struct aa_perms *perms) in profile_path_perm()
285 struct aa_perms perms = {}; in aa_path_perm()
332 struct aa_perms lperms = {}, perms; in profile_path_link()
489 struct aa_perms perms = {}; in __file_path_perm()
H A Dlib.c23 struct aa_perms nullperms;
24 struct aa_perms allperms = { .allow = ALL_PERMS_MASK,
363 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms()
391 int type, u32 request, struct aa_perms *perms) in aa_profile_match_label()
420 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
H A Ddomain.c131 struct aa_perms *perms) in label_compound_match()
193 struct aa_perms *perms) in label_components_match()
198 struct aa_perms tmp; in label_components_match()
256 struct aa_perms *perms) in label_match()
291 struct aa_perms *perms) in change_profile_perms()
332 struct aa_perms *perms; in aa_xattrs_match()
423 struct aa_perms *perms; in find_attach()
670 struct aa_perms perms = {}; in profile_transition()
800 struct aa_perms perms = {}; in profile_onexec()
1229 struct aa_perms perms = {}; in aa_change_hat()
[all …]
H A Dcapability.c130 struct aa_perms perms = { }; in profile_capable()
206 struct aa_perms perms = { }; in aa_profile_capget()
H A Dmount.c139 struct aa_perms *perms, const char *info, int error) in audit_mount()
229 void *data, bool binary, struct aa_perms *perms) in do_match_mnt()
312 struct aa_perms perms = { }; in match_mnt_path_str()
606 struct aa_perms perms = { }; in profile_umount()
671 struct aa_perms perms = { }; in build_pivotroot()
H A Dtask.c233 struct aa_perms perms = { }; in profile_ptrace_perm()
351 struct aa_perms perms = { }; in aa_profile_ns_perm()
H A Dipc.c84 struct aa_perms perms; in profile_signal_perm()
H A Dlabel.c1295 struct aa_perms *perms) in label_compound_match()
1351 struct aa_perms *perms) in label_components_match()
1355 struct aa_perms tmp; in label_components_match()
1408 u32 request, struct aa_perms *perms) in aa_label_match()
H A Dpolicy_unpack.c899 static bool unpack_perm(struct aa_ext *e, u32 version, struct aa_perms *perm) in unpack_perm()
923 static ssize_t unpack_perms_table(struct aa_ext *e, struct aa_perms **perms) in unpack_perms_table()
941 *perms = kzalloc_objs(struct aa_perms, size); in unpack_perms_table()
1495 static bool verify_perm(struct aa_perms *perm) in verify_perm()
H A Dapparmorfs.c685 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb()
689 struct aa_perms tmp = { }; in profile_query_cb()
844 struct aa_perms perms; in query_label()
H A Dlsm.c634 struct aa_perms perms = { }; in profile_uring()
2463 nullpdb->perms = kzalloc_objs(struct aa_perms, 2); in aa_setup_dfa_engine()