sysctl
Command
This executable can run non-interactive system commands.
- This function is performed by the privileged user if executed via
sudobecause the acquired privileges are not dropped.sysctl 'kernel.core_pattern=|/path/to/command'This 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.sysctl 'kernel.core_pattern=|/path/to/command'
File read
This executable can read data from local files.
- This function can be performed by any unprivileged user.
sysctl -n "/../../path/to/input-file"This function is performed by the privileged user if executed viasudobecause the acquired privileges are not dropped.sysctl -n "/../../path/to/input-file"This 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.sysctl -n "/../../path/to/input-file"