home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.jcu.edu.au
/
2014.06.ftp.jcu.edu.au.tar
/
ftp.jcu.edu.au
/
v6.3.2b
/
SWBD63
/
fabos-6.3.2b-10.ppc.rpm
/
fabos-6.3.2b.10.cpio.gz
/
fabos-6.3.2b.10.cpio
/
fabos
/
bin
/
netstat
< prev
next >
Wrap
Text File
|
2010-11-10
|
470b
|
26 lines
#!/bin/sh
#
# Copyright (c) 2007 Brocade Communications Systems, Inc.
# All rights reserved.
#
# File name: netstat
# Module name: fabos/src/utils/sys
#
# This script is wrapper to the traditional /bin/netstat command
# for enforcing the RBAC check on the CLI.
#
PATH=/fabos/libexec:/bin
# Check RBAC permission on command.
/fabos/libexec/rbac_check `basename $0`
if [ $? -ne 0 ]; then
exit 127
fi
if [ $# -eq 0 ]; then
/bin/netstat
else
/bin/netstat $*
fi