/security/apparmor/ |
D | policy_ns.c | 100 mutex_init(&ns->lock); in alloc_ns() 250 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns() 256 mutex_lock_nested(&ns->lock, ns->level); in __aa_create_ns() 261 mutex_unlock(&ns->lock); in __aa_create_ns() 269 mutex_unlock(&ns->lock); in __aa_create_ns() 287 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns() 312 mutex_lock_nested(&parent->lock, parent->level); in aa_prepare_ns() 318 mutex_unlock(&parent->lock); in aa_prepare_ns() 335 mutex_lock_nested(&ns->lock, ns->level); in destroy_ns() 345 write_lock_irqsave(&ns->labels.lock, flags); in destroy_ns() [all …]
|
D | label.c | 79 lockdep_assert_held_write(&labels_set(orig)->lock); in __aa_proxy_redirect() 82 &labels_ns(orig)->lock); in __aa_proxy_redirect() 569 lockdep_assert_held_write(&ls->lock); in __label_remove() 606 lockdep_assert_held_write(&ls->lock); in __label_replace() 643 lockdep_assert_held_write(&ls->lock); in __label_insert() 750 write_lock_irqsave(&ls->lock, flags); in aa_label_remove() 752 write_unlock_irqrestore(&ls->lock, flags); in aa_label_remove() 771 write_lock_irqsave(&labels_set(old)->lock, flags); in aa_label_replace() 777 write_unlock_irqrestore(&labels_set(old)->lock, flags); in aa_label_replace() 782 write_lock_irqsave(&ls->lock, flags); in aa_label_replace() [all …]
|
D | apparmorfs.c | 540 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_read() 543 mutex_unlock(&rev->ns->lock); in ns_revision_read() 550 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_read() 558 mutex_unlock(&rev->ns->lock); in ns_revision_read() 584 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_poll() 588 mutex_unlock(&rev->ns->lock); in ns_revision_poll() 1337 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata() 1353 AA_BUG(!mutex_is_locked(&ns->lock)); in __aa_fs_create_rawdata() 1450 AA_BUG(!mutex_is_locked(&profiles_ns(old)->lock)); in __aafs_profile_migrate_dents() 1587 AA_BUG(!mutex_is_locked(&profiles_ns(profile)->lock)); in __aafs_profile_mkdir() [all …]
|
D | policy.c | 116 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile() 142 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __list_remove_profile() 158 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __remove_profile() 550 mutex_lock_nested(&profile->ns->lock, profile->ns->level); in aa_new_null_profile() 558 mutex_unlock(&profile->ns->lock); in aa_new_null_profile() 829 mutex_is_locked(&new->ns->lock)); in update_to_newest_parent() 912 mutex_lock_nested(&ns->lock, ns->level); in aa_replace_profiles() 1041 mutex_unlock(&ns->lock); in aa_replace_profiles() 1052 mutex_unlock(&ns->lock); in aa_replace_profiles() 1126 mutex_lock_nested(&ns->parent->lock, ns->level); in aa_remove_profiles() [all …]
|
D | file.c | 493 spin_lock(&fctx->lock); in update_file_ctx() 495 lockdep_is_held(&fctx->lock)); in update_file_ctx() 505 spin_unlock(&fctx->lock); in update_file_ctx()
|
D | policy_unpack.c | 128 AA_BUG(!mutex_is_locked(&data->ns->lock)); in __aa_loaddata_update() 157 mutex_lock_nested(&ns->lock, ns->level); in do_loaddata_free() 159 mutex_unlock(&ns->lock); in do_loaddata_free()
|
D | lsm.c | 431 spin_lock_init(&ctx->lock); in apparmor_file_alloc_security()
|
/security/selinux/ss/ |
D | sidtab.c | 36 spin_lock_init(&s->lock); in sidtab_init() 251 spin_lock_irqsave(&s->lock, flags); in sidtab_context_to_sid() 316 spin_unlock_irqrestore(&s->lock, flags); in sidtab_context_to_sid() 389 spin_lock_irqsave(&s->lock, flags); in sidtab_convert() 393 spin_unlock_irqrestore(&s->lock, flags); in sidtab_convert() 405 spin_unlock_irqrestore(&s->lock, flags); in sidtab_convert() 416 spin_unlock_irqrestore(&s->lock, flags); in sidtab_convert() 426 spin_lock_irqsave(&s->lock, flags); in sidtab_convert() 428 spin_unlock_irqrestore(&s->lock, flags); in sidtab_convert() 435 spin_lock_irqsave(&s->lock, flags); in sidtab_convert() [all …]
|
D | sidtab.h | 88 spinlock_t lock; member
|
/security/selinux/ |
D | avc.c | 467 spinlock_t *lock; in avc_reclaim_node() local 473 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_reclaim_node() 475 if (!spin_trylock_irqsave(lock, flags)) in avc_reclaim_node() 485 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node() 490 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node() 627 spinlock_t *lock; in avc_insert() local 638 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_insert() 640 spin_lock_irqsave(lock, flag); in avc_insert() 651 spin_unlock_irqrestore(lock, flag); in avc_insert() 853 spinlock_t *lock; in avc_update_node() local [all …]
|
D | hooks.c | 248 spin_lock_init(&isec->lock); in inode_alloc_security() 376 mutex_init(&sbsec->lock); in superblock_alloc_security() 661 mutex_lock(&sbsec->lock); in selinux_set_mnt_opts() 876 mutex_unlock(&sbsec->lock); in selinux_set_mnt_opts() 953 mutex_lock(&newsbsec->lock); in selinux_sb_clone_mnt_opts() 993 mutex_unlock(&newsbsec->lock); in selinux_sb_clone_mnt_opts() 1447 spin_lock(&isec->lock); in inode_doinit_with_dentry() 1470 spin_unlock(&isec->lock); in inode_doinit_with_dentry() 1584 spin_lock(&isec->lock); in inode_doinit_with_dentry() 1596 spin_unlock(&isec->lock); in inode_doinit_with_dentry() [all …]
|
/security/keys/ |
D | key.c | 98 spin_lock_init(&candidate->lock); in key_user_lookup() 262 spin_lock(&user->lock); in key_alloc() 272 spin_unlock(&user->lock); in key_alloc() 327 spin_lock(&user->lock); in key_alloc() 330 spin_unlock(&user->lock); in key_alloc() 340 spin_lock(&user->lock); in key_alloc() 343 spin_unlock(&user->lock); in key_alloc() 351 spin_unlock(&user->lock); in key_alloc() 381 spin_lock(&key->user->lock); in key_payload_reserve() 392 spin_unlock(&key->user->lock); in key_payload_reserve()
|
D | gc.c | 142 spin_lock(&key->user->lock); in key_gc_unused_keys() 145 spin_unlock(&key->user->lock); in key_gc_unused_keys()
|
D | keyctl.c | 939 spin_lock(&newowner->lock); in keyctl_chown_key() 948 spin_unlock(&newowner->lock); in keyctl_chown_key() 950 spin_lock(&key->user->lock); in keyctl_chown_key() 953 spin_unlock(&key->user->lock); in keyctl_chown_key() 984 spin_unlock(&newowner->lock); in keyctl_chown_key()
|
D | process_keys.c | 29 .lock = __SPIN_LOCK_UNLOCKED(root_key_user.lock),
|
D | trusted.c | 753 unsigned long lock; in getoptions() local 812 res = kstrtoul(args[0].from, 10, &lock); in getoptions() 815 opt->pcrlock = lock; in getoptions()
|
D | internal.h | 54 spinlock_t lock; member
|
/security/apparmor/include/ |
D | policy_ns.h | 61 struct mutex lock; member 102 mutex_is_locked(&p->ns->lock)); in aa_deref_parent()
|
D | file.h | 42 spinlock_t lock; member 61 spin_lock_init(&ctx->lock); in aa_alloc_file_ctx()
|
D | label.h | 72 rwlock_t lock; member
|
/security/selinux/include/ |
D | objsec.h | 53 spinlock_t lock; member 70 struct mutex lock; member
|
/security/integrity/ |
D | Kconfig | 29 to "lock" certain keyring to prevent adding new keys.
|
/security/tomoyo/ |
D | common.c | 696 static DEFINE_SPINLOCK(lock); in tomoyo_write_profile() 703 spin_lock(&lock); in tomoyo_write_profile() 706 spin_unlock(&lock); in tomoyo_write_profile()
|