Bug 460039
Summary: | puppet is leaking open file descriptors | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel Walsh <dwalsh> |
Component: | puppet | Assignee: | Jeroen van Meeuwen <vanmeeuwen+fedora> |
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 13 | CC: | k.georgiou, lmacken, opensource, rzhou, tmz |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-06-27 13:59:48 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Daniel Walsh
2008-08-25 16:55:34 UTC
Not good .. is this with the latest version (0.24.5) ? Would you mind opening a bug upstream (http://reductivelabs.com/redmine/projects/puppet/issues/new) ? Otherwise, I can do it. Also, if you have a simple manifest that triggers that behavior, that would be quite helpful. At least the tempfile from Tempfile.new in the function execute in util.rb creates a selinux denial, if puppet starts a service, e.g. this manifest creates a denial, if dovecot is not running. I renamed the basename of the tempfile to identify it in the audit.log. service { "dovecot": ensure => running } It would probably easier to use some "exec" manifest using a confined command, but I did not test this. I am not sure, whether this is really leakage, because puppet intentionally creates a tempfile and redirects the output of a fork to this file. I believe I have read something about selinux about restricting the redirection of output from confined commands. sorry for the needinfo, don't know, how I set it. :-/ Yes if puppet is creating a tmpfile with stdout redirected to it, and then executes service CONFINEDDOMAIN restart, it will generate an AVC message. We can fix this problem by labeling the output file, and then allowing all confined domains to write to the output file. I would prefer the output file to be in /var/run/puppet/ or /var/log/puppet/ rather then tmp though, since I believe system processes should not use /tmp since users can attack you. puppet uses a ruby function to create the tempfile and I guess/hope, that it is done safely and there is no need to worry about any user being able to use this for an attack. If you are creating files for use by privledged processes in a directory where users have full read/write/delete privs, you are opening yourself to an unnecessary risk. But I guess that is your choice. The measures that tools like mktemp have had to go through to fight this risk prove the point. This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. (In reply to comment #4) > We can fix this problem by labeling the output file, and then allowing all > confined domains to write to the output file. I would prefer the output file > to be in /var/run/puppet/ or /var/log/puppet/ rather then tmp though, since I > believe system processes should not use /tmp since users can attack you. /var/run/puppet/ is also world writeable btw. This message is a reminder that Fedora 9 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 9. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '9'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 9's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 9 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping FWIW, I talked with upstream about the permissions on /var/run/puppet. We'll either get something workable for upstream or patch our packages to make /var/run/puppet have reasonable permissions (with upstream's blessing). How, if at all, does this relate to https://bugzilla.redhat.com/show_bug.cgi?id=502881 ? Can read that bugzilla. This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping FWIW, we have gotten the permissions on tightened up. They are now 0755 in our puppet packages. Jeroen, bug 502881 appears to be inaccessible. Could you summarize it if you think it's still potentially related? This is probably related to bug #546550 and http://projects.reductivelabs.com/issues/2731. There's a patch on the ticket to get rid of the tempfile stuff that will hopefully get accepted after some testing. This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle. Changing version to '13'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping This message is a reminder that Fedora 13 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 13. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '13'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 13's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 13 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 13 changed to end-of-life (EOL) status on 2011-06-25. Fedora 13 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. |