From: Alexandra Winter <wintera@linux.ibm.com>
To: Kuniyuki Iwashima <kuniyu@amazon.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Matthieu Baerts <matttbe@kernel.org>,
Mat Martineau <martineau@kernel.org>,
Wenjia Zhang <wenjia@linux.ibm.com>,
Jan Karcher <jaka@linux.ibm.com>,
Wen Gu <guwen@linux.alibaba.com>,
Tony Lu <tonylu@linux.alibaba.com>,
"D . Wythe" <alibuda@linux.alibaba.com>
Cc: Kuniyuki Iwashima <kuni1840@gmail.com>,
netdev@vger.kernel.org, mptcp@lists.linux.dev,
linux-s390@vger.kernel.org, Gerd Bayer <gbayer@linux.ibm.com>
Subject: Re: [PATCH v2 net-next] net: Deprecate SO_DEBUG and reclaim SOCK_DBG bit.
Date: Thu, 15 Feb 2024 15:14:21 +0100 [thread overview]
Message-ID: <020edf58-c839-41c1-a302-4a75423a1761@linux.ibm.com> (raw)
In-Reply-To: <20240214195407.3175-1-kuniyu@amazon.com>
On 14.02.24 20:54, Kuniyuki Iwashima wrote:
> + case SO_DEBUG:
> + /* deprecated, but kept for compatibility */
> + if (val && !sockopt_capable(CAP_NET_ADMIN))
> + ret = -EACCES;
> + return 0;
Setting ret has no effect here. Maybe you mean something like:
> + if (val && !sockopt_capable(CAP_NET_ADMIN))
> + return -EACCES;
> + return 0;
or
return (val && !sockopt_capable(CAP_NET_ADMIN)) ? -EACCESS : 0;
next prev parent reply other threads:[~2024-02-15 14:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-14 19:54 [PATCH v2 net-next] net: Deprecate SO_DEBUG and reclaim SOCK_DBG bit Kuniyuki Iwashima
2024-02-15 9:58 ` Matthieu Baerts
2024-02-15 19:37 ` Kuniyuki Iwashima
2024-02-15 14:14 ` Alexandra Winter [this message]
2024-02-15 19:39 ` Kuniyuki Iwashima
2024-02-15 15:07 ` Jakub Kicinski
2024-02-15 16:05 ` Paolo Abeni
2024-02-15 16:10 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=020edf58-c839-41c1-a302-4a75423a1761@linux.ibm.com \
--to=wintera@linux.ibm.com \
--cc=alibuda@linux.alibaba.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gbayer@linux.ibm.com \
--cc=guwen@linux.alibaba.com \
--cc=jaka@linux.ibm.com \
--cc=kuba@kernel.org \
--cc=kuni1840@gmail.com \
--cc=kuniyu@amazon.com \
--cc=linux-s390@vger.kernel.org \
--cc=martineau@kernel.org \
--cc=matttbe@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=tonylu@linux.alibaba.com \
--cc=wenjia@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox