https://bugs.kde.org/show_bug.cgi?id=475786

            Bug ID: 475786
           Summary: plasma-browser-integration does not work in firefox
                    due to apparmor
    Classification: KDE Neon
           Product: neon
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Packages User Edition
          Assignee: neon-b...@kde.org
          Reporter: m...@apache.org
                CC: j...@jriddell.org, neon-b...@kde.org, sit...@kde.org
  Target Milestone: ---

SUMMARY
The root issue was already filed as bug 397399 where the result was "This is an
issue with the upstream apparmor profile and currently we can't fix it without
changes in there." While the application itself can't fix it Neon is in a
different position and it should be able to drop in an override which allows
the execution of /usr/bin/plasma-browser-integration-host

I think (but haven tested it yet) that this should be possible by dropping a
file into /etc/apparmor.d/abstractions/kde.d/

STEPS TO REPRODUCE
1. Start firefox
2. Install /usr/bin/plasma-browser-integration-host
3. Go the the addons' preferences and notice the "Failed to connect to native
host" error message
4. Verify that the package plasma-browser-integration is installed
5. Go to about:debugging#/runtime/this-firefox
6. Click on "Inspect" for the Plasma Integration plugin
7. Look at console tab, notice the error message "Not auto-restarting host as
we haven't received any message from it before. Check that it's
working/installed correctly"
8. Google wildly and find pointers to apparmor
9. Finally look at something like `journalctl --since '1 hour ago' | grep
plasma-browser-integration-host` and notice lines like "Okt 18 09:58:52
localhost audit[20833]: AVC apparmor="DENIED" operation="exec" class="file"
profile="firefox" name="/usr/bin/plasma-browser-integration-host" pid=20833
comm=444F4D20576F726B6572 requested_mask="x" denied_mask="x" fsuid=1000 ouid=0"

OBSERVED RESULT
Plasma Browser Integrations do not work out of the box

EXPECTED RESULT
They should work

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon User Edition 5.27
(available in About System)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to