/security/apparmor/ |
D | policy_ns.c | 120 mutex_init(&ns->lock); in alloc_ns() 263 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_create_ns() 269 mutex_lock_nested(&ns->lock, ns->level); in __aa_create_ns() 274 mutex_unlock(&ns->lock); in __aa_create_ns() 282 mutex_unlock(&ns->lock); in __aa_create_ns() 300 AA_BUG(!mutex_is_locked(&parent->lock)); in __aa_find_or_create_ns() 325 mutex_lock_nested(&parent->lock, parent->level); in aa_prepare_ns() 331 mutex_unlock(&parent->lock); in aa_prepare_ns() 348 mutex_lock_nested(&ns->lock, ns->level); in destroy_ns() 358 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() 599 lockdep_assert_held_write(&ls->lock); in __label_remove() 636 lockdep_assert_held_write(&ls->lock); in __label_replace() 673 lockdep_assert_held_write(&ls->lock); in __label_insert() 780 write_lock_irqsave(&ls->lock, flags); in aa_label_remove() 782 write_unlock_irqrestore(&ls->lock, flags); in aa_label_remove() 801 write_lock_irqsave(&labels_set(old)->lock, flags); in aa_label_replace() 807 write_unlock_irqrestore(&labels_set(old)->lock, flags); in aa_label_replace() 812 write_lock_irqsave(&ls->lock, flags); in aa_label_replace() [all …]
|
D | apparmorfs.c | 542 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_read() 545 mutex_unlock(&rev->ns->lock); in ns_revision_read() 552 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_read() 560 mutex_unlock(&rev->ns->lock); in ns_revision_read() 586 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_poll() 590 mutex_unlock(&rev->ns->lock); in ns_revision_poll() 1424 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata() 1440 AA_BUG(!mutex_is_locked(&ns->lock)); in __aa_fs_create_rawdata() 1546 AA_BUG(!mutex_is_locked(&profiles_ns(old)->lock)); in __aafs_profile_migrate_dents() 1684 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() 551 mutex_lock_nested(&profile->ns->lock, profile->ns->level); in aa_new_null_profile() 559 mutex_unlock(&profile->ns->lock); in aa_new_null_profile() 871 mutex_is_locked(&new->ns->lock)); in update_to_newest_parent() 954 mutex_lock_nested(&ns->lock, ns->level); in aa_replace_profiles() 1088 mutex_unlock(&ns->lock); in aa_replace_profiles() 1100 mutex_unlock(&ns->lock); in aa_replace_profiles() 1174 mutex_lock_nested(&ns->parent->lock, ns->parent->level); in aa_remove_profiles() [all …]
|
D | file.c | 492 spin_lock(&fctx->lock); in update_file_ctx() 494 lockdep_is_held(&fctx->lock)); in update_file_ctx() 504 spin_unlock(&fctx->lock); in update_file_ctx()
|
D | policy_unpack.c | 92 AA_BUG(!mutex_is_locked(&data->ns->lock)); in __aa_loaddata_update() 125 mutex_lock_nested(&ns->lock, ns->level); in do_loaddata_free() 127 mutex_unlock(&ns->lock); in do_loaddata_free()
|
/security/selinux/ss/ |
D | sidtab.c | 47 spin_lock_init(&s->lock); in sidtab_init() 278 spin_lock_irqsave(&s->lock, flags); in sidtab_context_to_sid() 353 spin_unlock_irqrestore(&s->lock, flags); in sidtab_context_to_sid() 424 spin_lock_irqsave(&s->lock, flags); in sidtab_convert() 428 spin_unlock_irqrestore(&s->lock, flags); in sidtab_convert() 440 spin_unlock_irqrestore(&s->lock, flags); in sidtab_convert() 451 spin_unlock_irqrestore(&s->lock, flags); in sidtab_convert() 461 spin_lock_irqsave(&s->lock, flags); in sidtab_convert() 463 spin_unlock_irqrestore(&s->lock, flags); in sidtab_convert() 470 spin_lock_irqsave(&s->lock, flags); in sidtab_convert() [all …]
|
D | sidtab.h | 90 spinlock_t lock; member 129 void sidtab_freeze_begin(struct sidtab *s, unsigned long *flags) __acquires(&s->lock); 130 void sidtab_freeze_end(struct sidtab *s, unsigned long *flags) __releases(&s->lock);
|
/security/landlock/ |
D | ruleset.c | 37 mutex_init(&new_ruleset->lock); in create_ruleset() 155 lockdep_assert_held(&ruleset->lock); in insert_rule() 276 mutex_lock(&dst->lock); in merge_ruleset() 277 mutex_lock_nested(&src->lock, SINGLE_DEPTH_NESTING); in merge_ruleset() 309 mutex_unlock(&src->lock); in merge_ruleset() 310 mutex_unlock(&dst->lock); in merge_ruleset() 325 mutex_lock(&child->lock); in inherit_ruleset() 326 mutex_lock_nested(&parent->lock, SINGLE_DEPTH_NESTING); in inherit_ruleset() 354 mutex_unlock(&parent->lock); in inherit_ruleset() 355 mutex_unlock(&child->lock); in inherit_ruleset()
|
D | object.c | 32 spin_lock_init(&new_object->lock); in landlock_create_object() 58 if (refcount_dec_and_lock(&object->usage, &object->lock)) { in landlock_put_object() 59 __acquire(&object->lock); in landlock_put_object()
|
D | object.h | 26 __releases(object->lock); 56 spinlock_t lock; member
|
D | fs.c | 44 __releases(object->lock) in release_inode() 50 spin_unlock(&object->lock); in release_inode() 65 spin_unlock(&object->lock); in release_inode() 105 spin_lock(&object->lock); in get_inode_object() 106 spin_unlock(&object->lock); in get_inode_object() 186 mutex_lock(&ruleset->lock); in landlock_append_fs_rule() 188 mutex_unlock(&ruleset->lock); in landlock_append_fs_rule() 962 spin_lock(&object->lock); in hook_sb_delete() 965 spin_unlock(&object->lock); in hook_sb_delete() 986 spin_unlock(&object->lock); in hook_sb_delete()
|
D | ruleset.h | 121 struct mutex lock; member
|
/security/selinux/ |
D | avc.c | 476 spinlock_t *lock; in avc_reclaim_node() local 482 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_reclaim_node() 484 if (!spin_trylock_irqsave(lock, flags)) in avc_reclaim_node() 494 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node() 499 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node() 633 spinlock_t *lock; in avc_insert() local 651 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_insert() 652 spin_lock_irqsave(lock, flag); in avc_insert() 664 spin_unlock_irqrestore(lock, flag); in avc_insert() 865 spinlock_t *lock; in avc_update_node() local [all …]
|
D | hooks.c | 616 mutex_lock(&sbsec->lock); in selinux_set_mnt_opts() 826 mutex_unlock(&sbsec->lock); in selinux_set_mnt_opts() 904 mutex_lock(&newsbsec->lock); in selinux_sb_clone_mnt_opts() 944 mutex_unlock(&newsbsec->lock); in selinux_sb_clone_mnt_opts() 1381 spin_lock(&isec->lock); in inode_doinit_with_dentry() 1404 spin_unlock(&isec->lock); in inode_doinit_with_dentry() 1520 spin_lock(&isec->lock); in inode_doinit_with_dentry() 1531 spin_unlock(&isec->lock); in inode_doinit_with_dentry() 1535 spin_lock(&isec->lock); in inode_doinit_with_dentry() 1540 spin_unlock(&isec->lock); in inode_doinit_with_dentry() [all …]
|
/security/keys/ |
D | key.c | 99 spin_lock_init(&candidate->lock); in key_user_lookup() 263 spin_lock(&user->lock); in key_alloc() 273 spin_unlock(&user->lock); in key_alloc() 331 spin_lock(&user->lock); in key_alloc() 334 spin_unlock(&user->lock); in key_alloc() 344 spin_lock(&user->lock); in key_alloc() 347 spin_unlock(&user->lock); in key_alloc() 355 spin_unlock(&user->lock); in key_alloc() 385 spin_lock(&key->user->lock); in key_payload_reserve() 396 spin_unlock(&key->user->lock); in key_payload_reserve()
|
D | gc.c | 160 spin_lock(&key->user->lock); in key_gc_unused_keys() 163 spin_unlock(&key->user->lock); in key_gc_unused_keys()
|
D | keyctl.c | 1013 spin_lock(&newowner->lock); in keyctl_chown_key() 1022 spin_unlock(&newowner->lock); in keyctl_chown_key() 1024 spin_lock(&key->user->lock); in keyctl_chown_key() 1027 spin_unlock(&key->user->lock); in keyctl_chown_key() 1059 spin_unlock(&newowner->lock); in keyctl_chown_key()
|
D | process_keys.c | 29 .lock = __SPIN_LOCK_UNLOCKED(root_key_user.lock),
|
D | internal.h | 57 spinlock_t lock; member
|
/security/apparmor/include/ |
D | policy_ns.h | 61 struct mutex lock; member 103 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()
|
/security/selinux/include/ |
D | objsec.h | 53 spinlock_t lock; member 69 struct mutex lock; member
|
/security/keys/trusted-keys/ |
D | trusted_tpm1.c | 740 unsigned long lock; in getoptions() local 822 res = kstrtoul(args[0].from, 10, &lock); in getoptions() 825 opt->pcrlock = lock; in getoptions()
|
/security/integrity/ |
D | Kconfig | 29 to "lock" certain keyring to prevent adding new keys.
|