Home
last modified time | relevance | path

Searched refs:peer_sk (Results 1 – 3 of 3) sorted by relevance

/security/apparmor/
A Daf_unix.c635 AA_BUG(!peer_sk); in aa_unix_peer_perm()
716 struct sock *peer_sk = NULL; in aa_unix_file_perm() local
732 peer_sk = unix_peer(sock->sk); in aa_unix_file_perm()
733 if (peer_sk) in aa_unix_file_perm()
734 sock_hold(peer_sk); in aa_unix_file_perm()
741 if (is_sk_fs && peer_sk) in aa_unix_file_perm()
748 if (!peer_sk) in aa_unix_file_perm()
755 peer_path = unix_sk(peer_sk)->path; in aa_unix_file_perm()
775 is_unix_fs(peer_sk) ? in aa_unix_file_perm()
780 is_unix_fs(peer_sk) ? in aa_unix_file_perm()
[all …]
A Dlsm.c1131 struct sock *sk, struct sock *peer_sk) in unix_connect_perm() argument
1133 struct aa_sk_ctx *peer_ctx = aa_sock(peer_sk); in unix_connect_perm()
1138 sk, peer_sk, in unix_connect_perm()
1140 lockdep_is_held(&unix_sk(peer_sk)->lock))); in unix_connect_perm()
1141 if (!is_unix_fs(peer_sk)) { in unix_connect_perm()
1145 lockdep_is_held(&unix_sk(peer_sk)->lock)), in unix_connect_perm()
1148 peer_sk, sk, label)); in unix_connect_perm()
1192 static int apparmor_unix_stream_connect(struct sock *sk, struct sock *peer_sk, in apparmor_unix_stream_connect() argument
1196 struct aa_sk_ctx *peer_ctx = aa_sock(peer_sk); in apparmor_unix_stream_connect()
1203 error = unix_connect_perm(current_cred(), label, sk, peer_sk); in apparmor_unix_stream_connect()
/security/apparmor/include/
A Daf_unix.h37 struct sock *sk, struct sock *peer_sk,

Completed in 9 milliseconds