diff options
author | Florian Westphal <fw@strlen.de> | 2021-10-17 00:56:23 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-10-19 14:09:11 +0200 |
commit | 2139913694a9850c9160920b2c638aac4828f9bb (patch) | |
tree | 0cff62d1817f461ef531e1ec6375c5d71a696308 /tests/py/ip/masquerade.t.json.output | |
parent | e632eea21f4b3d03b629a5c1ac7e776d65785873 (diff) |
main: _exit() if setuid
Apparently some people think its a good idea to make nft setuid so
unrivilged users can change settings.
"nft -f /etc/shadow" is just one example of why this is a bad idea.
Disable this. Do not print anything, fd cannot be trusted.
This change intentionally doesn't affect libnftables, on the off-chance
that somebody creates an suid program and knows what they're doing.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/ip/masquerade.t.json.output')
0 files changed, 0 insertions, 0 deletions