diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 12:06:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-21 12:06:02 -0500 |
commit | fb2e2c85375a0380d6818f153ffa2ae9ebbd055f (patch) | |
tree | cf8498a01357c220e4d664ff67125f60146f0da3 /security/selinux/hooks.c | |
parent | ec513b16c480c6cdda1e3d597e611eafca05227b (diff) | |
parent | 923b49ff69fcbffe6f8b2739de218c45544392a7 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull security layer updates from James Morris:
"Changes for this kernel include maintenance updates for Smack, SELinux
(and several networking fixes), IMA and TPM"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (39 commits)
SELinux: Fix memory leak upon loading policy
tpm/tpm-sysfs: active_show() can be static
tpm: tpm_tis: Fix compile problems with CONFIG_PM_SLEEP/CONFIG_PNP
tpm: Make tpm-dev allocate a per-file structure
tpm: Use the ops structure instead of a copy in tpm_vendor_specific
tpm: Create a tpm_class_ops structure and use it in the drivers
tpm: Pull all driver sysfs code into tpm-sysfs.c
tpm: Move sysfs functions from tpm-interface to tpm-sysfs
tpm: Pull everything related to /dev/tpmX into tpm-dev.c
char: tpm: nuvoton: remove unused variable
tpm: MAINTAINERS: Cleanup TPM Maintainers file
tpm/tpm_i2c_atmel: fix coccinelle warnings
tpm/tpm_ibmvtpm: fix unreachable code warning (smatch warning)
tpm/tpm_i2c_stm_st33: Check return code of get_burstcount
tpm/tpm_ppi: Check return value of acpi_get_name
tpm/tpm_ppi: Do not compare strcmp(a,b) == -1
ima: remove unneeded size_limit argument from ima_eventdigest_init_common()
ima: update IMA-templates.txt documentation
ima: pass HASH_ALGO__LAST as hash algo in ima_eventdigest_init()
ima: change the default hash algorithm to SHA1 in ima_eventdigest_ng_init()
...
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 57b0b49f4e6e..4b34847208cc 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -82,7 +82,6 @@ | |||
82 | #include <linux/syslog.h> | 82 | #include <linux/syslog.h> |
83 | #include <linux/user_namespace.h> | 83 | #include <linux/user_namespace.h> |
84 | #include <linux/export.h> | 84 | #include <linux/export.h> |
85 | #include <linux/security.h> | ||
86 | #include <linux/msg.h> | 85 | #include <linux/msg.h> |
87 | #include <linux/shm.h> | 86 | #include <linux/shm.h> |
88 | 87 | ||
@@ -4490,14 +4489,10 @@ static int selinux_inet_conn_request(struct sock *sk, struct sk_buff *skb, | |||
4490 | { | 4489 | { |
4491 | struct sk_security_struct *sksec = sk->sk_security; | 4490 | struct sk_security_struct *sksec = sk->sk_security; |
4492 | int err; | 4491 | int err; |
4493 | u16 family = sk->sk_family; | 4492 | u16 family = req->rsk_ops->family; |
4494 | u32 connsid; | 4493 | u32 connsid; |
4495 | u32 peersid; | 4494 | u32 peersid; |
4496 | 4495 | ||
4497 | /* handle mapped IPv4 packets arriving via IPv6 sockets */ | ||
4498 | if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) | ||
4499 | family = PF_INET; | ||
4500 | |||
4501 | err = selinux_skb_peerlbl_sid(skb, family, &peersid); | 4496 | err = selinux_skb_peerlbl_sid(skb, family, &peersid); |
4502 | if (err) | 4497 | if (err) |
4503 | return err; | 4498 | return err; |