[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54C741E4.2000009@gmail.com>
Date: Tue, 27 Jan 2015 15:44:36 +0800
From: Fan Du <fengyuleidian0615@...il.com>
To: David Miller <davem@...emloft.net>
CC: fan.du@...el.com, steffen.klassert@...unet.com,
herbert@...dor.apana.org.au, netdev@...r.kernel.org
Subject: Re: [PATCH ipsec-next] xfrm: Do not parse 32bits compiled xfrm netlink
msg on 64bits host
于 2015年01月27日 15:39, David Miller 写道:
> From: Fan Du <fan.du@...el.com>
> Date: Tue, 27 Jan 2015 10:54:22 +0800
>
>> @@ -2419,6 +2419,11 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
>> const struct xfrm_link *link;
>> int type, err;
>>
>> +#ifdef CONFIG_COMPAT
>> + if (is_compat_task())
>> + return -EPERM;
>> +#endif
>> +
>
> This seems more like an unsupported operation rather then a permission
> problem.
>
how about *ENOTSUPP* ?
--
No zuo no die but I have to try.
--
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