Bug 453749 - shared-mime-info postinstall script is umask sensitive.
shared-mime-info postinstall script is umask sensitive.
Status: CLOSED DUPLICATE of bug 83006
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: shared-mime-info (Show other bugs)
5.2
i386 Linux
low Severity low
: rc
: ---
Assigned To: Bastien Nocera
desktop-bugs@redhat.com
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-02 06:54 EDT by Jarno Huuskonen
Modified: 2008-07-02 07:03 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-02 07:03:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jarno Huuskonen 2008-07-02 06:54:23 EDT
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.
Comment 1 Bastien Nocera 2008-07-02 07:03:08 EDT
See also bug 195414

*** This bug has been marked as a duplicate of 83006 ***

Note You need to log in before you can comment on or make changes to this bug.