mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-27 10:03:41 +01:00
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 =~ /^(.*):(.*)$/ ) {
|
} elsif ( $user =~ /^(.*):(.*)$/ ) {
|
||||||
$rule .= "--uid-owner $1 " if defined $1 && $1 ne '';
|
$rule .= "--uid-owner $1 " if defined $1 && $1 ne '';
|
||||||
$rule .= "--gid-owner $2 " if defined $2 && $2 ne '';
|
$rule .= "--gid-owner $2 " if defined $2 && $2 ne '';
|
||||||
} elsif ( $user =~ /^!/ ) {
|
} elsif ( $user =~ /^!(.*)$/ ) {
|
||||||
$user =~ s/!//;
|
fatal_error "Invalid USER/GROUP (!)" if $1 eq '';
|
||||||
$rule .= "! --uid-owner $user ";
|
$rule .= "! --uid-owner $1 ";
|
||||||
} else {
|
} else {
|
||||||
$rule .= "--uid-owner $user ";
|
$rule .= "--uid-owner $user ";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user