diff options
author | schwarze <schwarze@openbsd.org> | 2020-09-17 06:51:06 +0000 |
---|---|---|
committer | schwarze <schwarze@openbsd.org> | 2020-09-17 06:51:06 +0000 |
commit | 352e64a166b7bb06ff5892484e1670bd431699d7 (patch) | |
tree | 6a3e289fc025b2a62d7027e6ad8483703bf7d3b7 /libexec | |
parent | Move all the EAP logic from a single branch in the message parsing code to (diff) | |
download | wireguard-openbsd-352e64a166b7bb06ff5892484e1670bd431699d7.tar.xz wireguard-openbsd-352e64a166b7bb06ff5892484e1670bd431699d7.zip |
afs, nnpfs, and procfs are no longer supported,
so stop looking for them in mount(8) output;
no functional change intended;
OK millert@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/security/security | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/security/security b/libexec/security/security index cf6dfd7822d..abb257be930 100644 --- a/libexec/security/security +++ b/libexec/security/security @@ -1,6 +1,6 @@ #!/usr/bin/perl -T -# $OpenBSD: security,v 1.39 2020/09/14 14:43:13 schwarze Exp $ +# $OpenBSD: security,v 1.40 2020/09/17 06:51:06 schwarze Exp $ # # Copyright (c) 2011, 2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> # Copyright (c) 2011 Andrew Fresh <andrew@afresh1.com> @@ -540,9 +540,9 @@ sub find_special_files { "cannot spawn mount: $!" and return; while (<$fh>) { - my ($path, $type, $opt) = /\son\s+(.*?)\s+type\s+(\w+)(.*)/; + my ($path, $opt) = /\son\s+(.*?)\s+type\s+\w+(.*)/; $skip{$path} = 1 if $path && - ($type =~ /^(?:a|nnp|proc)fs$/ || $opt !~ /local/ || + ($opt !~ /local/ || ($opt =~ /nodev/ && $opt =~ /nosuid/)); } close_or_nag $fh, "mount" or return; |