[rsbac] small bug in rsbac_fd_menu

Amon Ott rsbac@rsbac.org
Thu Jan 2 11:12:01 2003

Happy new year to you!

On Wednesday 01 January 2003 23:47, Tony den Haan wrote:
> rsbac_fd_menu gives this to stderr:
> /usr/local/bin/rsbac_fd_menu: test: -gt: unary operator expected
> i found this is caused by
> "$FILE" ms_scanned`
> and then
> if test $MSSCANNED -gt $MSL
> this goes wrong because MSSCANNED isn't set when the module isn't found.
> i'm assuming this is the Malware Scan module

Right, thanks for spotting. Changing this to

if test "$MSSCANNED" -gt $MSL

should do the job.
> i also wonder why and where SHOW_MS is set

It is created during rsbac_fd_menu initialization (lines 28-43) from the set 
of supported modules. This set may be specified in /etc/rsbac.conf or 
~/.rsbacrc. If not, the default of all modules is taken.

http://www.rsbac.org - GnuPG: 2048g/5DEAAA30 2002-10-22