ps not showing contexts?
Wart
wart at kobold.org
Sat Aug 25 22:24:42 UTC 2007
Daniel J Walsh wrote:
> -----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]
Still no luck. I restored the machine to a previously working state, and then
upgraded both procps and *selinux*. Immediately after the upgrade ps stopped
showing contexts again.
[...]
Updated: libselinux.i386 0:2.0.31-2.fc8 libselinux-python.i386 0:2.0.31-2.fc8
selinux-policy.noarch 0:3.0.6-3.fc8 selinux-policy-devel.noarch 0:3.0.6-3.fc8
selinux-policy-targeted.noarch 0:3.0.6-3.fc8
Dependency Updated: libsemanage.i386 0:2.0.4-1.fc8 libsepol.i386 0:2.0.7-1.fc8
policycoreutils.i386 0:2.0.25-2.fc8 policycoreutils-gui.i386 0:2.0.25-2.fc8
Complete!
[root at localhost ~]# ps auwxZ | head
LABEL USER PID %CPU %MEM VSZ RSS TTY
STAT START TIME COMMAND
- root 1 0.0 0.1 2108 624 ?
Ss 02:30 0:02 init [5]
- root 2 0.0 0.0 0 0 ?
S< 02:30 0:00 [kthreadd]
- root 3 0.0 0.0 0 0 ?
S< 02:30 0:00 [migration/0]
- root 4 0.0 0.0 0 0 ?
S< 02:30 0:00 [ksoftirqd/0]
- root 5 0.0 0.0 0 0 ?
S< 02:30 0:00 [watchdog/0]
- root 6 0.0 0.0 0 0 ?
S< 02:30 0:00 [events/0]
- root 7 0.0 0.0 0 0 ?
S< 02:30 0:00 [khelper]
- root 58 0.0 0.0 0 0 ?
S< 02:30 0:00 [kblockd/0]
- root 61 0.0 0.0 0 0 ?
S< 02:30 0:00 [kacpid]
[root at localhost ~]# rpm -q selinux-policy
selinux-policy-3.0.6-3.fc8
[root at localhost ~]# rpm -q procps
procps-3.2.7-15.1.fc8
When I get some time I'll start with a fresh F-7 install and then upgrade to
rawhide. Maybe some intermediate update broke things beyond repair.
--Wart
More information about the selinux
mailing list