2023-02-13 19:26:52 +00:00
|
|
|
// +build linux,go1.16 aix darwin dragonfly freebsd illumos netbsd solaris
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
2023-02-19 13:40:54 +00:00
|
|
|
func enableSecurityRestrictions(config Config, ui userInfo, errorLog *log.Logger) error {
|
2023-02-13 19:26:52 +00:00
|
|
|
|
|
|
|
// Setuid to an unprivileged user
|
2023-02-19 13:40:54 +00:00
|
|
|
return DropPrivs(ui, errorLog)
|
|
|
|
|
2023-02-13 19:26:52 +00:00
|
|
|
}
|