diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-12-28 22:33:06 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-12-28 22:33:06 +0100 |
commit | e7c124bd04631973a3cc0df19ab881b56d8a2d50 (patch) | |
tree | 8c6fa4af01c20d8c80d1c0220b791397a625faa0 /security | |
parent | Merge tag 'auxdisplay-for-linus-v5.16' of git://github.com/ojeda/linux (diff) | |
parent | selinux: initialize proto variable in selinux_ip_postroute_compat() (diff) | |
download | linux-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.c | 2 |
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) |