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

security: struct security_operations kerneldoc fix

unix_may_send hook has the prototype:

int (*unix_may_send) (struct socket *sock, struct socket *other)

so the documentation is wrongly referring to the second argument as @sock.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Javier Martinez Canillas and committed by
Jiri Kosina
fbe74e36 4ff162f0

+1 -1
+1 -1
include/linux/security.h
··· 812 812 * Check permissions before connecting or sending datagrams from @sock to 813 813 * @other. 814 814 * @sock contains the socket structure. 815 - * @sock contains the peer socket structure. 815 + * @other contains the peer socket structure. 816 816 * Return 0 if permission is granted. 817 817 * 818 818 * The @unix_stream_connect and @unix_may_send hooks were necessary because