summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2004-02-24 15:37:04 +0000
committerChris PeBenito <pebenito@gentoo.org>2004-02-24 15:37:04 +0000
commitd6e02c99c98c7b282c82cb9d100e7b77516892f2 (patch)
tree5bdb1b2208d887d46d605e4cc0034dc0c97ccf65 /sys-apps/procps/files
parentfixing Manifest (diff)
downloadgentoo-2-d6e02c99c98c7b282c82cb9d100e7b77516892f2.tar.gz
gentoo-2-d6e02c99c98c7b282c82cb9d100e7b77516892f2.tar.bz2
gentoo-2-d6e02c99c98c7b282c82cb9d100e7b77516892f2.zip
Add patch for -Z ps option for SELinux.
Diffstat (limited to 'sys-apps/procps/files')
-rw-r--r--sys-apps/procps/files/procps-3.2.0-selinux-Z.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys-apps/procps/files/procps-3.2.0-selinux-Z.diff b/sys-apps/procps/files/procps-3.2.0-selinux-Z.diff
new file mode 100644
index 000000000000..08cf4fe7fe7e
--- /dev/null
+++ b/sys-apps/procps/files/procps-3.2.0-selinux-Z.diff
@@ -0,0 +1,19 @@
+diff -urN procps-3.1.15/ps/parser.c procps-3.1.15.new/ps/parser.c
+--- procps-3.1.15/ps/parser.c 2003-12-23 17:58:06.000000000 -0600
++++ procps-3.1.15.new/ps/parser.c 2003-12-24 13:45:08.000000000 -0600
+@@ -315,12 +315,10 @@
+ exclusive("-V");
+ display_version();
+ exit(0);
+-#if 0
+- case 'Z': /* full Mandatory Access Control level info */
+- trace("-Z shows full MAC info\n");
+- return "Don't understand MAC on Linux.";
++ case 'Z':
++ trace("-Z shows SELinux contexts\n");
++ format_flags |= FF_Fc;
+ break;
+-#endif
+ case 'a':
+ trace("-a select all with a tty, but omit session leaders.\n");
+ simple_select |= SS_U_a;