forked from extern/shorewall_code
Require ADDRTYPE for DOCKER=Yes
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7a9e9ad945
commit
63b501996e
@ -5861,9 +5861,11 @@ sub get_configuration( $$$$ ) {
|
|||||||
default_yes_no 'WORKAROUNDS' , 'Yes';
|
default_yes_no 'WORKAROUNDS' , 'Yes';
|
||||||
default_yes_no 'DOCKER' , '';
|
default_yes_no 'DOCKER' , '';
|
||||||
|
|
||||||
fatal_error "DOCKER=Yes is not allowed in Shorewall6" if $family == F_IPV6;
|
if ( $config{DOCKER} ) {
|
||||||
|
fatal_error "DOCKER=Yes is not allowed in Shorewall6" if $family == F_IPV6;
|
||||||
require_capability( 'IPTABLES_S', 'DOCKER=Yes', 's' ) if $config{DOCKER};
|
require_capability( 'IPTABLES_S', 'DOCKER=Yes', 's' );
|
||||||
|
require_capability( 'ADDRTYPE', ' DOCKER=Yes', 's' );
|
||||||
|
}
|
||||||
|
|
||||||
if ( supplied( $val = $config{RESTART} ) ) {
|
if ( supplied( $val = $config{RESTART} ) ) {
|
||||||
fatal_error "Invalid value for RESTART ($val)" unless $val =~ /^(restart|reload)$/;
|
fatal_error "Invalid value for RESTART ($val)" unless $val =~ /^(restart|reload)$/;
|
||||||
|
Loading…
Reference in New Issue
Block a user