Closed Bug 1812480 Opened 3 years ago Closed 4 months ago

Firefox Installs From .pkg Files Require Password Prompt to Update

Categories

(Release Engineering :: General, defect, P3)

Desktop
macOS

Tracking

(firefox153 fixed)

RESOLVED FIXED
Tracking Status
firefox153 --- fixed

People

(Reporter: haik, Assigned: hneiva)

References

Details

Attachments

(3 files)

When installing Firefox from a .pkg (not a .dmg), the installer places Firefox in /Applications with owner:group permissions as root:wheel. As a result of the 'wheel' group ownership, when the install of Firefox is updated, the update requires the user to authenticate with their password (or any admin account password). This allows Firefox's privileged updater to run which updates files and leaves the permissions as root:admin so that future updates by admin users can proceed without a password prompt.

It would be better if .pkg installs were configured to install Firefox with admin group ownership (i.e., root:admin) so that Firefox could be updated without a password prompt.

According to the pkgbuild(1) man page, this can be accomplished with the --ownership option.

Example Firefox pkg: Firefox_110_b5.pkg

@mkaply, do you know if enterprise use requires we install Firefox with root:wheel ownership on macOS so that Firefox can not be updated by non-admin users? This question only applies to installs from the .pkg files.

Flags: needinfo?(mozilla)

I got a response from one admin and they said it really doesn't make a difference.

I'm assuming you either have to put in the password at install or first update, right?

Flags: needinfo?(mozilla)

(In reply to Mike Kaply [:mkaply] from comment #2)

I got a response from one admin and they said it really doesn't make a difference.

OK, thanks.

I'm assuming you either have to put in the password at install or first update, right?

Sorry, my question was not worded correctly. This only applies to admin users. Non-admin users need an admin user to authenticate in order to install and for every update regardless of this proposed change. Fixing this would just be streamlining the first update for admin users so I think it's a clear-cut improvement.

The way it is now, you have to put in the password both at install time and on the first update.

If we changed the .pkg install to install Firefox with root:admin ownership, then the user would only need to input the password when they install.

If we changed the .pkg install to install Firefox with root:admin ownership, then the user would only need to input the password when they install.

That seems like the right thing to do.

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → kwright

We had a chance to investigate this bug yesterday to mixed results - the actual ownership issue is coming from further up the chain and the tooling on the current hardware does not provide for us an easy fix. Current hardware in our release pipeline which executes packaging code involves older mac minis with tooling outdated to the necessary commands to create copies of the archive with the correct ownership, or to change the ownership altogether. When we change the hardware and tooling on which we generate the signed .pkgs (part of a larger project), we will be able to fix this. For now, moving to releng.

Assignee: kwright → nobody
Component: Application Update → General
Product: Toolkit → Release Engineering
QA Contact: jlorenzo
Flags: needinfo?(hneiva)
See Also: → 1872934

Hey :KrisWright is this still happening?

Flags: needinfo?(kwright)

We definitely still want to address this, but it's not being worked on right now.

Flags: needinfo?(kwright)
Flags: needinfo?(hneiva)

I'm expecting we'll look into this again once we have the new mac hardware in place. (Newer version of xcode)

QA Contact: jlorenzo
See Also: → CVE-2026-8952
Assignee: nobody → hneiva
Status: NEW → ASSIGNED
Attachment #9563380 - Attachment description: Bug 1812480 - Change Mac pkgs contents ownership r?#releng,spohl → Bug 1812480 - Change Mac pkgs contents mode r?#releng,spohl
Attachment #9563381 - Attachment description: Bug 1812480 - Switch mac pkg source to repackaged instead of iscript r?#releng,spohl → Bug 1812480 - Switch mac pkg source to repackaged instead of iscript r?#releng
Pushed by hneiva@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9d0a9a94b715 https://hg.mozilla.org/integration/autoland/rev/bbfaaa1961ad Change Mac pkgs contents mode r=spohl,releng-reviewers,bhearsum https://github.com/mozilla-firefox/firefox/commit/e40679fc7168 https://hg.mozilla.org/integration/autoland/rev/270347904442 Switch mac pkg source to repackaged instead of iscript r=releng-reviewers,taskgraph-reviewers,ahal
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3a7b8eaf95b4 https://hg.mozilla.org/integration/autoland/rev/8c2eafc08725 Revert "Bug 1812480 - Switch mac pkg source to repackaged instead of iscript r=releng-reviewers,taskgraph-reviewers,ahal" for causing gecko decision failures

Backed out for causing gecko decision failures
Backout link
Push with failures
Failure log(s)

Flags: needinfo?(hneiva)
Pushed by hneiva@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1a92842445c3 https://hg.mozilla.org/integration/autoland/rev/67a6e91524f8 Change Mac pkgs contents mode r=spohl,releng-reviewers,bhearsum https://github.com/mozilla-firefox/firefox/commit/454142c38996 https://hg.mozilla.org/integration/autoland/rev/b000ac6beec8 Switch mac pkg source to repackaged instead of iscript r=releng-reviewers,taskgraph-reviewers,ahal
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Blocks: 2041666
No longer blocks: 2041666
Pushed by rperta@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c983b985e46a https://hg.mozilla.org/mozilla-central/rev/4addf98c4ca8 Revert "Bug 1812480 - Switch mac pkg source to repackaged instead of iscript r=releng-reviewers,taskgraph-reviewers,ahal" for causing Beetmover repackages build bustages
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 4 months ago → 4 months ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Regressions: 2041855

Can you give me a description for this for the enterprise readme?

:mkaply I'd do something along the lines of:

MacOS pkg installer: set installed file ownership to root:admin instead of root:wheel. This allows any user in the admin group (administrators) to update the app in place without being prompted for credentials, matching the behavior users expect from a standard Mac application install.

Pushed by hneiva@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b631498c8f31 https://hg.mozilla.org/integration/autoland/rev/335faf2a507e Change Mac pkgs contents mode r=spohl,releng-reviewers,bhearsum https://github.com/mozilla-firefox/firefox/commit/7f047ab3533d https://hg.mozilla.org/integration/autoland/rev/db4d2e5f6e68 Switch mac pkg source to repackaged instead of iscript r=releng-reviewers,taskgraph-reviewers,ahal
Status: REOPENED → RESOLVED
Closed: 4 months ago → 4 months ago
Resolution: --- → FIXED
Flags: needinfo?(hneiva)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: