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-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 04 Nov 2009 08:54:25 -0800
From:	Joe Perches <joe@...ches.com>
To:	Eric Paris <eparis@...hat.com>
Cc:	netdev@...r.kernel.org, nhorman@...hat.com, acme@...hat.com,
	dwalsh@...hat.com, davem@...emloft.net,
	linux-security-module@...r.kernel.org
Subject: Re: [PATCH 2/3] net: pass kern to net_proto_family create function

On Wed, 2009-11-04 at 11:32 -0500, Eric Paris wrote:
> The generic __sock_create function has a kern argument which allows the
> security system to make decisions based on if a socket is being created by
> the kernel or by userspace.  This patch passes that flag to the
> net_proto_family specific create function, so it can do the same thing.
[]
> -static int pppox_create(struct net *net, struct socket *sock, int protocol)
> +static int pppox_create(struct net *net, struct socket *sock, int protocol,
> +			int kern)

etc...

Perhaps more readable as bool is_kernel?


--
To unsubscribe from this list: send the line "unsubscribe netdev" 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