mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +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> (cherry picked from commit a1978fb1b2f9c97ae6ea7efb752e3d25ac261830) Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
41091fd411
commit
0acc2cd67c
@ -492,9 +492,11 @@ int mnt_rule::expand_variables(void)
|
||||
error = expand_entry_variables(&mnt_point);
|
||||
if (error)
|
||||
return error;
|
||||
filter_slashes(mnt_point);
|
||||
error = expand_entry_variables(&device);
|
||||
if (error)
|
||||
return error;
|
||||
filter_slashes(device);
|
||||
error = expand_entry_variables(&trans);
|
||||
if (error)
|
||||
return error;
|
||||
|
Loading…
x
Reference in New Issue
Block a user