package/apparmor: fix compatibility with busybox grep
authorAdam Duskett <Aduskett@gmail.com>
Fri, 8 May 2020 01:59:53 +0000 (18:59 -0700)
committerYann E. MORIN <yann.morin.1998@free.fr>
Fri, 8 May 2020 07:58:28 +0000 (09:58 +0200)
commit515751036c15048c1f3af81e98c189ac3f3bd1d6
tree416eab81882a5cae5fff98d84d45d6a7f75342cc
parent6569d76aeaf4726359166b429bf42e54ec9ce71e
package/apparmor: fix compatibility with busybox grep

The following regex string in rc.apparmor.functions
"^/.*[ \t]+flags[ \t]*=[ \t]*\([ \t]*complain[ \t]*\)[ \t]+{" is broken due to
the unescaped { at the end of the regex pattern.
GNU grep ignors the error. However, the Busybox grep does not and throws the
error "unescaped character {"

Escape the "{" character to fix this issue.

Note: Upstream has rewritten large sections of the rc.apparmor.functions file
and the function this patch fixes will no longer be necessary after the next
version is released. However, it is not possible to easily backport the
upstream patches as the rewrite comes with new features that would not be
possible with a simple patch such as this one.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/apparmor/0003-fix-regex-in-rc.apparmor.functions-to-work-with-busy.patch [new file with mode: 0644]