commit a1d28a6284f703d26df5e35bb4bbfba42bd5ad55 from: Omar Polo date: Sun Apr 02 09:53:46 2023 UTC drop unnecessary unveil(".", "r") These programs don't need to read files in the current directory: GotMArc loads in memory some files at load time, at that point no other accesses to "." are needed. commit - bd3babdf4467a7c440dd4fd8c66d8bbd1392d3ff commit + a1d28a6284f703d26df5e35bb4bbfba42bd5ad55 blob - f8c8f11646bf8e6a90e6d111c702c164c762c5cd blob + e6ba9a9707aca80a4b7a71191fcd5d52378a113f --- mexp +++ mexp @@ -24,8 +24,6 @@ die 'Set $OUTDIR' unless defined $outdir; unveil("/usr/local/bin/mshow", "rx") or die "unveil mshow: $!"; unveil($outdir, "rwc") or die "unveil $outdir: $!"; -unveil(".", "r") or die "unveil .: $!"; - pledge("stdio rpath wpath cpath proc exec") or die "pledge: $!"; sub export_part { blob - 5bc5e0b9eed800030b21dbef52c2a654cb166edc blob + 3ca47853b31677e8c01e7f0be73391aefd350c67 --- mkindex +++ mkindex @@ -160,7 +160,6 @@ sub index_entry { } unveil($outdir, "rwc") or die "unveil $outdir: $!"; -unveil(".", "r") or die "unveil .: $!"; # can't use tmppath because File::Temp checks wether /tmp exists. unveil("/tmp", "rwc") or die "unveil /tmp: $!";