mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
netaudit: fix format, always state the fileserver tested
This commit is contained in:
parent
16ba4693e5
commit
827fdabbf9
1 changed files with 5 additions and 7 deletions
|
@ -166,20 +166,18 @@ fn checksec {
|
|||
echo 'checking basic security:'
|
||||
for(fs in `{ndb/ipquery sys $sysname fs | sed 's/fs=//g'}) @{
|
||||
rfork n
|
||||
|
||||
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'
|
||||
echo ' fs='$fs 'allows none attach. mistake?'
|
||||
if not
|
||||
echo ' file server does not allow none attach'
|
||||
echo ' fs='$fs 'does not allow none attach. ok'
|
||||
if(mount -n /srv/netaudit.$pid /n/netaudit >/dev/null >[2=1])
|
||||
echo ' file server does not require auth for user '^$user
|
||||
echo ' fs='$fs 'does not require auth for user '^$user^'. mistake?'
|
||||
if not
|
||||
echo ' file server seems to require auth'
|
||||
echo ' fs='$fs 'seems to require auth. ok'
|
||||
}
|
||||
if not
|
||||
echo ' '^$fs^' is not listening'
|
||||
echo ' fs='$fs 'is not listening'
|
||||
rm -f /srv/netaudit.$pid
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue