Lines Matching refs:fctx
491 static void update_file_ctx(struct aa_file_ctx *fctx, struct aa_label *label, in update_file_ctx() argument
497 spin_lock(&fctx->lock); in update_file_ctx()
498 old = rcu_dereference_protected(fctx->label, in update_file_ctx()
499 spin_is_locked(&fctx->lock)); in update_file_ctx()
503 rcu_assign_pointer(fctx->label, l); in update_file_ctx()
507 fctx->allow |= request; in update_file_ctx()
509 spin_unlock(&fctx->lock); in update_file_ctx()
603 struct aa_file_ctx *fctx; in aa_file_perm() local
611 fctx = file_ctx(file); in aa_file_perm()
614 flabel = rcu_dereference(fctx->label); in aa_file_perm()
624 denied = request & ~fctx->allow; in aa_file_perm()