Public bug reported:

Not an Ubuntu release goes by where AppArmor does not appear to mess
things up...

This time I'm unable to set a background image. It just shows an even
colour. The colour set depends on the colours used in the image.

dmesg output show the following when changing the wallpaper:

--------------------------------------------------------------------------------
[  420.040191] audit: type=1400 audit(1762857297.514:289): apparmor="AUDIT" 
operation="userns_create" class="namespace" info="Userns create - transitioning 
profile" profile="unconfined" pid=13694 comm="bwrap" requested="userns_create" 
target="unprivileged_userns" execpath="/usr/bin/bwrap"
[  420.040914] audit: type=1400 audit(1762857297.515:290): apparmor="DENIED" 
operation="capable" class="cap" profile="unprivileged_userns" pid=13698 
comm="bwrap" capability=8  capname="setpcap"
[  420.040958] audit: type=1400 audit(1762857297.515:291): apparmor="DENIED" 
operation="capable" class="cap" profile="unprivileged_userns" pid=13698 
comm="bwrap" capability=12  capname="net_admin"
--------------------------------------------------------------------------------

Creating an AppArmor file with the following fixes the issue:

--------------------------------------------------------------------------------
abi <abi/4.0>,
include <tunables/global>

profile bwrap /usr/bin/bwrap flags=(unconfined) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/bwrap>
}
--------------------------------------------------------------------------------

I don't know if it's a good idea to add it like this, but at least it
works.

I don't know to which application this should be files against. Bug #2125226, 
which is likely related, has glycin and gnome-shell.
Ubuntu-bug does not allow me to file it against bwrap itself because it's 
apparently not installed.

Let me know if you need any more info.

ProblemType: Bug
DistroRelease: Ubuntu 25.10
Package: gnome-shell 49.0-1ubuntu1
ProcVersionSignature: Ubuntu 6.17.0-6.6-generic 6.17.1
Uname: Linux 6.17.0-6-generic x86_64
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: GNOME
Date: Tue Nov 11 11:54:53 2025
DisplayManager: gdm3
InstallationDate: Installed on 2023-08-15 (819 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
RelatedPackageVersions: mutter-common 49.0-2ubuntu5
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to questing on 2025-11-09 (2 days ago)

** Affects: gnome-shell (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug questing wayland-session

** Description changed:

  Not an Ubuntu release goes by where AppArmor does not appear to mess
  things up...
  
  This time I'm unable to set a background image. It just shows an even
  colour. The colour set depends on the colours used in the image.
  
  dmesg output show the following when changing the wallpaper:
  
+ 
--------------------------------------------------------------------------------
  [  420.040191] audit: type=1400 audit(1762857297.514:289): apparmor="AUDIT" 
operation="userns_create" class="namespace" info="Userns create - transitioning 
profile" profile="unconfined" pid=13694 comm="bwrap" requested="userns_create" 
target="unprivileged_userns" execpath="/usr/bin/bwrap"
  [  420.040914] audit: type=1400 audit(1762857297.515:290): apparmor="DENIED" 
operation="capable" class="cap" profile="unprivileged_userns" pid=13698 
comm="bwrap" capability=8  capname="setpcap"
  [  420.040958] audit: type=1400 audit(1762857297.515:291): apparmor="DENIED" 
operation="capable" class="cap" profile="unprivileged_userns" pid=13698 
comm="bwrap" capability=12  capname="net_admin"
+ 
--------------------------------------------------------------------------------
  
  Creating an AppArmor file with the following fixes the issue:
  
+ 
--------------------------------------------------------------------------------
  abi <abi/4.0>,
  include <tunables/global>
  
  profile bwrap /usr/bin/bwrap flags=(unconfined) {
-   userns,
+   userns,
  
-   # Site-specific additions and overrides. See local/README for details.
-   include if exists <local/bwrap>
+   # Site-specific additions and overrides. See local/README for details.
+   include if exists <local/bwrap>
  }
+ 
--------------------------------------------------------------------------------
  
  I don't know if it's a good idea to add it like this, but at least it
  works.
  
  I don't know to which application this should be files against. Bug #2125226, 
which is likely related, has glycin and gnome-shell.
  Ubuntu-bug does not allow me to file it against bwrap itself because it's 
apparently not installed.
  
  Let me know if you need any more info.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: gnome-shell 49.0-1ubuntu1
  ProcVersionSignature: Ubuntu 6.17.0-6.6-generic 6.17.1
  Uname: Linux 6.17.0-6-generic x86_64
  ApportVersion: 2.33.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: GNOME
  Date: Tue Nov 11 11:54:53 2025
  DisplayManager: gdm3
  InstallationDate: Installed on 2023-08-15 (819 days ago)
  InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
  RelatedPackageVersions: mutter-common 49.0-2ubuntu5
  SourcePackage: gnome-shell
  UpgradeStatus: Upgraded to questing on 2025-11-09 (2 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2131068

Title:
  Background image is not working, showing even colour

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2131068/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to