Re: find context of the command process

Henry Zhang <[email protected]> Mon, 5 Jun 2023 11:06:25 -0700
Newsgroups gmane.linux.redhat.fedora.selinux
Message-ID <CANTW0yqzxusF_ewQ0oxZTGRx8SrR1jYWUnWksQ4kFd2oxL-Orw@mail.gmail.com>
Could you please list output of "$ ps -ZC profanity"?

On Thu, Jun 1, 2023 at 9:18 PM Casper <[email protected]> wrote:

> I made a try on a running process. It works for me:
>
> $ ps -ZC profanity
>
> same result as:
>
> $ ps -aZ | grep profanity
>
> Are your processes (tar, ls) currently running?...
>
> Henry Zhang a écrit :
> >    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
>
>
> --
> GnuPG: AE157E0B29F0BEF2 at keys.openpgp.org
> CA Cert: https://dl.casperlefantom.net/pub/ssl/root.der
> Jabber/XMPP Messaging: [email protected]
>

_______________________________________________
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