Don't call PledgeChild() too early
This commit is contained in:
parent
127d4f0e68
commit
dc602512ff
|
@ -193,6 +193,9 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
|
|||
|
||||
flag.Parse()
|
||||
|
||||
if *child {
|
||||
PledgeChild()
|
||||
}
|
||||
if *svcFlag == "stop" || *svcFlag == "uninstall" {
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -39,7 +39,6 @@ func (proxy *Proxy) dropPrivilege(userStr string, fds []*os.File) {
|
|||
}
|
||||
|
||||
SystemDNotify()
|
||||
PledgeChild()
|
||||
|
||||
args = args[1:]
|
||||
args = append(args, "-child")
|
||||
|
|
Loading…
Reference in New Issue