Skip to content

Commit

Permalink
Merge tag 'selinux-pr-20211228' of git://git.kernel.org/pub/scm/linux…
Browse files Browse the repository at this point in the history
…/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()
  • Loading branch information
Linus Torvalds committed Dec 28, 2021
2 parents ecf71de + 732bc2f commit e7c124b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -5785,7 +5785,7 @@ static unsigned int selinux_ip_postroute_compat(struct sk_buff *skb,
struct sk_security_struct *sksec;
struct common_audit_data ad;
struct lsm_network_audit net = {0,};
u8 proto;
u8 proto = 0;

sk = skb_to_full_sk(skb);
if (sk == NULL)
Expand Down

0 comments on commit e7c124b

Please sign in to comment.