Searched refs:lock (Results 1 - 15 of 15) sorted by relevance

/security/selinux/include/
H A Dobjsec.h50 struct mutex lock; member in struct:inode_security_struct
67 struct mutex lock; member in struct:superblock_security_struct
/security/selinux/ss/
H A Dsidtab.c29 spin_lock_init(&s->lock);
211 spin_lock_irqsave(&s->lock, flags);
212 /* Rescan now that we hold the lock. */
230 spin_unlock_irqrestore(&s->lock, flags);
296 spin_lock_irqsave(&src->lock, flags);
303 spin_unlock_irqrestore(&src->lock, flags);
310 spin_lock_irqsave(&s->lock, flags);
312 spin_unlock_irqrestore(&s->lock, flags);
H A Dsidtab.h31 spinlock_t lock; member in struct:sidtab
/security/selinux/
H A Davc.c63 spinlock_t slots_lock[AVC_CACHE_SLOTS]; /* lock for writes */
530 spinlock_t *lock; local
535 lock = &avc_cache.slots_lock[hvalue];
537 if (!spin_trylock_irqsave(lock, flags))
547 spin_unlock_irqrestore(lock, flags);
552 spin_unlock_irqrestore(lock, flags);
684 spinlock_t *lock; local
695 lock = &avc_cache.slots_lock[hvalue];
697 spin_lock_irqsave(lock, flag);
708 spin_unlock_irqrestore(lock, fla
843 spinlock_t *lock; local
929 spinlock_t *lock; local
[all...]
H A Dhooks.c236 mutex_init(&isec->lock);
308 mutex_init(&sbsec->lock);
626 mutex_lock(&sbsec->lock);
824 mutex_unlock(&sbsec->lock);
887 mutex_lock(&newsbsec->lock);
917 mutex_unlock(&newsbsec->lock);
1282 mutex_lock(&isec->lock);
1458 mutex_unlock(&isec->lock);
4675 /* We don't need to take any sort of lock here as we are the only
/security/apparmor/
H A Dpolicy.c72 * lists within a namespace use the namespace lock.
287 mutex_init(&ns->lock);
381 mutex_lock(&root->lock);
410 mutex_unlock(&root->lock);
423 * Requires: namespace lock be held, or list not be shared
443 * Requires: namespace lock be held, or list not have been live
457 * Requires: namespace list lock be held, or list not be shared
473 * Requires: namespace lock be held
493 mutex_lock(&ns->lock);
503 mutex_unlock(&ns->lock);
[all...]
H A Dapparmorfs.c400 /* requires lock be held */
490 mutex_lock(&sub->lock);
492 mutex_unlock(&sub->lock);
534 mutex_lock(&sub->lock);
536 mutex_unlock(&sub->lock);
566 * Requires: ns->parent->lock to be held
567 * NOTE: will not unlock root->lock
577 mutex_lock(&next->lock);
584 mutex_unlock(&ns->lock);
587 mutex_lock(&next->lock);
[all...]
/security/apparmor/include/
H A Dpolicy.h108 * @lock: lock for modifying the object
133 struct mutex lock; member in struct:aa_namespace
161 * @base - base components of the profile (name, refcount, lists, lock ...)
189 * The @replacedby struct is write protected by the profile lock.
263 mutex_is_locked(&p->ns->lock));
359 /* requires profile list write lock held */
365 mutex_is_locked(&orig->ns->lock));
/security/keys/
H A Dkey.c102 spin_lock_init(&candidate->lock);
261 spin_lock(&user->lock);
271 spin_unlock(&user->lock);
322 spin_lock(&user->lock);
325 spin_unlock(&user->lock);
335 spin_lock(&user->lock);
338 spin_unlock(&user->lock);
346 spin_unlock(&user->lock);
376 spin_lock(&key->user->lock);
387 spin_unlock(&key->user->lock);
[all...]
H A Dgc.c141 spin_lock(&key->user->lock);
144 spin_unlock(&key->user->lock);
211 * valid node in the tree - even if lock got dropped.
324 * we can safely drop the lock.
H A Dkeyctl.c852 spin_lock(&newowner->lock);
861 spin_unlock(&newowner->lock);
863 spin_lock(&key->user->lock);
866 spin_unlock(&key->user->lock);
897 spin_unlock(&newowner->lock);
H A Dinternal.h52 struct mutex cons_lock; /* construction initiation lock */
53 spinlock_t lock; member in struct:key_user
H A Dprocess_keys.c34 .lock = __SPIN_LOCK_UNLOCKED(root_key_user.lock),
H A Dtrusted.c738 unsigned long lock; local
785 res = kstrtoul(args[0].from, 10, &lock);
788 opt->pcrlock = lock;
/security/tomoyo/
H A Dcommon.c681 static DEFINE_SPINLOCK(lock);
687 spin_lock(&lock);
690 spin_unlock(&lock);

Completed in 342 milliseconds