/**
* 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,
/**
* 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,
/**
* 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)
/**
* 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)