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-15 20:10:22 +00:00
|
|
|
func enableSecurityRestrictions(config Config, nobody_uid int, errorLog *log.Logger) {
|
2023-02-13 19:26:52 +00:00
|
|
|
|
|
|
|
// Setuid to an unprivileged user
|
2023-02-15 20:10:22 +00:00
|
|
|
DropPrivs(config, nobody_uid, errorLog)
|
2023-02-13 19:26:52 +00:00
|
|
|
}
|