Skip to content
Commit 3dc6b1ce authored by John Johansen's avatar John Johansen
Browse files

apparmor: make signal label match work when matching stacked labels



Given a label with a profile stack of
    A//&B or A//&C ...

A ptrace rule should be able to specify a generic trace pattern with
a rule like

    signal send A//&**,

however this is failing because while the correct label match routine
is called, it is being done post label decomposition so it is always
being done against a profile instead of the stacked label.

To fix this refactor the cross check to pass the full peer label in to
the label_match.

Signed-off-by: default avatarJohn Johansen <john.johansen@canonical.com>
parent 1d6583d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment