RPM

Comment 6 for bug 633646

Revision history for this message
In , Steve (steve-redhat-bugs) wrote :

(In reply to comment #3)
> Something was wrong (maybe udev problem) and /dev/null was mislabeled. Now it
> has right context and it will work.

I easily reproduced this bug as suggested in comment 2.

mkdir fake_root
cd fake_root
sudo yum groupinstall Base --installroot=`pwd` --releasever=13

The mislabelling is in fake_root/dev:

[stephent@walnut fake_root]$ ls -Z dev
-rw-r--r--. root root unconfined_u:object_r:device_t:s0 null
-rw-r--r--. root root unconfined_u:object_r:device_t:s0 stderr
[stephent@walnut fake_root]$ ls -l dev
total 4
-rw-r--r--. 1 root root 0 Aug 12 09:43 null
-rw-r--r--. 1 root root 45 Aug 12 09:43 stderr
[stephent@walnut fake_root]$

Snippet from /var/log/messages:
Aug 12 09:38:35 localhost yum[6293]: Installed: libacl-2.2.49-6.fc13.x86_64
Aug 12 09:38:36 localhost yum[6293]: Installed: 2:shadow-utils-4.1.4.2-8.fc13.x86_64
Aug 12 09:38:36 localhost kernel: type=1400 audit(1281631116.450:29492): avc: denied { write } for pid=6507 comm="groupadd" path="/dev/null" dev=dm-4 ino=4073123 scontext=unconfined_u:system_r:groupadd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:device_t:s0 tclass=file
Aug 12 09:38:37 localhost yum[6293]: Installed: 1:dbus-1.2.24-1.fc13.x86_64
Aug 12 09:38:37 localhost yum[6293]: Installed: 1:findutils-4.4.2-8.fc13.x86_64