Skip to content

Commit 2572f5b

Browse files
arndbpcmoore
authored andcommitted
selinux: fix typo in selinux_netlbl_sctp_sk_clone declaration
A missing 'struct' keyword caused a build error when CONFIG_NETLABEL is disabled: In file included from security/selinux/hooks.c:99: security/selinux/include/netlabel.h:135:66: error: unknown type name 'sock' static inline void selinux_netlbl_sctp_sk_clone(struct sock *sk, sock *newsk) ^~~~ security/selinux/hooks.c: In function 'selinux_sctp_sk_clone': security/selinux/hooks.c:5188:2: error: implicit declaration of function 'selinux_netlbl_sctp_sk_clone'; did you mean 'selinux_netlbl_inet_csk_clone'? [-Werror=implicit-function-declaration] Fixes: db97c9f9d312 ("selinux: Add SCTP support") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Paul Moore <[email protected]>
1 parent d452930 commit 2572f5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security/selinux/include/netlabel.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ static inline void selinux_netlbl_inet_csk_clone(struct sock *sk, u16 family)
132132
{
133133
return;
134134
}
135-
static inline void selinux_netlbl_sctp_sk_clone(struct sock *sk, sock *newsk)
135+
static inline void selinux_netlbl_sctp_sk_clone(struct sock *sk,
136+
struct sock *newsk)
136137
{
137138
return;
138139
}

0 commit comments

Comments
 (0)