Skip to content

Commit e7c124b

Browse files
committed
Merge tag 'selinux-pr-20211228' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux
Pull selinux fix from Paul Moore: "One more small SELinux patch to address an uninitialized stack variable" * tag 'selinux-pr-20211228' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux: selinux: initialize proto variable in selinux_ip_postroute_compat()
2 parents ecf71de + 732bc2f commit e7c124b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/selinux/hooks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5785,7 +5785,7 @@ static unsigned int selinux_ip_postroute_compat(struct sk_buff *skb,
57855785
struct sk_security_struct *sksec;
57865786
struct common_audit_data ad;
57875787
struct lsm_network_audit net = {0,};
5788-
u8 proto;
5788+
u8 proto = 0;
57895789

57905790
sk = skb_to_full_sk(skb);
57915791
if (sk == NULL)

0 commit comments

Comments
 (0)