diff options
Diffstat (limited to 'libexec/security/security')
-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; |