Bug 453749
| Summary: | shared-mime-info postinstall script is umask sensitive. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Jarno Huuskonen <jarno.huuskonen> |
| Component: | shared-mime-info | Assignee: | Bastien Nocera <bnocera> |
| Status: | CLOSED DUPLICATE | QA Contact: | desktop-bugs <desktop-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.2 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-07-02 11:03:08 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: | |||
See also bug 195414 *** This bug has been marked as a duplicate of 83006 *** |
Description of problem: Postinstall script for shared-mime-info-0.19-5.el5 is umask dependent. If umask is 077, then /usr/share/mime/{aliases,globs,magic} etc. get 0600 permissions --> problems when regular users (for example evince complains about unhandled mime types). Version-Release number of selected component (if applicable): shared-mime-info-0.19-5.el5 How reproducible: Steps to Reproduce: 1. set root's umask to 077 2. run update-mime-database /usr/share/mime 3. (or update/install shared-mime-info). Actual results: # ls -la /usr/share/mime/{aliases,globs,magic} -rw------- 1 root root 2419 Jul 2 13:50 /usr/share/mime/aliases -rw------- 1 root root 13661 Jul 2 13:50 /usr/share/mime/globs -rw------- 1 root root 11849 Jul 2 13:50 /usr/share/mime/magic Expected results: -rw-r--r-- 1 root root 2419 Jul 2 13:50 /usr/share/mime/aliases -rw-r--r-- 1 root root 13661 Jul 2 13:50 /usr/share/mime/globs -rw-r--r-- 1 root root 11849 Jul 2 13:50 /usr/share/mime/magic Additional info: shared-mime-info postinstall script (or update-mime-database program) should set umask to 022 before updating files.