]> git.baikalelectronics.ru Git - kernel.git/commit
apparmor: make signal label match work when matching stacked labels
authorJohn Johansen <john.johansen@canonical.com>
Tue, 12 Dec 2017 09:02:13 +0000 (01:02 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 9 Feb 2018 19:30:01 +0000 (11:30 -0800)
commit6a2a7fd55c19fae0c6ea36ec78e4436f2c3145b7
tree243c6b0514015415805b60cd183ea9e25ac0747b
parent921fbd5c5ea0026cfe5866910c889901440ec4ec
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: John Johansen <john.johansen@canonical.com>
security/apparmor/ipc.c