| /linux/security/apparmor/ |
| H A D | label.c | 79 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 D | af_unix.c | 37 AA_BUG(!label); in unix_fs_perm() 38 AA_BUG(!path); in unix_fs_perm() 144 AA_BUG(!p); in match_to_cmd() 161 AA_BUG(!p); in match_to_peer() 179 AA_BUG(!profile); in match_label() 180 AA_BUG(!peer); in match_label() 209 AA_BUG(!profile); in profile_create_perm() 210 AA_BUG(profile_unconfined(profile)); in profile_create_perm() 234 AA_BUG(!profile); in profile_sk_perm() 235 AA_BUG(!sk); in profile_sk_perm() [all …]
|
| H A D | mount.c | 166 AA_BUG(!policy); in do_match_mnt() 167 AA_BUG(!policy->dfa); in do_match_mnt() 168 AA_BUG(!policy->perms); in do_match_mnt() 169 AA_BUG(!perms); in do_match_mnt() 216 AA_BUG(!profile); in path_flags() 217 AA_BUG(!path); in path_flags() 250 AA_BUG(!profile); in match_mnt_path_str() 251 AA_BUG(!mntpath); in match_mnt_path_str() 252 AA_BUG(!buffer); in match_mnt_path_str() 310 AA_BUG(!profile); in match_mnt() [all …]
|
| H A D | af_inet.c | 100 AA_BUG(!addr); in map_addr() 101 AA_BUG(!maddr); in map_addr() 172 AA_BUG(!sk); in bind_map_addr() 173 AA_BUG(!addr); in bind_map_addr() 174 AA_BUG(!maddr); in bind_map_addr() 235 AA_BUG(!profile); in profile_sk_perm() 236 AA_BUG(!sk); in profile_sk_perm() 246 AA_BUG(!profile); in profile_create_perm() 260 AA_BUG(!profile); in profile_remote_perm() 261 AA_BUG(!sk); in profile_remote_perm() [all …]
|
| H A D | domain.c | 316 AA_BUG(!path); in aa_xattrs_match() 317 AA_BUG(!profile); in aa_xattrs_match() 402 AA_BUG(!path); in find_attach() 403 AA_BUG(!name); in find_attach() 404 AA_BUG(!head); in find_attach() 532 AA_BUG(!name); in x_table_lookup() 680 AA_BUG(!profile); in profile_transition() 681 AA_BUG(!bprm); in profile_transition() 682 AA_BUG(!buffer); in profile_transition() 810 AA_BUG(!profile); in profile_onexec() [all …]
|
| H A D | net.c | 174 AA_BUG(!profile); in aa_do_perms() 175 AA_BUG(!policy); in aa_do_perms() 261 AA_BUG(family >= AF_MAX); in aa_profile_af_perm() 262 AA_BUG(type < 0 || type >= SOCK_MAX); in aa_profile_af_perm() 263 AA_BUG(profile_unconfined(profile)); in aa_profile_af_perm() 293 AA_BUG(!label); in aa_label_sk_perm() 294 AA_BUG(!sk); in aa_label_sk_perm() 315 AA_BUG(!sk); in aa_sk_perm() 316 AA_BUG(in_interrupt()); in aa_sk_perm() 332 AA_BUG(!label); in aa_sock_file_perm()
|
| H A D | apparmorfs.c | 209 AA_BUG(true, "unknown refcount type"); in aa_put_common_ref() 294 AA_BUG(!dir); in __aafs_setup_d_inode() 295 AA_BUG(!dentry); in __aafs_setup_d_inode() 347 AA_BUG(!name); in aafs_create() 348 AA_BUG(!parent); in aafs_create() 466 AA_BUG(copy_size > alloc_size); in aa_simple_write_to_buffer() 1108 AA_BUG(n > MULTI_TRANSACTION_LIMIT); in multi_transaction_set() 1515 AA_BUG(file->private_data && in seq_rawdata_open() 1655 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata() 1669 AA_BUG(!ns); in __aa_fs_create_rawdata() [all …]
|
| H A D | lsm.c | 634 AA_BUG(!profile); in profile_uring() 1263 AA_BUG(in_interrupt()); in apparmor_socket_create() 1338 AA_BUG("a_ctx != label"); in apparmor_socket_socketpair() 1343 AA_BUG("b_ctx != label"); in apparmor_socket_socketpair() 1374 AA_BUG(!sock); in apparmor_socket_bind() 1375 AA_BUG(!sock->sk); in apparmor_socket_bind() 1376 AA_BUG(!address); in apparmor_socket_bind() 1377 AA_BUG(in_interrupt()); in apparmor_socket_bind() 1392 AA_BUG(!sock); in apparmor_socket_connect() 1393 AA_BUG(!sock->sk); in apparmor_socket_connect() [all …]
|
| H A D | policy.c | 159 AA_BUG(!list); in __add_profile() 160 AA_BUG(!profile); in __add_profile() 161 AA_BUG(!profile->ns); in __add_profile() 162 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile() 168 AA_BUG(l != &profile->label); in __add_profile() 186 AA_BUG(!profile); in __list_remove_profile() 187 AA_BUG(!profile->ns); in __list_remove_profile() 188 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __list_remove_profile() 204 AA_BUG(!profile); in __remove_profile() 205 AA_BUG(!profile->ns); in __remove_profile() [all …]
|
| H A D | policy_ns.c | 222 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 D | policy_compat.c | 157 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 D | task.c | 54 AA_BUG(!label); in aa_replace_current_label() 153 AA_BUG(!label); in aa_set_current_hat() 202 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
|
| H A D | file.c | 134 AA_BUG(!ad.request); in aa_audit_file() 603 AA_BUG(!__is_unix_file(file)); in __unix_needs_revalidation() 635 AA_BUG(!label); in aa_file_perm() 636 AA_BUG(!file); in aa_file_perm() 646 AA_BUG(!flabel); in aa_file_perm()
|
| H A D | match.c | 756 AA_BUG(!dfa); in leftmatch_fb() 757 AA_BUG(!str); in leftmatch_fb() 758 AA_BUG(!wb); in leftmatch_fb() 759 AA_BUG(!count); in leftmatch_fb()
|
| H A D | procattr.c | 45 AA_BUG(len < 0); in aa_getprocattr()
|
| H A D | lib.c | 508 AA_BUG(on_list_rcu(&policy->profiles)); in aa_policy_destroy() 509 AA_BUG(on_list_rcu(&policy->list)); in aa_policy_destroy()
|
| H A D | policy_unpack.c | 85 AA_BUG(!data); in __aa_loaddata_update() 86 AA_BUG(!data->ns); in __aa_loaddata_update() 87 AA_BUG(!mutex_is_locked(&data->ns->lock)); in __aa_loaddata_update() 88 AA_BUG(data->revision > revision); in __aa_loaddata_update() 859 AA_BUG(!tags); in unpack_tags() 929 AA_BUG(!perms); in unpack_perms_table() 1694 AA_BUG(data->compressed_size > 0); in compress_loaddata()
|
| H A D | audit.c | 204 AA_BUG(!profile); in aa_audit()
|
| H A D | Kconfig | 33 Enable code assertions made with AA_BUG. These are primarily
|
| /linux/security/apparmor/include/ |
| H A D | label.h | 412 AA_BUG(!l->proxy); in aa_get_newest_label() 413 AA_BUG(!l->proxy->label); in aa_get_newest_label() 419 AA_BUG(!tmp); in aa_get_newest_label() 442 AA_BUG(!l->proxy); in aa_get_newest_label_condref() 443 AA_BUG(!l->proxy->label); in aa_get_newest_label_condref() 449 AA_BUG(!tmp); in aa_get_newest_label_condref()
|
| H A D | cred.h | 26 AA_BUG(!blob); in cred_label() 35 AA_BUG(!blob); in set_cred_label()
|
| H A D | task.h | 83 AA_BUG(!ctx); in aa_clear_task_ctx_trans()
|
| H A D | lib.h | 57 #define AA_BUG(X, args...) \ macro
|