Closed Bug 1909616 Opened 4 months ago Closed 4 months ago

User namespaces warning is alarmist and not actionable with flatpak

Categories

(Core :: Security: Process Sandboxing, defect)

Firefox 129
Unspecified
Linux
defect

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox128 --- unaffected
firefox129 --- fixed
firefox130 --- fixed

People

(Reporter: ke5trel, Assigned: gerard-majax)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Bug 1899516 introduced a new warning about user namespaces:

Some of Nightly's security features may offer less protection on your current operating system. How to fix this issue.

This links to a SUMO article that suggests an AppArmor profile which is not relevant to flatpak. User namespaces are not supported with flatpak (Bug 1756236) and this is not considered a big deal (Bug 1882881) due to the existing flatpak isolation. The warning is alarmist and confusing for flatpak users and should be suppressed.

:gerard-majax, since you are the author of the regressor, bug 1899516, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(lissyx+mozillians)

I'm surprised we report the feature on flatpak

Flags: needinfo?(lissyx+mozillians)
Assignee: nobody → lissyx+mozillians

Comment on attachment 9414582 [details]
Bug 1909616 - Do not report userns notification on Flatpak/Snap/Deb r?gcp!

Beta/Release Uplift Approval Request

  • User impact if declined: Incorrect notification of reduced security of the sandbox
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): At worst we would not be showing the notification at all. The fix only relies on pre-existing code that sources the information of whether we are running as a Packaged App (Flatpak/Snap/Deb) and avoids showing the notification if it's the case. Impact is limited to Flatpak.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9414582 - Flags: approval-mozilla-beta?

While bug 1899516 was uplifted to ESR128, we dont need to uplift this fix because it is only relevant for Flatpak which we don't ship ESR of.

It should be part of the next beta pushed to flatpak. I believe we're too late for beta 8, so it will be beta 9. Please reopen in case it still happens, but from my local testing it was OK.

Flags: needinfo?(ke5trel)
Pushed by alissy@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fcd48a1ad31e Do not report userns notification on Flatpak/Snap/Deb r=gcp
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch

Unofficial flatpak Nightly 130.0a1 (2024-07-24) no longer shows the user namespaces warning notification message.

Flags: needinfo?(ke5trel)

(In reply to Kestrel from comment #11)

Unofficial flatpak Nightly 130.0a1 (2024-07-24) no longer shows the user namespaces warning notification message.

Thanks, I did not knew there was this project. It looks like they are doing their own repack, this might break when we fix some of the desktop files changes

See Also: → 1909832
Duplicate of this bug: 1909832
No longer duplicate of this bug: 1909832

Comment on attachment 9414582 [details]
Bug 1909616 - Do not report userns notification on Flatpak/Snap/Deb r?gcp!

Approved for 129.0b9

Attachment #9414582 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: