Lines Matching refs:plabel
647 struct aa_label *plabel) in update_sk_ctx() argument
654 update_sk = (plabel && in update_sk_ctx()
655 (plabel != rcu_access_pointer(ctx->peer_lastupdate) || in update_sk_ctx()
656 !aa_label_is_subset(plabel, rcu_dereference(ctx->peer)))) || in update_sk_ctx()
673 if (plabel && rcu_access_pointer(ctx->peer_lastupdate) != plabel) { in update_sk_ctx()
676 if (old == plabel) { in update_sk_ctx()
677 rcu_assign_pointer(ctx->peer_lastupdate, plabel); in update_sk_ctx()
678 } else if (aa_label_is_subset(plabel, old)) { in update_sk_ctx()
679 rcu_assign_pointer(ctx->peer_lastupdate, plabel); in update_sk_ctx()
680 rcu_assign_pointer(ctx->peer, aa_get_label(plabel)); in update_sk_ctx()
715 struct aa_label *plabel = NULL; in aa_unix_file_perm() local
761 struct aa_label *plabel; in aa_unix_file_perm() local
765 plabel = aa_get_label_rcu(&pctx->label); in aa_unix_file_perm()
777 plabel), in aa_unix_file_perm()
778 unix_peer_perm(file->f_cred, plabel, op, in aa_unix_file_perm()
785 if (!error && !__aa_subj_label_is_cached(plabel, label)) in aa_unix_file_perm()
794 update_sk_ctx(sock->sk, label, plabel); in aa_unix_file_perm()
795 aa_put_label(plabel); in aa_unix_file_perm()