From 06403e0ad2d232d7612d792bb0e976d373d961f4 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 1 Mar 2016 14:51:11 +0300 Subject: process properties: show cgroups + show N/A when selinux isn't set from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=f3879a89f9bcc3e96b009c0033accb461c0672ac https://git.gnome.org/browse/gnome-system-monitor/commit/?id=7484244ea470690e52dd5b3ced0ff36917000355 --- src/procproperties.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/procproperties.cpp b/src/procproperties.cpp index 3d24ab3..216f299 100644 --- a/src/procproperties.cpp +++ b/src/procproperties.cpp @@ -125,9 +125,10 @@ fill_proc_properties (GtkWidget *tree, ProcInfo *info) { N_("Nice"), g_strdup_printf("%d", info->nice)}, { N_("Priority"), g_strdup_printf("%s", procman::get_nice_level(info->nice)) }, { N_("ID"), g_strdup_printf("%d", info->pid)}, - { N_("Security Context"), g_strdup_printf("%s", info->security_context)}, + { N_("Security Context"), info->security_context ? g_strdup_printf("%s", info->security_context) : g_strdup(_("N/A"))}, { N_("Command Line"), g_strdup_printf("%s", info->arguments)}, { N_("Waiting Channel"), g_strdup_printf("%s", info->wchan)}, + { N_("Control Group"), info->cgroup_name ? g_strdup_printf("%s", info->cgroup_name) : g_strdup(_("N/A"))}, { NULL, NULL} }; -- cgit v1.2.1