Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 23 of 23) sorted by relevance

/security/apparmor/
Dpolicy_ns.c100 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 …]
Dlabel.c79 lockdep_assert_held_write(&labels_set(orig)->lock); in __aa_proxy_redirect()
82 &labels_ns(orig)->lock); in __aa_proxy_redirect()
602 lockdep_assert_held_write(&ls->lock); in __label_remove()
639 lockdep_assert_held_write(&ls->lock); in __label_replace()
676 lockdep_assert_held_write(&ls->lock); in __label_insert()
783 write_lock_irqsave(&ls->lock, flags); in aa_label_remove()
785 write_unlock_irqrestore(&ls->lock, flags); in aa_label_remove()
804 write_lock_irqsave(&labels_set(old)->lock, flags); in aa_label_replace()
810 write_unlock_irqrestore(&labels_set(old)->lock, flags); in aa_label_replace()
815 write_lock_irqsave(&ls->lock, flags); in aa_label_replace()
[all …]
Dapparmorfs.c541 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_read()
544 mutex_unlock(&rev->ns->lock); in ns_revision_read()
551 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_read()
559 mutex_unlock(&rev->ns->lock); in ns_revision_read()
585 mutex_lock_nested(&rev->ns->lock, rev->ns->level); in ns_revision_poll()
589 mutex_unlock(&rev->ns->lock); in ns_revision_poll()
1340 AA_BUG(rawdata->ns && !mutex_is_locked(&rawdata->ns->lock)); in __aa_fs_remove_rawdata()
1356 AA_BUG(!mutex_is_locked(&ns->lock)); in __aa_fs_create_rawdata()
1453 AA_BUG(!mutex_is_locked(&profiles_ns(old)->lock)); in __aafs_profile_migrate_dents()
1590 AA_BUG(!mutex_is_locked(&profiles_ns(profile)->lock)); in __aafs_profile_mkdir()
[all …]
Dpolicy.c116 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->parent->level); in aa_remove_profiles()
[all …]
Dfile.c493 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()
Dpolicy_unpack.c128 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()
Dlsm.c431 spin_lock_init(&ctx->lock); in apparmor_file_alloc_security()
/security/selinux/ss/
Dsidtab.c36 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 …]
Dsidtab.h88 spinlock_t lock; member
/security/selinux/
Davc.c468 spinlock_t *lock; in avc_reclaim_node() local
474 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
476 if (!spin_trylock_irqsave(lock, flags)) in avc_reclaim_node()
486 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node()
491 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node()
621 spinlock_t *lock; in avc_insert() local
639 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()
839 spinlock_t *lock; in avc_update_node() local
[all …]
Dhooks.c248 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()
877 mutex_unlock(&sbsec->lock); in selinux_set_mnt_opts()
954 mutex_lock(&newsbsec->lock); in selinux_sb_clone_mnt_opts()
994 mutex_unlock(&newsbsec->lock); in selinux_sb_clone_mnt_opts()
1456 spin_lock(&isec->lock); in inode_doinit_with_dentry()
1479 spin_unlock(&isec->lock); in inode_doinit_with_dentry()
1593 spin_lock(&isec->lock); in inode_doinit_with_dentry()
1604 spin_unlock(&isec->lock); in inode_doinit_with_dentry()
[all …]
/security/keys/
Dkey.c98 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()
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()
Dgc.c142 spin_lock(&key->user->lock); in key_gc_unused_keys()
145 spin_unlock(&key->user->lock); in key_gc_unused_keys()
Dkeyctl.c1010 spin_lock(&newowner->lock); in keyctl_chown_key()
1019 spin_unlock(&newowner->lock); in keyctl_chown_key()
1021 spin_lock(&key->user->lock); in keyctl_chown_key()
1024 spin_unlock(&key->user->lock); in keyctl_chown_key()
1055 spin_unlock(&newowner->lock); in keyctl_chown_key()
Dprocess_keys.c29 .lock = __SPIN_LOCK_UNLOCKED(root_key_user.lock),
Dtrusted.c753 unsigned long lock; in getoptions() local
812 res = kstrtoul(args[0].from, 10, &lock); in getoptions()
815 opt->pcrlock = lock; in getoptions()
Dinternal.h56 spinlock_t lock; member
/security/apparmor/include/
Dpolicy_ns.h61 struct mutex lock; member
102 mutex_is_locked(&p->ns->lock)); in aa_deref_parent()
Dfile.h42 spinlock_t lock; member
61 spin_lock_init(&ctx->lock); in aa_alloc_file_ctx()
Dlabel.h72 rwlock_t lock; member
/security/selinux/include/
Dobjsec.h53 spinlock_t lock; member
70 struct mutex lock; member
/security/integrity/
DKconfig29 to "lock" certain keyring to prevent adding new keys.
/security/tomoyo/
Dcommon.c696 static DEFINE_SPINLOCK(lock); in tomoyo_write_profile()
703 spin_lock(&lock); in tomoyo_write_profile()
706 spin_unlock(&lock); in tomoyo_write_profile()