/security/apparmor/ |
D | policy_ns.c | 104 mutex_init(&ns->lock); in alloc_ns() 254 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns() 259 mutex_lock(&ns->lock); in __aa_create_ns() 264 mutex_unlock(&ns->lock); in __aa_create_ns() 273 mutex_unlock(&ns->lock); in __aa_create_ns() 291 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns() 316 mutex_lock(&parent->lock); in aa_prepare_ns() 322 mutex_unlock(&parent->lock); in aa_prepare_ns() 339 mutex_lock(&ns->lock); in destroy_ns() 349 write_lock_irqsave(&ns->labels.lock, flags); in destroy_ns() [all …]
|
D | label.c | 83 AA_BUG(!write_is_locked(&labels_set(orig)->lock)); in __aa_proxy_redirect() 86 &labels_ns(orig)->lock); in __aa_proxy_redirect() 574 AA_BUG(!write_is_locked(&ls->lock)); in __label_remove() 611 AA_BUG(!write_is_locked(&ls->lock)); in __label_replace() 648 AA_BUG(!write_is_locked(&ls->lock)); in __label_insert() 755 write_lock_irqsave(&ls->lock, flags); in aa_label_remove() 757 write_unlock_irqrestore(&ls->lock, flags); in aa_label_remove() 776 write_lock_irqsave(&labels_set(old)->lock, flags); in aa_label_replace() 782 write_unlock_irqrestore(&labels_set(old)->lock, flags); in aa_label_replace() 787 write_lock_irqsave(&ls->lock, flags); in aa_label_replace() [all …]
|
D | apparmorfs.c | 542 mutex_lock(&rev->ns->lock); in ns_revision_read() 545 mutex_unlock(&rev->ns->lock); in ns_revision_read() 552 mutex_lock(&rev->ns->lock); in ns_revision_read() 560 mutex_unlock(&rev->ns->lock); in ns_revision_read() 586 mutex_lock(&rev->ns->lock); in ns_revision_poll() 590 mutex_unlock(&rev->ns->lock); in ns_revision_poll() 1342 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata() 1358 AA_BUG(!mutex_is_locked(&ns->lock)); in __aa_fs_create_rawdata() 1455 AA_BUG(!mutex_is_locked(&profiles_ns(old)->lock)); in __aafs_profile_migrate_dents() 1521 AA_BUG(!mutex_is_locked(&profiles_ns(profile)->lock)); in __aafs_profile_mkdir() [all …]
|
D | policy.c | 121 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile() 147 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __list_remove_profile() 163 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __remove_profile() 548 mutex_lock(&profile->ns->lock); in aa_new_null_profile() 556 mutex_unlock(&profile->ns->lock); in aa_new_null_profile() 827 mutex_is_locked(&new->ns->lock)); in update_to_newest_parent() 909 mutex_lock(&ns->lock); in aa_replace_profiles() 1035 mutex_unlock(&ns->lock); in aa_replace_profiles() 1046 mutex_unlock(&ns->lock); in aa_replace_profiles() 1120 mutex_lock(&ns->parent->lock); in aa_remove_profiles() [all …]
|
D | file.c | 501 spin_lock(&fctx->lock); in update_file_ctx() 503 spin_is_locked(&fctx->lock)); in update_file_ctx() 513 spin_unlock(&fctx->lock); in update_file_ctx()
|
D | policy_unpack.c | 131 AA_BUG(!mutex_is_locked(&data->ns->lock)); in __aa_loaddata_update() 160 mutex_lock(&ns->lock); in do_loaddata_free() 162 mutex_unlock(&ns->lock); in do_loaddata_free()
|
/security/selinux/ss/ |
D | sidtab.c | 30 spin_lock_init(&s->lock); in sidtab_init() 205 spin_lock_irqsave(&s->lock, flags); in sidtab_context_to_sid() 224 spin_unlock_irqrestore(&s->lock, flags); in sidtab_context_to_sid() 290 spin_lock_irqsave(&src->lock, flags); in sidtab_set() 297 spin_unlock_irqrestore(&src->lock, flags); in sidtab_set() 304 spin_lock_irqsave(&s->lock, flags); in sidtab_shutdown() 306 spin_unlock_irqrestore(&s->lock, flags); in sidtab_shutdown()
|
D | sidtab.h | 32 spinlock_t lock; member
|
/security/selinux/ |
D | avc.c | 517 spinlock_t *lock; in avc_reclaim_node() local 522 lock = &avc_cache.slots_lock[hvalue]; in avc_reclaim_node() 524 if (!spin_trylock_irqsave(lock, flags)) in avc_reclaim_node() 534 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node() 539 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node() 671 spinlock_t *lock; in avc_insert() local 682 lock = &avc_cache.slots_lock[hvalue]; in avc_insert() 684 spin_lock_irqsave(lock, flag); in avc_insert() 695 spin_unlock_irqrestore(lock, flag); in avc_insert() 825 spinlock_t *lock; in avc_update_node() local [all …]
|
D | hooks.c | 238 spin_lock_init(&isec->lock); in inode_alloc_security() 395 mutex_init(&sbsec->lock); in superblock_alloc_security() 727 mutex_lock(&sbsec->lock); in selinux_set_mnt_opts() 956 mutex_unlock(&sbsec->lock); in selinux_set_mnt_opts() 1032 mutex_lock(&newsbsec->lock); in selinux_sb_clone_mnt_opts() 1072 mutex_unlock(&newsbsec->lock); in selinux_sb_clone_mnt_opts() 1521 spin_lock(&isec->lock); in inode_doinit_with_dentry() 1544 spin_unlock(&isec->lock); in inode_doinit_with_dentry() 1693 spin_lock(&isec->lock); in inode_doinit_with_dentry() 1705 spin_unlock(&isec->lock); in inode_doinit_with_dentry() [all …]
|
/security/keys/ |
D | key.c | 102 spin_lock_init(&candidate->lock); in key_user_lookup() 266 spin_lock(&user->lock); in key_alloc() 276 spin_unlock(&user->lock); in key_alloc() 329 spin_lock(&user->lock); in key_alloc() 332 spin_unlock(&user->lock); in key_alloc() 342 spin_lock(&user->lock); in key_alloc() 345 spin_unlock(&user->lock); in key_alloc() 353 spin_unlock(&user->lock); in key_alloc() 383 spin_lock(&key->user->lock); in key_payload_reserve() 394 spin_unlock(&key->user->lock); in key_payload_reserve()
|
D | gc.c | 147 spin_lock(&key->user->lock); in key_gc_unused_keys() 150 spin_unlock(&key->user->lock); in key_gc_unused_keys()
|
D | keyctl.c | 884 spin_lock(&newowner->lock); in keyctl_chown_key() 893 spin_unlock(&newowner->lock); in keyctl_chown_key() 895 spin_lock(&key->user->lock); in keyctl_chown_key() 898 spin_unlock(&key->user->lock); in keyctl_chown_key() 929 spin_unlock(&newowner->lock); in keyctl_chown_key()
|
D | process_keys.c | 36 .lock = __SPIN_LOCK_UNLOCKED(root_key_user.lock),
|
D | internal.h | 58 spinlock_t lock; member
|
D | trusted.c | 745 unsigned long lock; in getoptions() local 804 res = kstrtoul(args[0].from, 10, &lock); in getoptions() 807 opt->pcrlock = lock; in getoptions()
|
/security/selinux/include/ |
D | objsec.h | 67 spinlock_t lock; member 84 struct mutex lock; member
|
/security/apparmor/include/ |
D | policy_ns.h | 65 struct mutex lock; member 106 mutex_is_locked(&p->ns->lock)); in aa_deref_parent()
|
D | file.h | 43 spinlock_t lock; member 62 spin_lock_init(&ctx->lock); in aa_alloc_file_ctx()
|
D | label.h | 76 rwlock_t lock; member
|
/security/integrity/ |
D | Kconfig | 28 to "lock" certain keyring to prevent adding new keys.
|
/security/tomoyo/ |
D | common.c | 682 static DEFINE_SPINLOCK(lock); in tomoyo_write_profile() 688 spin_lock(&lock); in tomoyo_write_profile() 691 spin_unlock(&lock); in tomoyo_write_profile()
|