~peter-maloney/bzr/peter

Viewing all changes in revision 2779.

  • Committer: Tyler Hicks
  • Date: 2014-11-13 16:40:19 UTC
  • Revision ID: tyhicks@canonical.com-20141113164019-wr4lq5q1mcheqo4s
tests: Add ptrace tests for LP: #1390592

These regression tests are for an Ubuntu-specific bug. However, they
should benefit the upstream project, as well. Ubuntu took an incomplete
version of a patch, which introduced the bug. The version of that patch
that landed upstream did not contain the bug.

The bug was in policy compilation of certain combinations of rule types,
conditionals, and conditional values. The easiest such combination to
test is a rule such as:

  ptrace peer=ABC,

Buggy parsers will generate binary policy that causes the kernel to deny
a ptrace of a process confined by ABC, despite the presence of the above
rule.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Acked-by: Steve Beattie <steve@nxnw.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: