diff options
author | 2020-06-05 18:12:21 -0700 | |
---|---|---|
committer | 2020-06-05 18:12:21 -0700 | |
commit | 5268d795d6888b202ad9f2b16a254cd00d0de77b (patch) | |
tree | c221ac7e3a4e95fdb323ddf1e20bada0a3e5daa8 /tools/perf/scripts/python/syscall-counts.py | |
parent | apparmor: check/put label on apparmor_sk_clone_security() (diff) | |
download | linux-dev-5268d795d6888b202ad9f2b16a254cd00d0de77b.tar.xz linux-dev-5268d795d6888b202ad9f2b16a254cd00d0de77b.zip |
apparmor: fix introspection of of task mode for unconfined tasks
Fix two issues with introspecting the task mode.
1. If a task is attached to a unconfined profile that is not the
ns->unconfined profile then. Mode the mode is always reported
as -
$ ps -Z
LABEL PID TTY TIME CMD
unconfined 1287 pts/0 00:00:01 bash
test (-) 1892 pts/0 00:00:00 ps
instead of the correct value of (unconfined) as shown below
$ ps -Z
LABEL PID TTY TIME CMD
unconfined 2483 pts/0 00:00:01 bash
test (unconfined) 3591 pts/0 00:00:00 ps
2. if a task is confined by a stack of profiles that are unconfined
the output of label mode is again the incorrect value of (-) like
above, instead of (unconfined). This is because the visibile
profile count increment is skipped by the special casing of
unconfined.
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions