-
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Since RubyDNS will often bind to privileged port 53, it will be run as root. Ideally it will drop after binding.
http://timetobleed.com/5-things-you-dont-know-about-user-ids-that-will-destroy-you/
uid = Etc.getpwnam("nobody").uid
Process::Sys.setuid(uid)Pseudocode:
RubyDNS.run_server(INTERFACES, user: 'nobody') do
...
endbrodock
Metadata
Metadata
Assignees
Labels
No labels