Skip to content

Commit 2c5a535

Browse files
committed
Merge tag 'Smack-for-5.18' of https://github.com/cschaufler/smack-next
Pull smack update from Casey Schaufler: "A single fix to repair an incorrect use of ntohs() in IPv6 audit code. It's very minor and went unnoticed until lkp found it. It's been in next and passes all tests" * tag 'Smack-for-5.18' of https://github.com/cschaufler/smack-next: Fix incorrect type in assignment of ipv6 port for audit
2 parents 6ca014c + a5cd1ab commit 2c5a535

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/smack/smack_lsm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2510,7 +2510,7 @@ static int smk_ipv6_check(struct smack_known *subject,
25102510
#ifdef CONFIG_AUDIT
25112511
smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
25122512
ad.a.u.net->family = PF_INET6;
2513-
ad.a.u.net->dport = ntohs(address->sin6_port);
2513+
ad.a.u.net->dport = address->sin6_port;
25142514
if (act == SMK_RECEIVING)
25152515
ad.a.u.net->v6info.saddr = address->sin6_addr;
25162516
else

0 commit comments

Comments
 (0)