diff options
| author | Alexey Kodanev <[email protected]> | 2018-05-11 17:15:13 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2018-05-14 19:20:59 +0000 |
| commit | 4152dc91b5932e7fe49a5afed62a068b2f31d196 (patch) | |
| tree | df0c291add6164031dbce1f413f585b77eb51758 /lib/bitmap.c | |
| parent | selinux: fix address family in bind() and connect() to match address/port (diff) | |
| download | kernel-4152dc91b5932e7fe49a5afed62a068b2f31d196.tar.gz kernel-4152dc91b5932e7fe49a5afed62a068b2f31d196.zip | |
selinux: correctly handle sa_family cases in selinux_sctp_bind_connect()
Allow to pass the socket address structure with AF_UNSPEC family for
compatibility purposes. selinux_socket_bind() will further check it
for INADDR_ANY and selinux_socket_connect_helper() should return
EINVAL.
For a bad address family return EINVAL instead of AFNOSUPPORT error,
i.e. what is expected from SCTP protocol in such case.
Fixes: d452930fd3b9 ("selinux: Add SCTP support")
Suggested-by: Paul Moore <[email protected]>
Signed-off-by: Alexey Kodanev <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
