Re: [PATCH net] s390/qeth: Check CAP_NET_ADMIN for private ioctls

From
Aswin Karuvally <aswin@linux.ibm.com>
Date
2026-07-28 10:50:30
Also in
linux-s390, stable
Reply to
Jakub Kicinski, 2026-07-28
On 28/07/26 06:36, Jakub Kicinski wrote:
On Thu, 23 Jul 2026 16:00:50 +0200 Aswin Karuvally wrote:
quoted
Gate the SIOCDEVPRIVATE ioctl commands SIOC_QETH_ADP_SET_SNMP_CONTROL,
SIOC_QETH_GET_CARD_TYPE and SIOC_QETH_QUERY_OAT with CAP_NET_ADMIN
capable check to ensure unprivileged users cannot invoke them.
No need to make this netns-aware, I assume?
Hi Jakub,
Thank you for accepting the patch!

It was concluded that the tools that make use of these calls are
strictly meant for IBM OSA cards on an LPAR, which find very limited use
within environments that make use of network namespaces, eg. containers.
Thus stuck with capable().
Thread (4 messages) 4 messages, 3 authors, last reply 2026-07-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help