apt-get does not correctly close its "progress monitoring" filedescriptor when invoking postinst scripts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apt
(Observed in Kubuntu 7.04)
During initial install of a Kubuntu system, the installer is invoking apt-get through the progress monitoring script debconf-
The problem is that apt-get inadvertedly passes its end of the pipe to its sub-processes (such as postinst scripts of the installed packages). If the package's postinst script start a daemon (as is being done by webmin), this daemon will inherit that filedescriptor as well.
However debconf-
Fix: apt-get should set close-on-exec on that filedescriptor.
I commited a fix for this in my bzr repository for gutsy.
I would be interessted in a easy way to reproduce the error so that I can verify that the fix really works.
Thanks,
Michael