Sure.
LABEL PID TTY TIME CMD
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 5342 pts/22 00:11:52 profanity
my user is a standard user on Fedora system:
$ id -Z
unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Henry Zhang a écrit :
Could you please list output of "$ ps -ZC profanity"?
On Thu, Jun 1, 2023 at 9:18 PM Casper <[1]fantom(a)fedoraproject.org> 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 -- [2]selinux(a)lists.fedoraproject.org
> > To unsubscribe send an email to
> [3]selinux-leave(a)lists.fedoraproject.org
> > Fedora Code of Conduct:
> [
4]https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> > List Guidelines:
> [
5]https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives:
> [
6]https://lists.fedoraproject.org/archives/list/selinux@lists.fedoraproje...
> > Do not reply to spam, report it:
> [7]https://pagure.io/fedora-infrastructure/new_issue
> --
> GnuPG: AE157E0B29F0BEF2 at [
8]keys.openpgp.org
> CA Cert: [
9]https://dl.casperlefantom.net/pub/ssl/root.der
> Jabber/XMPP Messaging: [10]casper(a)casperlefantom.net
References
Visible links
1. mailto:fantom@fedoraproject.org
2. mailto:selinux@lists.fedoraproject.org
3. mailto:selinux-leave@lists.fedoraproject.org
4.
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
5.
https://fedoraproject.org/wiki/Mailing_list_guidelines
6.
https://lists.fedoraproject.org/archives/list/selinux@lists.fedoraproject...
7.
https://pagure.io/fedora-infrastructure/new_issue
8.
http://keys.openpgp.org/
9.
https://dl.casperlefantom.net/pub/ssl/root.der
10. mailto:casper@casperlefantom.net
--
GnuPG: AE157E0B29F0BEF2 at
keys.openpgp.org
CA Cert:
https://dl.casperlefantom.net/pub/ssl/root.der
Jabber/XMPP Messaging: casper(a)casperlefantom.net