package bansuid
import "gopkg.in/hlandau/service.v2/daemon/bansuid"
Package bansuid provides a function to prevent processes from reacquiring privileges.
Index ¶
Variables ¶
Returned by BanSuid if it is not supported on the current platform.
Functions ¶
func BanSuid ¶
func BanSuid() error
On Linux, uses prctl() SECUREBITS and NO_NEW_PRIVS to prevent the process or its descendants from ever obtaining privileges by execing a suid/sgid/cap xattr binary. Returns ErrNotSupported if platform is not supported. May return other errors.
Source Files ¶
prctl.go prctl_linux.go
- Version
- v2.0.17 (latest)
- Published
- Mar 2, 2021
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 12 hours ago –
Tools for package owners.