From 909c68f164ac585777323d15767e76debc39d301 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Wed, 11 Oct 2017 18:28:40 +0200 Subject: [PATCH] btrbk: transaction_log and transaction_syslog are only allowed in root context --- btrbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btrbk b/btrbk index 238f7ae..54ad500 100755 --- a/btrbk +++ b/btrbk @@ -94,8 +94,8 @@ my %config_options = ( ssh_cipher_spec => { default => "default", accept_regexp => qr/^$ssh_cipher_match(,$ssh_cipher_match)*$/ }, rate_limit => { default => undef, accept => [ "no" ], accept_regexp => qr/^[0-9]+[kmgtKMGT]?$/, require_bin => 'pv' }, stream_buffer => { default => undef, accept => [ "no" ], accept_regexp => qr/^[0-9]+[kmgKMG%]?$/ }, # NOTE: requires 'mbuffer' command on target - transaction_log => { default => undef, accept => [ "no" ], accept_file => { absolute => 1 } }, - transaction_syslog => { default => undef, accept => [ "no", @syslog_facilities ] }, + transaction_log => { default => undef, accept => [ "no" ], accept_file => { absolute => 1 }, context => [ "root" ] }, + transaction_syslog => { default => undef, accept => [ "no", @syslog_facilities ], context => [ "root" ] }, lockfile => { default => undef, accept => [ "no" ], accept_file => { absolute => 1 }, context => [ "root" ] }, stream_compress => { default => undef, accept => [ "no", (keys %compression) ] },