]> Frank Brehm's Git Trees - config/bruni/etc-mint-new1.git/commitdiff
committing changes in /etc made by "/usr/bin/python3 /usr/bin/nala upgrade --purge"
authorFrank Brehm <frank@brehm-online.com>
Sat, 25 Nov 2023 05:18:01 +0000 (06:18 +0100)
committerFrank Brehm <root@bruni.home.brehm-online.com>
Sat, 25 Nov 2023 05:18:01 +0000 (06:18 +0100)
Packages with configuration changes:
-apparmor 3.0.4-2ubuntu2.2 amd64
+apparmor 3.0.4-2ubuntu2.3 amd64
-evince 42.3-0ubuntu3 amd64
+evince 42.3-0ubuntu3.1 amd64

Package changes:
-apparmor 3.0.4-2ubuntu2.2 amd64
-apparmor-profiles 3.0.4-2ubuntu2.2 all
-apparmor-utils 3.0.4-2ubuntu2.2 all
+apparmor 3.0.4-2ubuntu2.3 amd64
+apparmor-profiles 3.0.4-2ubuntu2.3 all
+apparmor-utils 3.0.4-2ubuntu2.3 all
-evince 42.3-0ubuntu3 amd64
-evince-common 42.3-0ubuntu3 all
+evince 42.3-0ubuntu3.1 amd64
+evince-common 42.3-0ubuntu3.1 all
-gir1.2-evince-3.0 42.3-0ubuntu3 amd64
+gir1.2-evince-3.0 42.3-0ubuntu3.1 amd64
-libapparmor1 3.0.4-2ubuntu2.2 amd64
-libapparmor1 3.0.4-2ubuntu2.2 i386
+libapparmor1 3.0.4-2ubuntu2.3 amd64
+libapparmor1 3.0.4-2ubuntu2.3 i386
-libevdocument3-4 42.3-0ubuntu3 amd64
+libevdocument3-4 42.3-0ubuntu3.1 amd64
-libevview3-3 42.3-0ubuntu3 amd64
+libevview3-3 42.3-0ubuntu3.1 amd64
-lintian 2.114.0ubuntu1.2 all
+lintian 2.114.0ubuntu1.3 all
-python3-apparmor 3.0.4-2ubuntu2.2 all
+python3-apparmor 3.0.4-2ubuntu2.3 all
-python3-libapparmor 3.0.4-2ubuntu2.2 amd64
+python3-libapparmor 3.0.4-2ubuntu2.3 amd64

.etckeeper
apparmor.d/abstractions/snap_browsers [new file with mode: 0644]
apparmor.d/usr.bin.evince

index 469eef84e8a886d5bfd96538d8350b4c376ef618..0a641a1fbed19039b665fadcae585c2f1ebeaa09 100755 (executable)
@@ -365,6 +365,7 @@ maybe chmod 0644 'apparmor.d/abstractions/recent-documents-write'
 maybe chmod 0644 'apparmor.d/abstractions/ruby'
 maybe chmod 0644 'apparmor.d/abstractions/samba'
 maybe chmod 0644 'apparmor.d/abstractions/smbpass'
+maybe chmod 0644 'apparmor.d/abstractions/snap_browsers'
 maybe chmod 0644 'apparmor.d/abstractions/ssl_certs'
 maybe chmod 0644 'apparmor.d/abstractions/ssl_keys'
 maybe chmod 0644 'apparmor.d/abstractions/svn-repositories'
diff --git a/apparmor.d/abstractions/snap_browsers b/apparmor.d/abstractions/snap_browsers
new file mode 100644 (file)
index 0000000..98fdeed
--- /dev/null
@@ -0,0 +1,43 @@
+profile snap_browsers {
+  include if exists <abstractions/snap_browsers.d>
+  include <abstractions/base>
+  include <abstractions/dbus-session-strict>
+
+  /etc/passwd r,
+  /etc/nsswitch.conf r,
+  /etc/fstab r,
+
+  # noisy
+  deny owner /run/user/[0-9]*/gdm/Xauthority r, # not needed on Ubuntu
+
+  /{,snap/core/[0-9]*/,snap/snapd/[0-9]*/}usr/bin/snap mrix, # re-exec
+  /{,snap/core/[0-9]*/,snap/snapd/[0-9]*/}usr/lib/snapd/info r,
+  /{,snap/core/[0-9]*/,snap/snapd/[0-9]*/}usr/lib/snapd/snapd r,
+  /{,snap/core/[0-9]*/,snap/snapd/[0-9]*/}usr/lib/snapd/snap-seccomp rPix,
+  /{,snap/core/[0-9]*/,snap/snapd/[0-9]*/}usr/lib/snapd/snap-confine Pix,
+  /var/lib/snapd/system-key r,
+  /run/snapd.socket rw,
+
+  @{PROC}/version r,
+  @{PROC}/cmdline r,
+  @{PROC}/sys/net/core/somaxconn r,
+  @{PROC}/sys/kernel/seccomp/actions_avail r,
+  @{PROC}/sys/kernel/random/uuid r,
+  owner @{PROC}/@{pid}/cgroup r,
+  owner @{PROC}/@{pid}/mountinfo r,
+  owner @{HOME}/.snap/auth.json r, # if exists, required
+
+  dbus send bus="session" path="/org/freedesktop/systemd1" interface="org.freedesktop.systemd1.Manager" member="StartTransientUnit" peer=(name="org.freedesktop.systemd1"),
+  dbus receive bus="session" path="/org/freedesktop/systemd1" interface="org.freedesktop.systemd1.Manager" member="JobRemoved",
+
+  /sys/kernel/security/apparmor/features/ r,
+
+  # allow launching official browser snaps.
+  /snap/chromium/[0-9]*/meta/{snap.yaml,hooks/} r,
+  /snap/firefox/[0-9]*/meta/{snap.yaml,hooks/} r,
+  /snap/opera/[0-9]*/meta/{snap.yaml,hooks/} r,
+
+  /var/lib/snapd/sequence/{chromium,firefox,opera}.json r,
+  /var/lib/snapd/inhibit/{chromium,firefox,opera}.lock rk,
+  # add other browsers here
+}
index 904f0ead7e3ca361370a30bf0c690ce5403fb597..55370f00d4a8188a9b548d1f17945ce32b6a1da8 100644 (file)
@@ -28,6 +28,9 @@
   #include <abstractions/ubuntu-console-email>
   #include <abstractions/ubuntu-media-players>
 
+  # allow evince to spawn browsers distributed as snaps (LP: #1794064)
+  #include <abstractions/snap_browsers>
+
   # For now, let evince talk to any session services over dbus. We can
   # blacklist any problematic ones (but note, evince uses libsecret :\)
   #include <abstractions/dbus-session>
   # evince creates a temporary stream file like '.goutputstream-XXXXXX' in the
   # directory a file is saved. This allows that behavior.
   owner /**/.goutputstream-* w,
+
+  # allow evince to spawn browsers distributed as snaps (LP: #1794064)
+  /{,snap/core/[0-9]*/,snap/snapd/[0-9]*/}usr/bin/snap mrCx -> snap_browsers,
 }
 
 /usr/bin/evince-previewer {