summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-12-28 22:33:06 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2021-12-28 22:33:06 +0100
commite7c124bd04631973a3cc0df19ab881b56d8a2d50 (patch)
tree8c6fa4af01c20d8c80d1c0220b791397a625faa0 /security
parentMerge tag 'auxdisplay-for-linus-v5.16' of git://github.com/ojeda/linux (diff)
parentselinux: initialize proto variable in selinux_ip_postroute_compat() (diff)
downloadlinux-e7c124bd04631973a3cc0df19ab881b56d8a2d50.tar.xz
linux-e7c124bd04631973a3cc0df19ab881b56d8a2d50.zip
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()
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 1afc06ffd969..dde4ecc0cd18 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -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)