bareos: bareos-19.2 07e70fee

Author Committer Branch Timestamp Parent
arogge arogge bareos-19.2 2020-02-10 14:34 bareos-19.2 208119f1 Pending
Affected Issues  0001175: bareos crashes with invalid character in ACL
Changeset lib: allow more chars in IsAclEntryValid()

Bug 0001175: bareos crashes with invalid character in ACL

The newly introduced IsAclEntryValid() allowed only "!*.:_-'/" as chars
in an ACL. As regular expressions are possible in ACLs this list did not
allow some previously valid ACLs to be configured.
This patch extends the list to allow "!()[]|+?*.:_-'/" which will allow
most syntaxes.
We do not add "{}," intentionally, because this would re-allow the wrong
ACL syntaxes that the original change tried to catch (i.e. adding a
string with comma-separated resource names instead of a list of resource
names).

(cherry picked from commit 1449105d157f8a713aa508240ee487ea1c4cf282)
mod - core/src/lib/edit.cc Diff File