Re: find context of the command process
Robin Lee Powell <[email protected]> Thu, 1 Jun 2023 17:45:50 -0700
| Newsgroups | gmane.linux.redhat.fedora.selinux |
|---|---|
| Message-ID | <[email protected]> |
I'm definitely not seeing that behaviour; can you give more detail? Like show us the `ps -aef` output with the things that `ps -ZC` isn't working for? On Thu, Jun 01, 2023 at 04:36:07PM -0700, Henry Zhang wrote: > Hi folks, > > It is hard to list a context of a process. > For example: > ps -ZC ls > or ps -ZC tar > only "ps -ZC sleep" returns context of the sleep process. > # ps -ZC sleep > > LABEL PID TTY TIME CMD > > system_u:system_r:initrc_t:s0 11744 ? 00:00:00 sleep > system_u:system_r:initrc_t:s0 13006 ? > 00:00:00 sleep > system_u:system_r:initrc_t:s0 14087 ? 00:00:00 sleep > > Any suggestions? > > --henry > _______________________________________________ > selinux mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/[email protected] > Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue _______________________________________________ selinux mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue