Skip to content

Question: Why does slirpnetstack need to be run sudo? #25

@sidkshatriya

Description

@sidkshatriya

Pardon me if this question seems silly/uninformed.

In the README of this project you write that slirpnetstack should be run like this on the host side:

sudo ./bin/slirpnetstack -interface tun0 -netns /proc/31530/ns/net

Why does it need to be run sudo on the host side? It should be able to enter the net ns without need for sudo privileges. Also since slirpnetstack has its own user space stack (via gvisor), it just needs to make the appropriate syscalls that should not require any special privileges.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions