Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900861 - =www-client/qutebrowser-2.5.3: AppArmor issue
Summary: =www-client/qutebrowser-2.5.3: AppArmor issue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-11 12:03 UTC by Bogdan
Modified: 2023-03-11 14:09 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan 2023-03-11 12:03:55 UTC
Apparmor profile for qutebrowser doesn't work and has no maintainer (<https://github.com/qutebrowser/qutebrowser/issues/7486#issuecomment-1321255802>, last update 2020-10-19).  When trying to run on my machine:

  /usr/share/libdrm/amdgpu.ids: Permission denied
  [0311/145444.785441:ERROR:resource_bundle.cc(947)] Failed to load /usr/share/qt5/resources/qtwebengine_resources_100p.pak
  Some features may not be available.
  [0311/145444.785499:ERROR:resource_bundle.cc(947)] Failed to load /usr/share/qt5/resources/qtwebengine_resources_200p.pak
  Some features may not be available.
  [0311/145444.785513:ERROR:resource_bundle.cc(947)] Failed to load /usr/share/qt5/resources/qtwebengine_resources.pak
  Some features may not be available.
  [0311/145444.785560:ERROR:resource_bundle_qt.cpp(127)] failed to load locale.pak
  LaunchProcess: failed to execvp:
  /usr/lib64/qt5/libexec/QtWebEngineProcess
  LaunchProcess: failed to execvp:
  /usr/lib64/qt5/libexec/QtWebEngineProcess

  /* Core dump... */

Since it looks like no one is going to maintain this AppArmor profile, I suggest removing it from the package as it was before (<www-client/qutebrowser-2.5.3).
Comment 1 Ionen Wolkens gentoo-dev 2023-03-11 13:52:24 UTC
I see, adding it was a request by whom I assume uses apparmor from [1], but either it actually wasn't tested or it's broken under specific configurations.

Seeing how the file wasn't touched in years upstream and that issue comment, I'll go ahead and remove it in a bit. Thanks.

[1] https://github.com/gentoo/gentoo/pull/29898
Comment 2 Larry the Git Cow gentoo-dev 2023-03-11 14:09:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa0be5662e3f7a35dcfd6f0ffef1cad0e7323de0

commit fa0be5662e3f7a35dcfd6f0ffef1cad0e7323de0
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-03-11 13:56:23 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-03-11 14:08:01 +0000

    www-client/qutebrowser: revbump to ensure no broken apparmor profile
    
    Closes: https://bugs.gentoo.org/900861
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 .../qutebrowser/{qutebrowser-2.5.3.ebuild => qutebrowser-2.5.3-r1.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b56990a413505dd277a8ca8491aca03998f6a63

commit 4b56990a413505dd277a8ca8491aca03998f6a63
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-03-11 13:54:57 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-03-11 14:08:01 +0000

    Revert "www-client/qutebrowser: install apparmor profile"
    
    This reverts commit de3188d3b33e3826a278b3426d5376311439e3dc.
    
    Adding this was a request but profile is apparently unmaintained
    upstream and installing it does not seem like a good idea if it's
    going to potentially crash the browser wrt bug #900861.
    
    From a quick look it seems like it'd need adjustment for the
    paths we uses too, but not limited to these (handling both slots
    of qtwebengine and gpu-related things it does seems non-trivial,
    lot of this profile feels like wishful guesswork).
    
    Users that really want this are invited to install/modify it
    manually for now.
    
    Bug: https://bugs.gentoo.org/900861
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 www-client/qutebrowser/qutebrowser-2.5.3.ebuild         | 3 ---
 www-client/qutebrowser/qutebrowser-3.0.0_pre9999.ebuild | 3 ---
 www-client/qutebrowser/qutebrowser-9999.ebuild          | 3 ---
 3 files changed, 9 deletions(-)