All of lore.kernel.org
 help / color / mirror / Atom feed
* Display all processes using ps
@ 2010-06-12 23:36 Guido Trentalancia
  2010-06-14 13:37 ` Dominick Grift
  2010-06-15 14:12 ` Daniel J Walsh
  0 siblings, 2 replies; 4+ messages in thread
From: Guido Trentalancia @ 2010-06-12 23:36 UTC (permalink / raw)
  To: selinux

Hello everybody !

I am logging as root on a remote MLS machine using ssh so the default
role is staff_r. However, I need to execute ps (to display all system
processes, "ps -ax") over ssh. Unfortunately, ps does not show all
processes that are normally displayed when using the sysadm_r role
because it runs in the staff_r role.

What would be the safest way to allow ps over ssh to show all processes
running on the system ?

Thanks for your help.

Guido


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Display all processes using ps
@ 2010-06-14 11:31 Dennis Wronka
  0 siblings, 0 replies; 4+ messages in thread
From: Dennis Wronka @ 2010-06-14 11:31 UTC (permalink / raw)
  To: Guido Trentalancia, selinux

[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]

Can't tell you how to enable it for SSH only. I guess you'll need to edit the policy for that.
But in general you should be able to control ps's behavior using an SELinux boolean.
Look through "getsebool -a", you should be able to find it.

Sent from my HTC

----- Reply message -----
From: "Guido Trentalancia" <guido@trentalancia.com>
Date: Sun, Jun 13, 2010 07:36
Subject: Display all processes using ps
To: <selinux@tycho.nsa.gov>

Hello everybody !

I am logging as root on a remote MLS machine using ssh so the default
role is staff_r. However, I need to execute ps (to display all system
processes, "ps -ax") over ssh. Unfortunately, ps does not show all
processes that are normally displayed when using the sysadm_r role
because it runs in the staff_r role.

What would be the safest way to allow ps over ssh to show all processes
running on the system ?

Thanks for your help.

Guido


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

[-- Attachment #2: Type: text/html, Size: 1280 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-06-15 14:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-12 23:36 Display all processes using ps Guido Trentalancia
2010-06-14 13:37 ` Dominick Grift
2010-06-15 14:12 ` Daniel J Walsh
  -- strict thread matches above, loose matches on Subject: below --
2010-06-14 11:31 Dennis Wronka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.