Bug 893037
| Summary: | "depmod -a" and wrong permissions | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Harald Reindl <h.reindl> |
| Component: | kmod | Assignee: | kmod development team <kmod-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | jonathan, kmod-maint, msivak |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-01-17 14:01:11 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Harald Reindl
2013-01-08 13:54:30 UTC
What is the umask for root on that box? Your theory about it depending on umask might make sense, but I'd like to see if it is indeed plausible, so knowing what the umask is would be helpful. [root@rh:~]$ umask 0027 that is because on the machine are running several services like httpd and so on for development and i do not like new files witout explicit permissions readable by all of them, that is why i think depmod should be explicit about the permissions Well, depmod already is explicit about the permissions on the files. The code that creates them calls openat with O_CREAT | O_TRUNC | O_WRONLY and mode = 0644. However, openat honors umask has it has forever. This isn't really a bug per se. It is behaving like every other process would with a umask like that. I'll email upstream about whether or not depmod should call umask(2) to set its own explicit umask. I'm somewhat doubtful that will be viable. Upstream also did not think this was a bug. depmod is honoring umask as it should. If you would like to run depmod and still allow users to read the files, then set a umask that allows that before running depmod. |