mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
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>
This commit is contained in:
@@ -84,8 +84,8 @@ int aa_parse_debug_params(const char *str)
|
||||
/**
|
||||
* val_mask_to_str - convert a perm mask to its short string
|
||||
* @str: character buffer to store string in (at least 10 characters)
|
||||
* @str_size: size of the @str buffer
|
||||
* @chrs: NUL-terminated character buffer of permission characters
|
||||
* @size: size of the @str buffer
|
||||
* @table: NUL-terminated character buffer of permission characters
|
||||
* @mask: permission mask to convert
|
||||
*/
|
||||
static int val_mask_to_str(char *str, size_t size,
|
||||
|
||||
@@ -1182,7 +1182,9 @@ static void unix_connect_peers(struct aa_sk_ctx *sk_ctx,
|
||||
|
||||
/**
|
||||
* apparmor_unix_stream_connect - check perms before making unix domain conn
|
||||
*
|
||||
* @sk: sk attempting to connect
|
||||
* @peer_sk: sk that is accepting the connection
|
||||
* @newsk: new sk created for this connection
|
||||
* peer is locked when this hook is called
|
||||
*/
|
||||
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,
|
||||
|
||||
/**
|
||||
* apparmor_unix_may_send - check perms before conn or sending unix dgrams
|
||||
* @sock: socket sending the message
|
||||
* @peer: socket message is being send to
|
||||
*
|
||||
* sock and peer are locked when this hook is called
|
||||
*
|
||||
* called by: dgram_connect peer setup but path not copied to newsk
|
||||
*/
|
||||
static int apparmor_unix_may_send(struct socket *sock, struct socket *peer)
|
||||
@@ -1336,6 +1339,9 @@ static int apparmor_socket_socketpair(struct socket *socka,
|
||||
|
||||
/**
|
||||
* apparmor_socket_bind - check perms before bind addr to socket
|
||||
* @sock: socket to bind the address to
|
||||
* @address: address that is being bound
|
||||
* @addrlen: length of @address
|
||||
*/
|
||||
static int apparmor_socket_bind(struct socket *sock,
|
||||
struct sockaddr *address, int addrlen)
|
||||
|
||||
Reference in New Issue
Block a user