Loading net/ipv4/ip_sockglue.c +3 −0 Original line number Diff line number Diff line Loading @@ -848,6 +848,9 @@ int ip_setsockopt(struct sock *sk, int level, int optname, char __user *optval, case IP_IPSEC_POLICY: case IP_XFRM_POLICY: err = -EPERM; if (!capable(CAP_NET_ADMIN)) break; err = xfrm_user_policy(sk, optname, optval, optlen); break; Loading net/ipv6/ipv6_sockglue.c +3 −0 Original line number Diff line number Diff line Loading @@ -504,6 +504,9 @@ int ipv6_setsockopt(struct sock *sk, int level, int optname, break; case IPV6_IPSEC_POLICY: case IPV6_XFRM_POLICY: retv = -EPERM; if (!capable(CAP_NET_ADMIN)) break; retv = xfrm_user_policy(sk, optname, optval, optlen); break; Loading Loading
net/ipv4/ip_sockglue.c +3 −0 Original line number Diff line number Diff line Loading @@ -848,6 +848,9 @@ int ip_setsockopt(struct sock *sk, int level, int optname, char __user *optval, case IP_IPSEC_POLICY: case IP_XFRM_POLICY: err = -EPERM; if (!capable(CAP_NET_ADMIN)) break; err = xfrm_user_policy(sk, optname, optval, optlen); break; Loading
net/ipv6/ipv6_sockglue.c +3 −0 Original line number Diff line number Diff line Loading @@ -504,6 +504,9 @@ int ipv6_setsockopt(struct sock *sk, int level, int optname, break; case IPV6_IPSEC_POLICY: case IPV6_XFRM_POLICY: retv = -EPERM; if (!capable(CAP_NET_ADMIN)) break; retv = xfrm_user_policy(sk, optname, optval, optlen); break; Loading