(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
(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 u:object_ r:device_ t:s0 null u:object_ r:device_ t:s0 stderr
-rw-r--r--. root root unconfined_
-rw-r--r--. root root unconfined_
[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: 2.2.49- 6.fc13. x86_64 utils-4. 1.4.2-8. fc13.x86_ 64 6.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 1.2.24- 1.fc13. x86_64 4.4.2-8. fc13.x86_ 64
Aug 12 09:38:35 localhost yum[6293]: Installed: libacl-
Aug 12 09:38:36 localhost yum[6293]: Installed: 2:shadow-
Aug 12 09:38:36 localhost kernel: type=1400 audit(128163111
Aug 12 09:38:37 localhost yum[6293]: Installed: 1:dbus-
Aug 12 09:38:37 localhost yum[6293]: Installed: 1:findutils-