On Mon, Feb 06, 2006 at 12:12:31PM -0500, Catherine Zhang wrote:
>
> Updated as per James' comment.
I don't quite understand how one actually uses this but it looks
correct technically :)
> diff -puN security/dummy.c~lsm-secpeer security/dummy.c
> --- linux-2.6.16-rc1/security/dummy.c~lsm-secpeer 2006-02-01
> 18:23:26.000000000 -0500
> +++ linux-2.6.16-rc1-cxzhang/security/dummy.c 2006-02-03 14:44:17.000000000
> -0500
> @@ -763,8 +763,14 @@ static int dummy_socket_sock_rcv_skb (st
> return 0;
> }
>
> -static int dummy_socket_getpeersec(struct socket *sock, char __user *optval,
> - int __user *optlen, unsigned len)
> +static int dummy_socket_getpeersec_stream(struct socket *sock, char __user
> *optval,
> + int __user *optlen, unsigned len)
> +{
> + return -ENOPROTOOPT;
> +}
> +
> +static int dummy_socket_getpeersec_dgram(struct sk_buff *skb, char **secdata,
> + u32 *seclen)
> {
> return -ENOPROTOOPT;
> }
You probably should update security_fixup_ops to reflect this change.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html