Bug 483278
| Summary: | wrong context on /usr/bin/mysqld_safe | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vadym Chepkov <vchepkov> |
| Component: | selinux-policy-targeted | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ben Levenson <benl> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 10 | CC: | dwalsh |
| 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: | 2009-11-18 11:20:57 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
Vadym Chepkov
2009-01-30 17:12:51 UTC
Miroslav, I think it should be labeled mysqld_exec_t, and you will need to add can_exec(mysqld_t, mysqld_exec_t) I thought the idea is "the least privileges". In this case we would grant permissions to a simple shell script to modify database files, which it shouldn't have. Isn't it? I tried it and in this case also need to add:
corecmd_exec_bin(mysqld_t)
and also capabilities are appeared:
allow mysqld_t self:capability { fowner chown };
Question is if we want the same domain for mysqld_safe and mysqld ?
Ok I guess we should have a new domain. Vadym, you can take least privileges too far, generating additional domains does not always generate a great deal more security, and greatly increases complexity. If two apps have basically the same defition they should have run in the same domain, and in the past we have grown too many domains. The best example of this is the handling of spam. We grew the number of different domains to handle spam mail with every new mail handler that showed up. Problem was each needed to interact with every other and policy was always broken. fowner and chown are two capabilities I would rather not give to mysqld, so I guess the best case is to generate a new domain. We have a goal of not having any initrc_t domains running. Fixed in selinux-policy-3.5.13-45.fc10 This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. 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 '10'. 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 10'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 10 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 |