If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

mach install puts user instead of root, wrong permissions in /usr/local/lib/firefox-39.0a1

RESOLVED WORKSFORME

Status

()

Firefox
Build Config
RESOLVED WORKSFORME
3 years ago
2 years ago

People

(Reporter: stan, Unassigned)

Tracking

39 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150228082829

Steps to reproduce:

Built the devel version using ./mach build in mozilla-central directory of hg repository.
Then ./mach install to put result in /usr/local


Actual results:

The directory /usr/local/lib/firefox-39.0a1 was created.  Quibble, it should have been /usr/local/lib64/firefox-39.0a1.
But, even though I was root running the install, it installed everything as my user id, and with blank permissions for group and other.  When I tried to run it, I couldn't access required libraries.


Expected results:

It should have installed as root, and put in r-xr-x for directories and executables, and r--r-- for non executables for group and other.
This can be worked around by running 
chown -R root:root /usr/local/lib/firefox-39.0a1
chmod -R go+u  /usr/local/lib/firefox-39.0a1
chmod -R go-w  /usr/local/lib/firefox-39.0a1
Component: Untriaged → Build Config
(Reporter)

Comment 1

3 years ago
With version 40 of nightly this created the directories under lib64 and gave them root permissions.  I didn't think to check the permissions, I'll check when 41 comes out.
(Reporter)

Comment 2

2 years ago
This is mostly working in 41.  The directories created are under /usr/local/lib64 now, and I've modified the above workaround to be

chown -R root:root *
chcon -u system_u *
chmod -R go+u *
chmod -R go-w *

from pwd of /usr/local, and just automatically perform it as part of the ./mach install by root.

Haven't had any problems.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.