Commit 7734cc9d authored by Frank Denis's avatar Frank Denis

Add unix to the pledge promises

Required for writing to syslog.

Reported by @eau-u4f, thanks!
parent a24cb0d9
......@@ -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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment