diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-14 18:06:17 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-14 18:06:17 +0000 |
commit | 16ba4693e5f2f12c01bfd2ff89d53504d24cbd75 (patch) | |
tree | 64b36f8026b73b25805cadfbdd5deef3a2cc87d5 /rc | |
parent | ac0c7a5c96b015af2abd74d3c9f24f51c198abfd (diff) |
netaudit: check none attach too
Diffstat (limited to 'rc')
-rwxr-xr-x | rc/bin/netaudit | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rc/bin/netaudit b/rc/bin/netaudit index df84c481b..fc69b98a6 100755 --- a/rc/bin/netaudit +++ b/rc/bin/netaudit @@ -169,6 +169,10 @@ fn checksec { echo $fs if(srv $fs netaudit.$pid >[2] /dev/null || srvtls $fs netaudit.$pid >[2] /dev/null){ + if(mount -N /srv/netaudit.$pid /n/netaudit >/dev/null >[2=1]) + echo ' file server allows none attach' + if not + echo ' file server does not allow none attach' if(mount -n /srv/netaudit.$pid /n/netaudit >/dev/null >[2=1]) echo ' file server does not require auth for user '^$user if not |