mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
parser: call filter slashes for mount conditionals
The mnt_point and devices conditionals in mount rules are generally paths and should have slashes filtered after variable expansion. MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/607 Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
35f6d49ec6
commit
a1978fb1b2
@ -490,9 +490,11 @@ int mnt_rule::expand_variables(void)
|
|||||||
error = expand_entry_variables(&mnt_point);
|
error = expand_entry_variables(&mnt_point);
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
|
filter_slashes(mnt_point);
|
||||||
error = expand_entry_variables(&device);
|
error = expand_entry_variables(&device);
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
|
filter_slashes(device);
|
||||||
error = expand_entry_variables(&trans);
|
error = expand_entry_variables(&trans);
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user