💾 Archived View for thrig.me › blog › 2023 › 05 › 07 › unveil.pl captured on 2023-07-10 at 14:42:53.

View Raw

More Information

⬅️ Previous capture (2023-05-24)

-=-=-=-=-=-=-

#!/usr/bin/perl
#
# unveil.pl - "No such file or directory" by way of a security policy

use 5.36.0;
use OpenBSD::Unveil;

{ open my $fh, "<", "/etc/passwd" or die "should not happen?? $!\n" }

unveil( "/var", "r" );
{ open my $fh, "<", "/etc/passwd" or die "err: $!\n" }