Bug 481568 - Plasma Integration does not work on Firefox with AppArmor enabled
Summary: Plasma Integration does not work on Firefox with AppArmor enabled
Status: RESOLVED DUPLICATE of bug 397399
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Firefox (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-20 08:58 UTC by thepowersauce
Modified: 2024-02-20 10:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thepowersauce 2024-02-20 08:58:53 UTC
SUMMARY
After installing Neon 5.27 and the Plasma Integration extension in Firefox 123.0 it could not connect to the native host. After some research I found that disabling AppArmor for Firefox fixes the issue.
Article in question: https://discuss.kde.org/t/firefox-extension-plasma-integration/4583/7


STEPS TO REPRODUCE
1. Enable AppArmor for Firefox or have it enabled on installation.

Commands to enable AppArmor:
sudo rm /etc/apparmor.d/disable/usr.bin.firefox
cat /etc/apparmor.d/usr.bin.firefox | sudo apparmor_parser

2. Plasma integration fails to connect to native host.
3. Disable AppArmor for Firefox.

Commands to disable:
sudo ln -s /etc/apparmor.d/usr.bin.firefox /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.bin.firefox

4. Plasma Integration works after restarting Firefox.

OBSERVED RESULT
Plasma Integration does not work with AppArmor enabled.

EXPECTED RESULT
Plasma Integration should work with AppArmor enabled for Firefox like it is on install.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Comment 1 Kai Uwe Broulik 2024-02-20 09:21:18 UTC
If AppArmor blocks access to the host, then that's AppArmor. Nothing we can do.
Comment 2 Malte S. Stretz 2024-02-20 10:03:19 UTC
Tracked in bug 397399 already and a while ago I opened bug 475786 to have it backported to the KDE Neon AppArmor packages.

*** This bug has been marked as a duplicate of bug 397399 ***