Link rule target fails syntax check when a leading variable is used
Reported by
Mikhail Morfikov @morfikov · 3 days ago It looks like the same problem is in the case of link rules (tested with apparmor 3.0.1-5), for instance, this doesn't work:
owner "@{HOME}/.local/share/fonts/Google Fonts/**/.uuid{,.NEW,.LCK,.TMP-*}" rw,
link "@{HOME}/.local/share/fonts/Google Fonts/**/.uuid.LCK" -> "@{HOME}/.local/share/fonts/Google Fonts/**/.uuid.TMP-*",
but this do the job:
owner "@{HOME}/.local/share/fonts/Google Fonts/**/.uuid{,.NEW,.LCK,.TMP-*}" rw,
link "@{HOME}/.local/share/fonts/Google Fonts/**/.uuid.LCK" -> "/home/*/.local/share/fonts/Google Fonts/**/.uuid.TMP-*",
Edited by John Johansen