/linux-6.12.1/security/apparmor/ |
D | label.c | 77 AA_BUG(!orig); in __aa_proxy_redirect() 78 AA_BUG(!new); in __aa_proxy_redirect() 111 AA_BUG(!a); in ns_cmp() 112 AA_BUG(!b); in ns_cmp() 113 AA_BUG(!a->base.hname); in ns_cmp() 114 AA_BUG(!b->base.hname); in ns_cmp() 139 AA_BUG(!a); in profile_cmp() 140 AA_BUG(!b); in profile_cmp() 141 AA_BUG(!a->ns); in profile_cmp() 142 AA_BUG(!b->ns); in profile_cmp() [all …]
|
D | mount.c | 233 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() 318 AA_BUG(!profile); in match_mnt_path_str() 319 AA_BUG(!mntpath); in match_mnt_path_str() 320 AA_BUG(!buffer); in match_mnt_path_str() 378 AA_BUG(!profile); in match_mnt() [all …]
|
D | net.c | 119 AA_BUG(family >= AF_MAX); in aa_profile_af_perm() 120 AA_BUG(type < 0 || type >= SOCK_MAX); in aa_profile_af_perm() 157 AA_BUG(!label); in aa_label_sk_perm() 158 AA_BUG(!sk); in aa_label_sk_perm() 177 AA_BUG(!sk); in aa_sk_perm() 178 AA_BUG(in_interrupt()); in aa_sk_perm() 192 AA_BUG(!label); in aa_sock_file_perm() 193 AA_BUG(!sock); in aa_sock_file_perm() 194 AA_BUG(!sock->sk); in aa_sock_file_perm()
|
D | domain.c | 393 AA_BUG(!name); in find_attach() 394 AA_BUG(!head); in find_attach() 522 AA_BUG(!name); in x_table_lookup() 646 AA_BUG(!profile); in profile_transition() 647 AA_BUG(!bprm); in profile_transition() 648 AA_BUG(!buffer); in profile_transition() 746 AA_BUG(!profile); in profile_onexec() 747 AA_BUG(!onexec); in profile_onexec() 748 AA_BUG(!bprm); in profile_onexec() 749 AA_BUG(!buffer); in profile_onexec() [all …]
|
D | lsm.c | 634 AA_BUG(!profile); in profile_uring() 1094 AA_BUG(in_interrupt()); in apparmor_socket_create() 1146 AA_BUG(!sock); in apparmor_socket_bind() 1147 AA_BUG(!sock->sk); in apparmor_socket_bind() 1148 AA_BUG(!address); in apparmor_socket_bind() 1149 AA_BUG(in_interrupt()); in apparmor_socket_bind() 1159 AA_BUG(!sock); in apparmor_socket_connect() 1160 AA_BUG(!sock->sk); in apparmor_socket_connect() 1161 AA_BUG(!address); in apparmor_socket_connect() 1162 AA_BUG(in_interrupt()); in apparmor_socket_connect() [all …]
|
D | apparmorfs.c | 221 AA_BUG(!dir); in __aafs_setup_d_inode() 222 AA_BUG(!dentry); in __aafs_setup_d_inode() 273 AA_BUG(!name); in aafs_create() 274 AA_BUG(!parent); in aafs_create() 394 AA_BUG(copy_size > alloc_size); in aa_simple_write_to_buffer() 850 AA_BUG(n > MULTI_TRANSACTION_LIMIT); in multi_transaction_set() 1252 AA_BUG(file->private_data && in seq_rawdata_open() 1430 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata() 1444 AA_BUG(!ns); in __aa_fs_create_rawdata() 1445 AA_BUG(!rawdata); in __aa_fs_create_rawdata() [all …]
|
D | policy.c | 151 AA_BUG(!list); in __add_profile() 152 AA_BUG(!profile); in __add_profile() 153 AA_BUG(!profile->ns); in __add_profile() 154 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile() 160 AA_BUG(l != &profile->label); in __add_profile() 178 AA_BUG(!profile); in __list_remove_profile() 179 AA_BUG(!profile->ns); in __list_remove_profile() 180 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __list_remove_profile() 194 AA_BUG(!profile); in __remove_profile() 195 AA_BUG(!profile->ns); in __remove_profile() [all …]
|
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() 261 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
|
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() 287 AA_BUG(!dfa); in remap_dfa_accept()
|
D | task.c | 52 AA_BUG(!label); in aa_replace_current_label() 125 AA_BUG(!label); in aa_set_current_hat() 174 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
|
D | file.c | 128 AA_BUG(!ad.request); in aa_audit_file() 540 AA_BUG(!sock); in __file_sock_perm() 580 AA_BUG(!label); in aa_file_perm() 581 AA_BUG(!file); in aa_file_perm() 587 AA_BUG(!flabel); in aa_file_perm()
|
D | match.c | 667 AA_BUG(!dfa); in leftmatch_fb() 668 AA_BUG(!str); in leftmatch_fb() 669 AA_BUG(!wb); in leftmatch_fb() 670 AA_BUG(!count); in leftmatch_fb()
|
D | secid.c | 71 AA_BUG(!seclen); in apparmor_secid_to_secctx()
|
D | procattr.c | 45 AA_BUG(len < 0); in aa_getprocattr()
|
D | lib.c | 479 AA_BUG(on_list_rcu(&policy->profiles)); in aa_policy_destroy() 480 AA_BUG(on_list_rcu(&policy->list)); in aa_policy_destroy()
|
D | policy_unpack.c | 83 AA_BUG(!data); in __aa_loaddata_update() 84 AA_BUG(!data->ns); in __aa_loaddata_update() 85 AA_BUG(!mutex_is_locked(&data->ns->lock)); in __aa_loaddata_update() 86 AA_BUG(data->revision > revision); in __aa_loaddata_update() 672 AA_BUG(!perms); in unpack_perms_table() 1376 AA_BUG(data->compressed_size > 0); in compress_loaddata()
|
D | audit.c | 170 AA_BUG(!profile); in aa_audit()
|
D | Kconfig | 33 Enable code assertions made with AA_BUG. These are primarily
|
/linux-6.12.1/security/apparmor/include/ |
D | cred.h | 26 AA_BUG(!blob); in cred_label() 35 AA_BUG(!blob); in set_cred_label() 51 AA_BUG(!label); in aa_cred_raw_label()
|
D | lib.h | 41 #define AA_BUG(X, args...) \ macro 253 AA_BUG(!__new_); \
|
D | task.h | 71 AA_BUG(!ctx); in aa_clear_task_ctx_trans()
|
D | label.h | 427 AA_BUG(!l->proxy); in aa_get_newest_label() 428 AA_BUG(!l->proxy->label); in aa_get_newest_label() 434 AA_BUG(!tmp); in aa_get_newest_label()
|
D | policy_unpack.h | 153 AA_BUG(data && !tmp); in aa_get_loaddata()
|