ps not showing contexts?

Daniel J Walsh dwalsh at redhat.com
Fri Aug 24 13:00:06 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wart wrote:
> After a month's worth of rawhide updates, I noticed that ps is no longer
> reporting the contexts for processes:
> 
> [root at localhost audit]# selinuxenabled && echo $?
> 0
> [root at localhost audit]# rpm -q selinux-policy-targeted
> selinux-policy-targeted-3.0.5-11.fc8
> [root at localhost ~]# ps auwxZ | tail
> -                               gdm       2422  0.2  5.7  80604 29540 ?
>        Ss   21:58   0:03 /usr/libexec/gdmgreeter
> --gtk-module=gail:atk-bridge:/usr/lib/gtk-2.0/modules/libkeymouselistener
> -                               gdm       2424  0.4  0.7  13272  3956 ?
>        S    21:58   0:05 /usr/libexec/at-spi-registryd
> -                               gdm       2426  0.0  0.5  38748  2700 ?
>        Ssl  21:58   0:00 /usr/libexec/bonobo-activation-server
> --ac-activate --ior-output-fd=13
> 
> Any ideas what may have caused this to stop working?
> 
> --Wart
> 
> -- 
> fedora-selinux-list mailing list
> fedora-selinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-selinux-list
Works for me.   Also you selinux-policy is out of date.


# rpm -q selinux-policy
selinux-policy-3.0.6-1.fc8
# rpm -qf /bin/ps
procps-3.2.7-14.fc8


ps auwxZ | head -10
LABEL                           USER       PID %CPU %MEM    VSZ   RSS
TTY      STAT START   TIME COMMAND
system_u:system_r:init_t:s0     root         1  0.0  0.0   2152   632 ?
       Ss   Aug20   0:07 init [5]
system_u:system_r:kernel_t:s0   root         2  0.0  0.0      0     0 ?
       S<   Aug20   0:00 [kthreadd]
system_u:system_r:kernel_t:s0   root         3  0.0  0.0      0     0 ?
       S<   Aug20   0:00 [migration/0]
system_u:system_r:kernel_t:s0   root         4  0.0  0.0      0     0 ?
       S<   Aug20   0:00 [ksoftirqd/0]
system_u:system_r:kernel_t:s0   root         5  0.0  0.0      0     0 ?
       S<   Aug20   0:00 [watchdog/0]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGztZVrlYvE4MpobMRAnACAKDXtCyrzOTHVXS+N+O7JBMlA8MiXACggHDD
oOVJ+/0t8d5UhIOZr5ICpeA=
=v30z
-----END PGP SIGNATURE-----




More information about the selinux mailing list