ref: 16ba4693e5f2f12c01bfd2ff89d53504d24cbd75
parent: ac0c7a5c96b015af2abd74d3c9f24f51c198abfd
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Dec 14 13:06:17 EST 2022
netaudit: check none attach too
--- a/rc/bin/netaudit
+++ b/rc/bin/netaudit
@@ -169,6 +169,10 @@
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