Skip to content

worr/dropprivs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dropprivs

Why dropprivs?

Face it — sometimes you need to start a service with elevated privileges. Even if you want to do something benign like drop yourself immediately into a chroot, you need to elevate privileges first.

Doing this is non-obvious though, as well as platform-specific. Linux, FreeBSD, OpenBSD and HP-UX include the handy setresuid(2) and retresgid(2) functions to facilitate setting the real, effective and saved uid and gid, respectively.

NetBSD, OS X and Solaris...do not.

About

Drop privileges securely in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages