Ubuntu 22.04: Browser Not Working After Hardening

I notice that web browsers, like Firefox and Chrome, will cease functioning after applying Ubuntu security guide – level1_workstation in some Ubuntu 22.04.

Error is like as following:

snap-confine has elevated permissions and is not confined but shou…


This content originally appeared on DEV Community and was authored by feng wei

I notice that web browsers, like Firefox and Chrome, will cease functioning after applying Ubuntu security guide - level1_workstation in some Ubuntu 22.04.

Error is like as following:

snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks. Please make sure that the snapd.apparmor service is enabled and started.

I am pretty sure that "snapd.apparmor service is enabled and started" after a quick check. With some Google research, i believe the issue is caused by a Linux Security Module called AppArmor, which restricts applications' capabilities and permissions with profiles that are set per-program. You can find more info about it here.

In short, AppArmor profiles have two modes of operation:

Complaining/Learning: profile violations are permitted and logged. This is useful for testing and developing new profiles.

Enforced/Confined: enforces profile policy in addition to logging the violation.

To solve the issue, we can set all profiles modes to "Enforced".

sudo aa-enforce /etc/apparmor.d/*

To verify profiles status, fire command "sudo aa-status"


This content originally appeared on DEV Community and was authored by feng wei


Print Share Comment Cite Upload Translate Updates
APA

feng wei | Sciencx (2024-09-05T02:23:36+00:00) Ubuntu 22.04: Browser Not Working After Hardening. Retrieved from https://www.scien.cx/2024/09/05/ubuntu-22-04-browser-not-working-after-hardening/

MLA
" » Ubuntu 22.04: Browser Not Working After Hardening." feng wei | Sciencx - Thursday September 5, 2024, https://www.scien.cx/2024/09/05/ubuntu-22-04-browser-not-working-after-hardening/
HARVARD
feng wei | Sciencx Thursday September 5, 2024 » Ubuntu 22.04: Browser Not Working After Hardening., viewed ,<https://www.scien.cx/2024/09/05/ubuntu-22-04-browser-not-working-after-hardening/>
VANCOUVER
feng wei | Sciencx - » Ubuntu 22.04: Browser Not Working After Hardening. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/05/ubuntu-22-04-browser-not-working-after-hardening/
CHICAGO
" » Ubuntu 22.04: Browser Not Working After Hardening." feng wei | Sciencx - Accessed . https://www.scien.cx/2024/09/05/ubuntu-22-04-browser-not-working-after-hardening/
IEEE
" » Ubuntu 22.04: Browser Not Working After Hardening." feng wei | Sciencx [Online]. Available: https://www.scien.cx/2024/09/05/ubuntu-22-04-browser-not-working-after-hardening/. [Accessed: ]
rf:citation
» Ubuntu 22.04: Browser Not Working After Hardening | feng wei | Sciencx | https://www.scien.cx/2024/09/05/ubuntu-22-04-browser-not-working-after-hardening/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.