User namespaces warning is alarmist and not actionable with flatpak
Categories
(Core :: Security: Process Sandboxing, defect)
Tracking
()
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)
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
|
Details | Review |
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.
Comment 1•4 months ago
|
||
: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.
Assignee | ||
Comment 2•4 months ago
|
||
I'm surprised we report the feature on flatpak
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 3•4 months ago
|
||
We can rely on gIOService it looks: https://searchfox.org/mozilla-central/rev/b3c85ac11d004fdb582577cd8f674efa44b0e253/browser/components/preferences/main.js#1732
Assignee | ||
Comment 4•4 months ago
|
||
Or even directly sysinfo which we already have, isPackagedApp
: https://searchfox.org/mozilla-central/rev/b3c85ac11d004fdb582577cd8f674efa44b0e253/xpcom/base/nsSystemInfo.cpp#1528-1530
Assignee | ||
Comment 5•4 months ago
|
||
Assignee | ||
Comment 6•4 months ago
|
||
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
Updated•4 months ago
|
Assignee | ||
Comment 7•4 months ago
|
||
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.
Updated•4 months ago
|
Assignee | ||
Comment 8•4 months ago
|
||
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.
Comment 10•4 months ago
|
||
bugherder |
Reporter | ||
Comment 11•4 months ago
|
||
Unofficial flatpak Nightly 130.0a1 (2024-07-24) no longer shows the user namespaces warning notification message.
Assignee | ||
Comment 12•4 months ago
|
||
(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
Comment 14•4 months ago
|
||
Comment on attachment 9414582 [details]
Bug 1909616 - Do not report userns notification on Flatpak/Snap/Deb r?gcp!
Approved for 129.0b9
Comment 15•4 months ago
|
||
uplift |
Updated•4 months ago
|
Description
•