Use createRuntime to setup network in rootless

13 views
Skip to first unread message

Chenwei

unread,
Apr 16, 2024, 11:19:46 PMApr 16
to dev
Hi,

I'm trying to use createRuntime hook to configure the network namespace by the following script:
`
ip_wrapper link set svh netns $pid
`

The ip_wrapper is my own binary with CAP_NET_ADMIN and pid is the pid of the process running network namespace. I can use this binary to configure network without root. However, when I hook this in createRuntime, I still get `RTNETLINK answers: Operation not permitted`, is there anything I missed?

Thanks
Reply all
Reply to author
Forward
0 new messages