# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/07/17329124
- Thread: https://ratatoskr.run/netdev/2026/07/17310063/t.md

```text
On 28/07/26 06:36, Jakub Kicinski wrote:
> On Thu, 23 Jul 2026 16:00:50 +0200 Aswin Karuvally wrote:
>> 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().
```
