Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

apparmor: fix kernel doc warnings for kernel test robot

Fix kernel doc warnings for the functions
- apparmor_socket_bind
- apparmor_unix_may_send
- apparmor_unix_stream_connect
- val_mask_to_str

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506070127.B1bc3da4-lkp@intel.com/
Signed-off-by: John Johansen <john.johansen@canonical.com>

+10 -4
+2 -2
security/apparmor/lib.c
··· 84 84 /** 85 85 * val_mask_to_str - convert a perm mask to its short string 86 86 * @str: character buffer to store string in (at least 10 characters) 87 - * @str_size: size of the @str buffer 88 - * @chrs: NUL-terminated character buffer of permission characters 87 + * @size: size of the @str buffer 88 + * @table: NUL-terminated character buffer of permission characters 89 89 * @mask: permission mask to convert 90 90 */ 91 91 static int val_mask_to_str(char *str, size_t size,
+8 -2
security/apparmor/lsm.c
··· 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, ··· 1218 1216 1219 1217 /** 1220 1218 * apparmor_unix_may_send - check perms before conn or sending unix dgrams 1219 + * @sock: socket sending the message 1220 + * @peer: socket message is being send to 1221 1221 * 1222 1222 * sock and peer are locked when this hook is called 1223 - * 1224 1223 * called by: dgram_connect peer setup but path not copied to newsk 1225 1224 */ 1226 1225 static int apparmor_unix_may_send(struct socket *sock, struct socket *peer) ··· 1339 1336 1340 1337 /** 1341 1338 * apparmor_socket_bind - check perms before bind addr to socket 1339 + * @sock: socket to bind the address to 1340 + * @address: address that is being bound 1341 + * @addrlen: length of @address 1342 1342 */ 1343 1343 static int apparmor_socket_bind(struct socket *sock, 1344 1344 struct sockaddr *address, int addrlen)