Home
last modified time | relevance | path

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

/linux/security/apparmor/include/
H A Dperms.h69 struct aa_perms { struct
99 extern const struct aa_perms nullperms; argument
100 extern const struct aa_perms allperms;
107 static inline void aa_perms_accum_raw(struct aa_perms *accum, in aa_perms_accum_raw()
108 const 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 const 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, const struct aa_perms *addend);
[all …]
H A Dfile.h75 struct aa_profile *profile, const 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, const struct aa_perms *p,
94 struct aa_perms **p, const char **info);
H A Dpolicy.h114 struct aa_perms *perms;
156 static inline struct aa_perms *aa_lookup_perms(struct aa_policydb *policy, in aa_lookup_perms()
H A Daudit.h187 int aa_select_audit_type(u32 denied, const struct aa_perms *perms);
H A Dlabel.h344 struct aa_perms;
348 u32 request, struct aa_perms *perms);
/linux/security/apparmor/
H A Dpolicy_compat.c100 static void compute_fperms_allow(struct aa_perms *perms, const struct aa_dfa *dfa, in compute_fperms_allow()
112 static struct aa_perms compute_fperms_user(const 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(const struct aa_dfa *dfa, in compute_fperms_other()
130 struct aa_perms perms = { }; in compute_fperms_other()
150 static struct aa_perms *compute_fperms(const 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(const struct aa_dfa *xmatch, in compute_xmatch_perms()
177 struct aa_perms *perms; in compute_xmatch_perms()
[all …]
H A Dnet.c170 const struct aa_perms *p, struct apparmor_audit_data *ad) in aa_do_perms()
172 struct aa_perms perms; in aa_do_perms()
191 static struct aa_perms *early_match(struct aa_policydb *policy, in early_match()
194 struct aa_perms *p; in early_match()
229 struct aa_perms **p, const char **info) in aa_match_to_prot()
258 struct aa_perms *p = NULL; in aa_profile_af_perm()
375 struct aa_perms perms = { }; in aa_secmark_perm()
H A Daf_unix.c89 struct aa_perms **p, in match_to_local()
125 struct unix_sock *u, struct aa_perms **p, in match_to_sk()
141 char cmd, struct aa_perms **p, in match_to_cmd()
159 struct aa_perms **p, const char **info) in match_to_peer()
176 const struct aa_perms *p, in match_label()
231 struct aa_perms *p = NULL; in profile_sk_perm()
259 struct aa_perms *p = NULL; in profile_bind_perm()
290 struct aa_perms *p = NULL; in profile_listen_perm()
327 struct aa_perms *p = NULL; in profile_accept_perm()
357 struct aa_perms *p = NULL; in profile_opt_perm()
[all …]
H A Dfile.c96 struct aa_profile *profile, const struct aa_perms *perms, in aa_audit_file()
182 struct aa_perms default_perms = {};
194 struct aa_perms *aa_lookup_condperms(kuid_t subj_uid, struct aa_policydb *rules, in aa_lookup_condperms()
223 struct aa_perms *perms) in aa_str_perms()
236 struct aa_perms *perms) in __aa_path_perm()
258 struct aa_perms *perms) in profile_path_perm()
292 struct aa_perms perms = {}; in aa_path_perm()
339 struct aa_perms lperms = {}, perms; in profile_path_link()
496 struct aa_perms perms = {}; in __file_path_perm()
H A Dlib.c23 const struct aa_perms nullperms;
24 const struct aa_perms allperms = { .allow = ALL_PERMS_MASK,
365 struct aa_perms *perms) in aa_apply_modes_to_perms()
396 int type, u32 request, struct aa_perms *perms) in aa_profile_match_label()
425 int aa_check_perms(struct aa_profile *profile, const struct aa_perms *perms, in aa_check_perms()
H A Ddomain.c133 struct aa_perms *perms) in label_compound_match()
195 struct aa_perms *perms) in label_components_match()
200 struct aa_perms tmp; in label_components_match()
258 struct aa_perms *perms) in label_match()
293 struct aa_perms *perms) in change_profile_perms()
337 struct aa_perms *perms; in aa_xattrs_match()
429 struct aa_perms *perms; in find_attach()
676 struct aa_perms perms = {}; in profile_transition()
806 struct aa_perms perms = {}; in profile_onexec()
917 struct aa_perms perms = { in priv_restricted_transition()
[all …]
H A Dcapability.c130 struct aa_perms perms = { }; in profile_capable()
206 struct aa_perms perms = { }; in aa_profile_capget()
H A Dmount.c162 void *data, bool binary, struct aa_perms *perms) in do_match_mnt()
245 struct aa_perms perms = { }; in match_mnt_path_str()
548 struct aa_perms perms = { }; in profile_umount()
614 struct aa_perms perms = { }; in build_pivotroot()
H A Dtask.c260 struct aa_perms perms = { }; in profile_ptrace_perm()
378 struct aa_perms perms = { }; in aa_profile_ns_perm()
H A Dipc.c84 struct aa_perms perms; in profile_signal_perm()
H A Daudit.c143 int aa_select_audit_type(u32 denied, const struct aa_perms *perms) in aa_select_audit_type()
H A Dlabel.c1333 struct aa_perms *perms) in label_compound_match()
1389 struct aa_perms *perms) in label_components_match()
1393 struct aa_perms tmp; in label_components_match()
1446 u32 request, struct aa_perms *perms) in aa_label_match()
H A Dpolicy_unpack.c900 static bool unpack_perm(struct aa_ext *e, u32 version, struct aa_perms *perm) in unpack_perm()
924 static ssize_t unpack_perms_table(struct aa_ext *e, struct aa_perms **perms) in unpack_perms_table()
942 *perms = kzalloc_objs(struct aa_perms, size); in unpack_perms_table()
1496 static bool verify_perm(const struct aa_perms *perm) in verify_perm()
H A Dapparmorfs.c860 struct aa_perms *perms, in profile_query_cb()
864 struct aa_perms tmp = { }; in profile_query_cb()
1020 struct aa_perms perms; in query_label()
H A Dlsm.c639 struct aa_perms perms = { }; in profile_uring()
2531 nullpdb->perms = kzalloc_objs(struct aa_perms, 2); in aa_setup_dfa_engine()