2023-02-13 14:26:52 -05:00
|
|
|
// +build linux,go1.16 aix darwin dragonfly freebsd illumos netbsd solaris
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2023-02-19 09:04:34 -05:00
|
|
|
func enableSecurityRestrictions(config Config, ui userInfo) error {
|
2023-02-13 14:26:52 -05:00
|
|
|
|
|
|
|
// Setuid to an unprivileged user
|
2023-02-19 09:04:34 -05:00
|
|
|
return DropPrivs(ui)
|
2023-02-19 08:40:54 -05:00
|
|
|
|
2023-02-13 14:26:52 -05:00
|
|
|
}
|