[Pkg-sysvinit-devel] Bug#403863: Bug#403863: chkrootkit and false positive dot-files
Petter Reinholdtsen
pere at hungry.com
Fri Jan 30 15:57:58 UTC 2009
[Henrique de Moraes Holschuh]
> Err, how can it NOT be safe to write there?
If something try to write there before /etc/rcS.d/S02mountkernfs.sh
has executed, it will not be possible to write to /lib/init/rw/.
> What would be an example of expected use of that marker? I don't
> get it, either.
Here is an example:
if [ -f /lib/init/rw/.ramfs ] ;
do_stuff_needing_initrw
else
echo "Unable to do stuff, because /lib/init/rw/ is not yet writable"
fi
Kernel event handlers called from udev (when udev is started in the
initrd) could find it useful to know if /lib/init/rw/ is writable or
not. :)
Happy hacking,
--
Petter Reinholdtsen
More information about the Pkg-sysvinit-devel
mailing list