forked from extern/shorewall_code
Straighten out -e and appropriate priv -- take 3
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6370 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
c827820dff
commit
17b3f98cb6
@ -261,8 +261,10 @@ compiler() {
|
||||
|
||||
shift
|
||||
|
||||
if [ -z "$EXPORT" -a $(id -u) -ne 0 -a -z "$SHOREWALL_DIR" ]; then
|
||||
startup_error "Ordinary users may only comple for export (-e option) or from a specified directory"
|
||||
if [ $(id -u) -ne 0 ]; then
|
||||
if [ -z "$SHOREWALL_DIR" -o "$SHOREWALL_DIR" = /etc/shorewall ]; then
|
||||
startup_error "Ordinary users may not compile the /etc/shorewall configuration"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
# We've now set SHOREWALL_DIR so recalculate CONFIG_PATH
|
||||
|
Loading…
Reference in New Issue
Block a user