lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1465812526.4401.4.camel@BR9GV9YG.de.ibm.com>
Date:	Mon, 13 Jun 2016 12:08:46 +0200
From:	Ursula Braun <ubraun@...ux.vnet.ibm.com>
To:	Paul Moore <pmoore@...hat.com>
Cc:	linux-s390@...r.kernel.org, netdev@...r.kernel.org,
	linux-security-module@...r.kernel.org, selinux@...ho.nsa.gov
Subject: Re: [PATCH] iucv: properly clone LSM attributes to newly created
 child sockets

> From: Paul Moore <paul@...l-moore.com>
> 
> Much like we had to do for AF_BLUETOOTH and AF_ALG, make sure we
> properly clone the parent socket's LSM attributes to newly created
> child sockets.
> 
> Signed-off-by: Paul Moore <paul@...l-moore.com>
> ---
> net/iucv/af_iucv.c |    5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
> index fc3598a..a0d1e36 100644
> --- a/net/iucv/af_iucv.c
> +++ b/net/iucv/af_iucv.c
> @@ -22,6 +22,7 @@
> #include <linux/skbuff.h>
> #include <linux/init.h>
> #include <linux/poll.h>
> +#include <linux/security.h>
> #include <net/sock.h>
> #include <asm/ebcdic.h>
> #include <asm/cpcmd.h>
> @@ -530,8 +531,10 @@ static void iucv_sock_close(struct sock *sk)
> 
> static void iucv_sock_init(struct sock *sk, struct sock *parent)
> {
> -                 if (parent)
> +                 if (parent) {
>                                   sk->sk_type = parent->sk_type;
> +                                  security_sk_clone(parent, sk);
> +                 }
> }
> 
> static struct sock *iucv_sock_alloc(struct socket *sock, int proto,
> gfp_t prio, int kern)

applied locally - thx. Your patch will now be submitted for inclusion
into net-next.

Regards, Ursula Braun
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-s390"
> in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ