Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116993 - 2.1_pre2 does not respect device files in selinux mode.
Summary: 2.1_pre2 does not respect device files in selinux mode.
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: Other Linux
: High major (vote)
Assignee: Portage team
Depends on:
Reported: 2005-12-28 08:24 UTC by Paul de Vrieze (RETIRED)
Modified: 2007-01-11 11:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Paul de Vrieze (RETIRED) gentoo-dev 2005-12-28 08:24:17 UTC
When trying to install udev-0.78 on my selinux system installing fails. What happens is that portage tries to install /lib/udev/devices/zero by apparently copying. This fails when the device is finally full as it makes the device a regular file instead of the appropriate device.
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2005-12-28 08:39:51 UTC
After further investigation it is also in other portage versions. The code seems correct, so a python bug would be likely. The python version is 2.4.2.
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2005-12-28 08:49:16 UTC
Downgrading to python-2.4.1-r1 does not work, even though that was used to install an older udev.
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2005-12-28 12:41:25 UTC
I've dug further into. This is certainly a selinux only bug. If I have to guess it goes wrong in the selinux.secure_rename function. It's not really that clear though.
Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2005-12-28 12:51:09 UTC
Also to add. The /var filesystem is different from the /usr filesystem, so a cross filesystem move is needed.
Comment 5 Zac Medico gentoo-dev 2006-06-18 01:02:59 UTC
Is this still causing problems?  secure_rename is an unfortunate name if that's the way it's really supposed to behave.
Comment 6 Paul de Vrieze (RETIRED) gentoo-dev 2006-06-22 01:14:20 UTC
I don't know. I've since removed selinux from that system (I did not really have time to find things out). I'll close it with a NEEDINFO. If someone has this problem again, it can be reopened
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 11:06:43 UTC
Closing due to old age