drop useless unveil
This commit is contained in:
parent
4504b632ce
commit
1a1a875145
|
@ -12,11 +12,6 @@ use File::Path qw(make_path);
|
|||
use Sys::Syslog qw(:standard :macros);
|
||||
use 5.010;
|
||||
|
||||
my $isOpenBSD = ($^O eq 'openbsd') ? 1 : 0;
|
||||
if( $isOpenBSD ) {
|
||||
require OpenBSD::Unveil;
|
||||
}
|
||||
|
||||
my $verbose = 0;
|
||||
|
||||
# display usage and quit
|
||||
|
@ -294,16 +289,6 @@ sub main {
|
|||
if( $start ) {
|
||||
if( $isOpenBSD ) {
|
||||
mount_mfs($opts{u}, $impermanence_home, $data);
|
||||
|
||||
unveil($persist_home, "r");
|
||||
unveil($impermanence_home, "rwc");
|
||||
unveil("/etc/pwd.db", "r");
|
||||
unveil("/dev/", "r");
|
||||
foreach my $binary (qw| /sbin/mount_mfs /sbin/umount /bin/sh /sbin/swapctl /bin/df|) {
|
||||
unveil($binary, "x");
|
||||
}
|
||||
unveil();
|
||||
|
||||
populate_ramdisk($data, $persist_home, $impermanence_home, $opts{u});
|
||||
} else {
|
||||
mount_tmpfs($opts{u}, $impermanence_home, $data);
|
||||
|
|
Loading…
Reference in New Issue