Home
last modified time | relevance | path

Searched refs:AA_BUG (Results 1 – 22 of 22) sorted by relevance

/linux/security/apparmor/
H A Dlabel.c79 AA_BUG(!orig); in __aa_proxy_redirect()
80 AA_BUG(!new); in __aa_proxy_redirect()
113 AA_BUG(!a); in ns_cmp()
114 AA_BUG(!b); in ns_cmp()
115 AA_BUG(!a->base.hname); in ns_cmp()
116 AA_BUG(!b->base.hname); in ns_cmp()
141 AA_BUG(!a); in profile_cmp()
142 AA_BUG(!b); in profile_cmp()
143 AA_BUG(!a->ns); in profile_cmp()
144 AA_BUG(!b->ns); in profile_cmp()
[all …]
H A Daf_unix.c36 AA_BUG(!label); in unix_fs_perm()
37 AA_BUG(!path); in unix_fs_perm()
143 AA_BUG(!p); in match_to_cmd()
160 AA_BUG(!p); in match_to_peer()
178 AA_BUG(!profile); in match_label()
179 AA_BUG(!peer); in match_label()
208 AA_BUG(!profile); in profile_create_perm()
209 AA_BUG(profile_unconfined(profile)); in profile_create_perm()
233 AA_BUG(!profile); in profile_sk_perm()
234 AA_BUG(!sk); in profile_sk_perm()
[all …]
H A Dmount.c233 AA_BUG(!policy); in do_match_mnt()
234 AA_BUG(!policy->dfa); in do_match_mnt()
235 AA_BUG(!policy->perms); in do_match_mnt()
236 AA_BUG(!perms); in do_match_mnt()
283 AA_BUG(!profile); in path_flags()
284 AA_BUG(!path); in path_flags()
317 AA_BUG(!profile); in match_mnt_path_str()
318 AA_BUG(!mntpath); in match_mnt_path_str()
319 AA_BUG(!buffer); in match_mnt_path_str()
376 AA_BUG(!profile); in match_mnt()
[all …]
H A Dnet.c171 AA_BUG(!profile); in aa_do_perms()
172 AA_BUG(!policy); in aa_do_perms()
258 AA_BUG(family >= AF_MAX); in aa_profile_af_perm()
259 AA_BUG(type < 0 || type >= SOCK_MAX); in aa_profile_af_perm()
260 AA_BUG(profile_unconfined(profile)); in aa_profile_af_perm()
291 AA_BUG(!label); in aa_label_sk_perm()
292 AA_BUG(!sk); in aa_label_sk_perm()
311 AA_BUG(!sk); in aa_sk_perm()
312 AA_BUG(in_interrupt()); in aa_sk_perm()
328 AA_BUG(!label); in aa_sock_file_perm()
H A Ddomain.c397 AA_BUG(!name); in find_attach()
398 AA_BUG(!head); in find_attach()
526 AA_BUG(!name); in x_table_lookup()
674 AA_BUG(!profile); in profile_transition()
675 AA_BUG(!bprm); in profile_transition()
676 AA_BUG(!buffer); in profile_transition()
804 AA_BUG(!profile); in profile_onexec()
805 AA_BUG(!onexec); in profile_onexec()
806 AA_BUG(!bprm); in profile_onexec()
807 AA_BUG(!buffer); in profile_onexec()
[all …]
H A Dapparmorfs.c204 AA_BUG(true, "unknown refcount type"); in aa_put_common_ref()
289 AA_BUG(!dir); in __aafs_setup_d_inode()
290 AA_BUG(!dentry); in __aafs_setup_d_inode()
342 AA_BUG(!name); in aafs_create()
343 AA_BUG(!parent); in aafs_create()
472 AA_BUG(copy_size > alloc_size); in aa_simple_write_to_buffer()
942 AA_BUG(n > MULTI_TRANSACTION_LIMIT); in multi_transaction_set()
1343 AA_BUG(file->private_data && in seq_rawdata_open()
1519 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata()
1533 AA_BUG(!ns); in __aa_fs_create_rawdata()
[all …]
H A Dlsm.c628 AA_BUG(!profile); in profile_uring()
1259 AA_BUG(in_interrupt()); in apparmor_socket_create()
1325 AA_BUG("a_ctx != label"); in apparmor_socket_socketpair()
1330 AA_BUG("b_ctx != label"); in apparmor_socket_socketpair()
1361 AA_BUG(!sock); in apparmor_socket_bind()
1362 AA_BUG(!sock->sk); in apparmor_socket_bind()
1363 AA_BUG(!address); in apparmor_socket_bind()
1364 AA_BUG(in_interrupt()); in apparmor_socket_bind()
1374 AA_BUG(!sock); in apparmor_socket_connect()
1375 AA_BUG(!sock->sk); in apparmor_socket_connect()
[all …]
H A Dpolicy.c158 AA_BUG(!list); in __add_profile()
159 AA_BUG(!profile); in __add_profile()
160 AA_BUG(!profile->ns); in __add_profile()
161 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile()
167 AA_BUG(l != &profile->label); in __add_profile()
185 AA_BUG(!profile); in __list_remove_profile()
186 AA_BUG(!profile->ns); in __list_remove_profile()
187 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __list_remove_profile()
203 AA_BUG(!profile); in __remove_profile()
204 AA_BUG(!profile->ns); in __remove_profile()
[all …]
H A Dpolicy_ns.c222 AA_BUG(!parent); in __aa_create_ns()
223 AA_BUG(!name); in __aa_create_ns()
224 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns()
263 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
H A Dpolicy_compat.c157 AA_BUG(!dfa); in compute_fperms()
181 AA_BUG(!xmatch); in compute_xmatch_perms()
256 AA_BUG(!dfa); in compute_perms()
293 AA_BUG(!dfa); in remap_dfa_accept()
H A Dtask.c53 AA_BUG(!label); in aa_replace_current_label()
126 AA_BUG(!label); in aa_set_current_hat()
175 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
H A Dfile.c130 AA_BUG(!ad.request); in aa_audit_file()
596 AA_BUG(!__is_unix_file(file)); in __unix_needs_revalidation()
628 AA_BUG(!label); in aa_file_perm()
629 AA_BUG(!file); in aa_file_perm()
639 AA_BUG(!flabel); in aa_file_perm()
H A Dmatch.c749 AA_BUG(!dfa); in leftmatch_fb()
750 AA_BUG(!str); in leftmatch_fb()
751 AA_BUG(!wb); in leftmatch_fb()
752 AA_BUG(!count); in leftmatch_fb()
H A Dprocattr.c45 AA_BUG(len < 0); in aa_getprocattr()
H A Dlib.c509 AA_BUG(on_list_rcu(&policy->profiles)); in aa_policy_destroy()
510 AA_BUG(on_list_rcu(&policy->list)); in aa_policy_destroy()
H A Dpolicy_unpack.c84 AA_BUG(!data); in __aa_loaddata_update()
85 AA_BUG(!data->ns); in __aa_loaddata_update()
86 AA_BUG(!mutex_is_locked(&data->ns->lock)); in __aa_loaddata_update()
87 AA_BUG(data->revision > revision); in __aa_loaddata_update()
858 AA_BUG(!tags); in unpack_tags()
927 AA_BUG(!perms); in unpack_perms_table()
1691 AA_BUG(data->compressed_size > 0); in compress_loaddata()
H A Daudit.c170 AA_BUG(!profile); in aa_audit()
H A DKconfig33 Enable code assertions made with AA_BUG. These are primarily
/linux/security/apparmor/include/
H A Dcred.h26 AA_BUG(!blob); in cred_label()
35 AA_BUG(!blob); in set_cred_label()
H A Dlabel.h411 AA_BUG(!l->proxy); in aa_get_newest_label()
412 AA_BUG(!l->proxy->label); in aa_get_newest_label()
418 AA_BUG(!tmp); in aa_get_newest_label()
H A Dlib.h57 #define AA_BUG(X, args...) \ macro
307 AA_BUG(!__new_); \
H A Dtask.h71 AA_BUG(!ctx); in aa_clear_task_ctx_trans()