forked from extern/shorewall_code
Beef up check in do_user()
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8162 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
6d421fc49e
commit
c819e1fea7
@ -1194,9 +1194,9 @@ sub do_user( $ ) {
|
||||
} elsif ( $user =~ /^(.*):(.*)$/ ) {
|
||||
$rule .= "--uid-owner $1 " if defined $1 && $1 ne '';
|
||||
$rule .= "--gid-owner $2 " if defined $2 && $2 ne '';
|
||||
} elsif ( $user =~ /^!/ ) {
|
||||
$user =~ s/!//;
|
||||
$rule .= "! --uid-owner $user ";
|
||||
} elsif ( $user =~ /^!(.*)$/ ) {
|
||||
fatal_error "Invalid USER/GROUP (!)" if $1 eq '';
|
||||
$rule .= "! --uid-owner $1 ";
|
||||
} else {
|
||||
$rule .= "--uid-owner $user ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user