Add unix to the pledge promises
Required for writing to syslog. Reported by @eau-u4f, thanks!
This commit is contained in:
parent
a24cb0d900
commit
7734cc9d2a
|
@ -7,9 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func Pledge() {
|
||||
unix.Pledge("stdio rpath wpath cpath tmppath inet fattr flock dns getpw sendfd recvfd proc exec id", nil)
|
||||
unix.Pledge("stdio rpath wpath cpath tmppath inet unix fattr flock dns getpw sendfd recvfd proc exec id", nil)
|
||||
}
|
||||
|
||||
func PledgeChild() {
|
||||
unix.Pledge("stdio rpath wpath cpath tmppath inet fattr flock dns recvfd", nil)
|
||||
unix.Pledge("stdio rpath wpath cpath tmppath inet unix fattr flock dns recvfd", nil)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue