/Linux-v4.19/security/apparmor/ |
D | label.c | 81 AA_BUG(!orig); in __aa_proxy_redirect() 82 AA_BUG(!new); in __aa_proxy_redirect() 115 AA_BUG(!a); in ns_cmp() 116 AA_BUG(!b); in ns_cmp() 117 AA_BUG(!a->base.hname); in ns_cmp() 118 AA_BUG(!b->base.hname); in ns_cmp() 143 AA_BUG(!a); in profile_cmp() 144 AA_BUG(!b); in profile_cmp() 145 AA_BUG(!a->ns); in profile_cmp() 146 AA_BUG(!b->ns); in profile_cmp() [all …]
|
D | mount.c | 249 AA_BUG(!dfa); in do_match_mnt() 250 AA_BUG(!perms); in do_match_mnt() 297 AA_BUG(!profile); in path_flags() 298 AA_BUG(!path); in path_flags() 328 AA_BUG(!profile); in match_mnt_path_str() 329 AA_BUG(!mntpath); in match_mnt_path_str() 330 AA_BUG(!buffer); in match_mnt_path_str() 383 AA_BUG(!profile); in match_mnt() 384 AA_BUG(devpath && !devbuffer); in match_mnt() 409 AA_BUG(!label); in aa_remount() [all …]
|
D | net.c | 116 AA_BUG(family >= AF_MAX); in aa_profile_af_perm() 117 AA_BUG(type < 0 || type >= SOCK_MAX); in aa_profile_af_perm() 152 AA_BUG(!label); in aa_label_sk_perm() 153 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 | 812 AA_BUG(in_interrupt()); in apparmor_socket_create() 865 AA_BUG(!sock); in apparmor_socket_bind() 866 AA_BUG(!sock->sk); in apparmor_socket_bind() 867 AA_BUG(!address); in apparmor_socket_bind() 868 AA_BUG(in_interrupt()); in apparmor_socket_bind() 881 AA_BUG(!sock); in apparmor_socket_connect() 882 AA_BUG(!sock->sk); in apparmor_socket_connect() 883 AA_BUG(!address); in apparmor_socket_connect() 884 AA_BUG(in_interrupt()); in apparmor_socket_connect() 896 AA_BUG(!sock); in apparmor_socket_listen() [all …]
|
D | domain.c | 392 AA_BUG(!name); in __attach_match() 393 AA_BUG(!head); in __attach_match() 511 AA_BUG(!name); in x_table_lookup() 631 AA_BUG(!profile); in profile_transition() 632 AA_BUG(!bprm); in profile_transition() 633 AA_BUG(!buffer); in profile_transition() 753 AA_BUG(!profile); in profile_onexec() 754 AA_BUG(!onexec); in profile_onexec() 755 AA_BUG(!bprm); in profile_onexec() 756 AA_BUG(!buffer); in profile_onexec() [all …]
|
D | apparmorfs.c | 183 AA_BUG(!dir); in __aafs_setup_d_inode() 184 AA_BUG(!dentry); in __aafs_setup_d_inode() 235 AA_BUG(!name); in aafs_create() 236 AA_BUG(!parent); in aafs_create() 387 AA_BUG(copy_size > alloc_size); in aa_simple_write_to_buffer() 842 AA_BUG(n > MULTI_TRANSACTION_LIMIT); in multi_transaction_set() 1227 AA_BUG(file->private_data && in seq_rawdata_open() 1331 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata() 1345 AA_BUG(!ns); in __aa_fs_create_rawdata() 1346 AA_BUG(!rawdata); in __aa_fs_create_rawdata() [all …]
|
D | task.c | 51 AA_BUG(!label); in aa_replace_current_label() 127 AA_BUG(!label); in aa_set_current_hat() 176 AA_BUG(!cred_label(new)); in aa_restore_previous_label()
|
D | policy.c | 118 AA_BUG(!list); in __add_profile() 119 AA_BUG(!profile); in __add_profile() 120 AA_BUG(!profile->ns); in __add_profile() 121 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile() 127 AA_BUG(l != &profile->label); in __add_profile() 145 AA_BUG(!profile); in __list_remove_profile() 146 AA_BUG(!profile->ns); in __list_remove_profile() 147 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __list_remove_profile() 161 AA_BUG(!profile); in __remove_profile() 162 AA_BUG(!profile->ns); in __remove_profile() [all …]
|
D | policy_ns.c | 252 AA_BUG(!parent); in __aa_create_ns() 253 AA_BUG(!name); in __aa_create_ns() 254 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns() 291 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns()
|
D | secid.c | 82 AA_BUG(!seclen); in apparmor_secid_to_secctx() 146 AA_BUG(ret == AA_SECID_INVALID); in aa_alloc_secid()
|
D | file.c | 138 AA_BUG(!aad(&sa)->request); in aa_audit_file() 572 AA_BUG(!sock); in __file_sock_perm() 608 AA_BUG(!label); in aa_file_perm() 609 AA_BUG(!file); in aa_file_perm() 615 AA_BUG(!flabel); in aa_file_perm()
|
D | match.c | 661 AA_BUG(!dfa); in leftmatch_fb() 662 AA_BUG(!str); in leftmatch_fb() 663 AA_BUG(!wb); in leftmatch_fb() 664 AA_BUG(!count); in leftmatch_fb()
|
D | procattr.c | 51 AA_BUG(len < 0); in aa_getprocattr()
|
D | policy_unpack.c | 129 AA_BUG(!data); in __aa_loaddata_update() 130 AA_BUG(!data->ns); in __aa_loaddata_update() 131 AA_BUG(!data->dents[AAFS_LOADDATA_REVISION]); in __aa_loaddata_update() 132 AA_BUG(!mutex_is_locked(&data->ns->lock)); in __aa_loaddata_update() 133 AA_BUG(data->revision > revision); in __aa_loaddata_update()
|
D | lib.c | 522 AA_BUG(on_list_rcu(&policy->profiles)); in aa_policy_destroy() 523 AA_BUG(on_list_rcu(&policy->list)); in aa_policy_destroy()
|
D | audit.c | 132 AA_BUG(!profile); in aa_audit()
|
D | Kconfig | 71 Enable code assertions made with AA_BUG. These are primarily
|
/Linux-v4.19/security/apparmor/include/ |
D | lib.h | 37 #define AA_BUG(X, args...) AA_BUG_FMT((X), "" args) macro 235 AA_BUG(!__new_); \
|
D | task.h | 85 AA_BUG(!ctx); in aa_clear_task_ctx_trans()
|
D | policy_unpack.h | 110 AA_BUG(data && !tmp); in aa_get_loaddata()
|
D | cred.h | 41 AA_BUG(!label); in aa_cred_raw_label()
|
D | path.h | 55 #define AA_BUG_PREEMPT_ENABLED(X) AA_BUG(preempt_count() <= 0, X)
|
D | label.h | 429 AA_BUG(!l->proxy); in aa_get_newest_label() 430 AA_BUG(!l->proxy->label); in aa_get_newest_label() 436 AA_BUG(!tmp); in aa_get_newest_label()
|