/Linux-v5.4/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 | 246 AA_BUG(!dfa); in do_match_mnt() 247 AA_BUG(!perms); in do_match_mnt() 294 AA_BUG(!profile); in path_flags() 295 AA_BUG(!path); in path_flags() 325 AA_BUG(!profile); in match_mnt_path_str() 326 AA_BUG(!mntpath); in match_mnt_path_str() 327 AA_BUG(!buffer); in match_mnt_path_str() 380 AA_BUG(!profile); in match_mnt() 381 AA_BUG(devpath && !devbuffer); in match_mnt() 406 AA_BUG(!label); in aa_remount() [all …]
|
D | net.c | 113 AA_BUG(family >= AF_MAX); in aa_profile_af_perm() 114 AA_BUG(type < 0 || type >= SOCK_MAX); in aa_profile_af_perm() 148 AA_BUG(!label); in aa_label_sk_perm() 149 AA_BUG(!sk); in aa_label_sk_perm() 167 AA_BUG(!sk); in aa_sk_perm() 168 AA_BUG(in_interrupt()); in aa_sk_perm() 182 AA_BUG(!label); in aa_sock_file_perm() 183 AA_BUG(!sock); in aa_sock_file_perm() 184 AA_BUG(!sock->sk); in aa_sock_file_perm()
|
D | lsm.c | 806 AA_BUG(in_interrupt()); in apparmor_socket_create() 859 AA_BUG(!sock); in apparmor_socket_bind() 860 AA_BUG(!sock->sk); in apparmor_socket_bind() 861 AA_BUG(!address); in apparmor_socket_bind() 862 AA_BUG(in_interrupt()); in apparmor_socket_bind() 875 AA_BUG(!sock); in apparmor_socket_connect() 876 AA_BUG(!sock->sk); in apparmor_socket_connect() 877 AA_BUG(!address); in apparmor_socket_connect() 878 AA_BUG(in_interrupt()); in apparmor_socket_connect() 890 AA_BUG(!sock); in apparmor_socket_listen() [all …]
|
D | domain.c | 388 AA_BUG(!name); in __attach_match() 389 AA_BUG(!head); in __attach_match() 507 AA_BUG(!name); in x_table_lookup() 627 AA_BUG(!profile); in profile_transition() 628 AA_BUG(!bprm); in profile_transition() 629 AA_BUG(!buffer); in profile_transition() 749 AA_BUG(!profile); in profile_onexec() 750 AA_BUG(!onexec); in profile_onexec() 751 AA_BUG(!bprm); in profile_onexec() 752 AA_BUG(!buffer); in profile_onexec() [all …]
|
D | apparmorfs.c | 188 AA_BUG(!dir); in __aafs_setup_d_inode() 189 AA_BUG(!dentry); in __aafs_setup_d_inode() 240 AA_BUG(!name); in aafs_create() 241 AA_BUG(!parent); in aafs_create() 393 AA_BUG(copy_size > alloc_size); in aa_simple_write_to_buffer() 848 AA_BUG(n > MULTI_TRANSACTION_LIMIT); in multi_transaction_set() 1233 AA_BUG(file->private_data && in seq_rawdata_open() 1337 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata() 1351 AA_BUG(!ns); in __aa_fs_create_rawdata() 1352 AA_BUG(!rawdata); in __aa_fs_create_rawdata() [all …]
|
D | task.c | 47 AA_BUG(!label); in aa_replace_current_label() 123 AA_BUG(!label); in aa_set_current_hat() 172 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
|
D | policy.c | 113 AA_BUG(!list); in __add_profile() 114 AA_BUG(!profile); in __add_profile() 115 AA_BUG(!profile->ns); in __add_profile() 116 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile() 122 AA_BUG(l != &profile->label); in __add_profile() 140 AA_BUG(!profile); in __list_remove_profile() 141 AA_BUG(!profile->ns); in __list_remove_profile() 142 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __list_remove_profile() 156 AA_BUG(!profile); in __remove_profile() 157 AA_BUG(!profile->ns); in __remove_profile() [all …]
|
D | policy_ns.c | 248 AA_BUG(!parent); in __aa_create_ns() 249 AA_BUG(!name); in __aa_create_ns() 250 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns() 287 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
|
D | secid.c | 76 AA_BUG(!seclen); in apparmor_secid_to_secctx() 140 AA_BUG(ret == AA_SECID_INVALID); in aa_alloc_secid()
|
D | file.c | 134 AA_BUG(!aad(&sa)->request); in aa_audit_file() 568 AA_BUG(!sock); in __file_sock_perm() 604 AA_BUG(!label); in aa_file_perm() 605 AA_BUG(!file); in aa_file_perm() 611 AA_BUG(!flabel); in aa_file_perm()
|
D | match.c | 657 AA_BUG(!dfa); in leftmatch_fb() 658 AA_BUG(!str); in leftmatch_fb() 659 AA_BUG(!wb); in leftmatch_fb() 660 AA_BUG(!count); in leftmatch_fb()
|
D | procattr.c | 47 AA_BUG(len < 0); in aa_getprocattr()
|
D | policy_unpack.c | 125 AA_BUG(!data); in __aa_loaddata_update() 126 AA_BUG(!data->ns); in __aa_loaddata_update() 127 AA_BUG(!data->dents[AAFS_LOADDATA_REVISION]); in __aa_loaddata_update() 128 AA_BUG(!mutex_is_locked(&data->ns->lock)); in __aa_loaddata_update() 129 AA_BUG(data->revision > revision); in __aa_loaddata_update()
|
D | lib.c | 520 AA_BUG(on_list_rcu(&policy->profiles)); in aa_policy_destroy() 521 AA_BUG(on_list_rcu(&policy->list)); in aa_policy_destroy()
|
D | Kconfig | 56 Enable code assertions made with AA_BUG. These are primarily
|
D | audit.c | 128 AA_BUG(!profile); in aa_audit()
|
/Linux-v5.4/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 | 34 #define AA_BUG(X, args...) AA_BUG_FMT((X), "" args) macro 235 AA_BUG(!__new_); \
|
D | task.h | 71 AA_BUG(!ctx); in aa_clear_task_ctx_trans()
|
D | policy_unpack.h | 106 AA_BUG(data && !tmp); in aa_get_loaddata()
|
D | path.h | 51 #define AA_BUG_PREEMPT_ENABLED(X) AA_BUG(preempt_count() <= 0, X)
|
D | label.h | 425 AA_BUG(!l->proxy); in aa_get_newest_label() 426 AA_BUG(!l->proxy->label); in aa_get_newest_label() 432 AA_BUG(!tmp); in aa_get_newest_label()
|