Add unix to the pledge promises

Required for writing to syslog.

Reported by @eau-u4f, thanks!
This commit is contained in:
Frank Denis 2018-08-15 17:58:07 +02:00
parent a24cb0d900
commit 7734cc9d2a
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}