Add privilege dropping #35
Labels
No labels
Doing
To Do
api::config
api::grpc
bug
component::imctl
component::inetmock
documentation
duplicate
enhancement
good first issue
help wanted
invalid
new_protocol
pcap
protocols::dhcp
protocols::dns_mock
protocols::dns_over_https
protocols::http_mock
protocols::http_proxy
protocols::ntp
protocols::smtp
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: inetmock/inetmock#35
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Since Go 1.16 privilege dropping with
unix.Setuid
andunix.Setgid
is finally possible.A modified workflow could be:
chown
the data directoriesThat way created files would be opened by a restricted user and opening more sockets would be impossible. On the other hand the setup of the data directories and Mlmulti-container environments would be easier to setup.
Same's true for scenarios running directly on a host which might come handy when not all files are owned by
root
assigned to @baez90