[Pkg-sysvinit-devel] Bug#397525: initscripts: Remove extra fd usage from mtab init script

Petter Reinholdtsen pere at hungry.com
Sun Nov 26 16:07:47 CET 2006


[David Härdeman]
> the attached patch changes the initscripts mtab script to not use an
> extra fd when processing /proc/mounts. This makes SELinux happier as
> the extra fds aren't "leaked" to the utils that are executed later.

Sounds like a good idea, but I would like to know if it affect the
runtime behaviour or not.

> I must admit though that I didn't really understand why the fd9
> trick was used in the first place?

It is an optimization, to reduce the number of forks needed during
boot.  Will your version increase the number of forks needed?

Friendly,
-- 
Petter Reinholdtsen




More information about the Pkg-sysvinit-devel mailing list