[apparmor] [Patch][parser] fix: pass through unprocessed escapes to the backend
Steve Beattie
steve at nxnw.org
Tue Feb 3 07:47:08 UTC 2015
On Fri, Jan 30, 2015 at 03:09:24PM -0800, John Johansen wrote:
> v2
> - fix character pass through issue
> - add tests
>
> Currently the parser does escape processing in multiple places, this can
> result in failures if not handled properly The lexer front end currently
> incorrectly processes the \000 \x00 \d00 escape sequence resulting in a
> null character being embedded in the processed string, this results in the
> string not being full processed later.
>
> The aare to pcre regex conversion fn also incorrectly strips out the \00,
> and any other escape sequence it doesn't know about, resulting in
> incorrect strings being passed to the backend. Fix this by passing through
> any valid escape sequence that is not handled by the fn.
>
> this is a partial fix for
>
> Bug: http://bugs.launchpad.net/bugs/1413410
>
> Signed-off-by: John Johansen <john.johansen at canonical.com>
>
> nominated for 2.9 and 3.0
Acked-by: Steve Beattie <steve at nxnw.org> for both. Thanks.
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150202/52f8a946/attachment.pgp>
More information about the AppArmor
mailing list