Searched refs:peer_sk (Results 1 – 3 of 3) sorted by relevance
| /security/apparmor/ |
| A D | af_unix.c | 635 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 D | lsm.c | 1131 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 D | af_unix.h | 37 struct sock *sk, struct sock *peer_sk,
|
Completed in 9 milliseconds