Last Comment Bug 270623 - greprefs subdirectory; modes too much restrictive
: greprefs subdirectory; modes too much restrictive
Product: SeaMonkey
Classification: Client Software
Component: Build Config (show other bugs)
: Trunk
: x86 Linux
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
Depends on:
  Show dependency treegraph
Reported: 2004-11-18 09:00 PST by Jehan Procaccia
Modified: 2008-07-12 18:55 PDT (History)
5 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---


Description User image Jehan Procaccia 2004-11-18 09:00:51 PST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922

When installaling mozilla-1.7.3 from Red Hat RPM on a fedora Core 2 system,
/usr/lib/mozilla-1.7.3/greprefs get modes 700 which only allow root to launch
mozilla while using autoconfiguration of mozilla. Other unprevileged user cannot
read that directory , and mozilla freeze on an unterminable futex and a
gettimeofday ...

indeed for unprivilegde user I get from strace :

Reproducible: Always
Steps to Reproduce:
1. check that mode a 700 on greprefs directory
2. start mozilla as non root

Actual Results:  
it freeze

Expected Results:  
it start !

If I set /usr/lib/mozilla-1.7.3/greprefs modes 755 then everything is fine !
Why modes a so restrictive on greprefs directory ? is it dangerous to set it to
755 ? is it a bug, or a wrong packaging from the RPM ?
Comment 1 User image Christian :Biesinger (don't email me, ping me on IRC) 2004-11-18 10:31:16 PST
bsmedberg, is this a problem of make install, or is redhat to blame? :-)
Comment 2 User image Benjamin Smedberg [:bsmedberg] 2004-11-18 10:49:40 PST

We use nsinstall -D, I suppose there must be flags to change the security for
the created dir but I don't know what they are.
Comment 3 User image Tony Mechelynck [:tonymec]. (NEEDINFO me if you want my attention) 2008-07-12 18:55:33 PDT
Currently, the only SeaMonkey-trunk Linux-i686 distributions are in .tar.gz (without installer) and .complete.mar format. Other packagings (such as RPM) are the responsibility of redistributors (such as RedHat etc.) and ought not to use trunk builds anyway.


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