ps: use attr/current as fallback for context

If SELINUX is enabled but the machine is using another MAC system
(like apparmor), ps will fallback to just parsing
"/proc/%d/attr/current", otherwise the label/context would not
be properly displayed in that case.

References:
 https://bugs.debian.org/786956

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Laurent Bigonville
2016-01-03 18:11:51 +11:00
committed by Craig Small
parent 6fcb690099
commit 5da390422d
2 changed files with 37 additions and 37 deletions

1
NEWS
View File

@@ -2,6 +2,7 @@ procps-ng-NEXT
----------------
* ps: sort by cgroup Debian #692279
* ps: display control group name with -o cgname
* ps: Fallback to attr/current for context Debian #786956
procps-ng-3.3.11
----------------