Bug#333836: [Pkg-sysvinit-devel] Bug#333836: initscripts: mountvirtfs and checkroot.sh have SELinux issues

2005-10-14 Thread Thomas Hood
Both mountvirtfs and checkroot.sh try to touch filesystem root nodes to verify that they are writeable. [...] I mean, it's the question if we really NEED the touch at all. checkroot.sh uses the function to tell whether or not /dev/shm is writable. mountvirtfs uses the function to tell whether

Bug#333836: [Pkg-sysvinit-devel] Bug#333836: initscripts: mountvirtfs and checkroot.sh have SELinux issues

2005-10-13 Thread Petter Reinholdtsen
tags 333836 - patch thanks On SELinux systems, this is currently not allowed by policy, and it's not desireable to allow this. Please add a check that tests for SELinux and just assumes the filesystems are writeable on SElinux? Please provide a working, tested, patch to implement what is

Bug#333836: [Pkg-sysvinit-devel] Bug#333836: initscripts: mountvirtfs and checkroot.sh have SELinux issues

2005-10-13 Thread Erich Schubert
Hi, This is the patch I'm currently testing: --- standard2005-10-14 02:47:56.0 +0200 +++ /etc/cron.daily/standard2005-10-14 01:52:34.0 +0200 @@ -39,6 +39,8 @@ chmod 600 passwd.bak) cmp -s group.bak /etc/group || (cp -p

Bug#333836: [Pkg-sysvinit-devel] Bug#333836: initscripts: mountvirtfs and checkroot.sh have SELinux issues

2005-10-13 Thread Erich Schubert
Hi, Oh, sorry, I confused two bugs I have opened... Come on, it's not that hard... How about: dir_writable () { if test -x /usr/sbin/selinuxenabled /usr/sbin/selinuxenabled; then if [ -d $1/ ] [ -w $1/ ] then return 0 fi return 1 fi