On Mon, Mar 18, 2019 at 10:10:26PM +0100, Pierre Emeriaud wrote:
> Hello,
> 
> As explain in another mail to bugs@ ("rcctl issue with rdomains"), my
> shell is spawn from a sshd running in rtable 1.
> 
> lg(rdomain1)$ id -R
> 1
> 
> I can't however use `ping -V` to set the rtable I'm interested in:
> 
> lg(rdomain1)$ ping -V0 1.1.1.1
> ping: setsockopt SO_RTABLE: Operation not permitted
> 
> lg(rdomain1)$ doas ping -V0 1.1.1.1
> ping: setsockopt SO_RTABLE: Operation not permitted
> 
> lg(rdomain1)$ doas route -T0 exec ping -qc1 1.1.1.1
> PING 1.1.1.1 (1.1.1.1): 56 data bytes
> --- 1.1.1.1 ping statistics ---
> 1 packets transmitted, 1 packets received, 0.0% packet loss
> round-trip min/avg/max/std-dev = 7.827/7.827/7.827/0.000 ms
> 
> Don't know if that's a bug or a known/expected behavior too, so I
> wanted to have some input on this matter.
> 

This is expected behaviour. From setrtable(2):

     Only the superuser is allowed to change the process routing table if it
     is already set to a non-zero value.

-- 
:wq Claudio

Reply via email to