@@ -1182,7 +1182,9 @@ static void unix_connect_peers(struct aa_sk_ctx *sk_ctx,
1182
1182
1183
1183
/**
1184
1184
* apparmor_unix_stream_connect - check perms before making unix domain conn
1185
- *
1185
+ * @sk: sk attempting to connect
1186
+ * @peer_sk: sk that is accepting the connection
1187
+ * @newsk: new sk created for this connection
1186
1188
* peer is locked when this hook is called
1187
1189
*/
1188
1190
static int apparmor_unix_stream_connect (struct sock * sk , struct sock * peer_sk ,
@@ -1216,9 +1218,10 @@ static int apparmor_unix_stream_connect(struct sock *sk, struct sock *peer_sk,
1216
1218
1217
1219
/**
1218
1220
* apparmor_unix_may_send - check perms before conn or sending unix dgrams
1221
+ * @sock: socket sending the message
1222
+ * @peer: socket message is being send to
1219
1223
*
1220
1224
* sock and peer are locked when this hook is called
1221
- *
1222
1225
* called by: dgram_connect peer setup but path not copied to newsk
1223
1226
*/
1224
1227
static int apparmor_unix_may_send (struct socket * sock , struct socket * peer )
@@ -1336,6 +1339,9 @@ static int apparmor_socket_socketpair(struct socket *socka,
1336
1339
1337
1340
/**
1338
1341
* apparmor_socket_bind - check perms before bind addr to socket
1342
+ * @sock: socket to bind the address to
1343
+ * @address: address that is being bound
1344
+ * @addrlen: length of @address
1339
1345
*/
1340
1346
static int apparmor_socket_bind (struct socket * sock ,
1341
1347
struct sockaddr * address , int addrlen )
0 commit comments