forked from btcsuite/btcd
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict the available set of system calls to the daemon to the basic network and filesystem operations on OpenBSD. Further reduce potential harm by limiting file system access to the btcd data dir and the rpc files.
- Loading branch information
1 parent
796f174
commit 67aad53
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//go:build !openbsd | ||
|
||
package ossec | ||
|
||
func Unveil(path string, perms string) error { | ||
return nil | ||
} | ||
|
||
func Pledge(promises, execpromises string) error { | ||
return nil | ||
} | ||
|
||
func PledgePromises(promises string) error { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ossec | ||
|
||
import ( | ||
"golang.org/x/sys/unix" | ||
) | ||
|
||
func Unveil(path string, perms string) error { | ||
return unix.Unveil(path, perms) | ||
} | ||
|
||
func Pledge(promises, execpromises string) error { | ||
return unix.Pledge(promises, execpromises) | ||
} | ||
|
||
func PledgePromises(promises string) error { | ||
return unix.PledgePromises(promises) | ||
} |