Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package apparmor for openSUSE:Factory 
checked in at 2023-02-04 14:11:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/apparmor (Old)
 and      /work/SRC/openSUSE:Factory/.apparmor.new.4462 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "apparmor"

Sat Feb  4 14:11:00 2023 rev:186 rq:1062692 version:3.1.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/apparmor/apparmor.changes        2023-01-05 
15:00:07.048787694 +0100
+++ /work/SRC/openSUSE:Factory/.apparmor.new.4462/apparmor.changes      
2023-02-04 14:11:45.872345055 +0100
@@ -1,0 +2,6 @@
+Mon Jan 30 11:33:05 UTC 2023 - Christian Boltz <suse-b...@cboltz.de>
+
+- add nscd-systemd-userdb.diff: allow nscd to read systemd-userdb
+  (boo#1207698)
+
+-------------------------------------------------------------------

New:
----
  nscd-systemd-userdb.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ apparmor.spec ++++++
--- /var/tmp/diff_new_pack.bJzSTD/_old  2023-02-04 14:11:46.564348797 +0100
+++ /var/tmp/diff_new_pack.bJzSTD/_new  2023-02-04 14:11:46.568348819 +0100
@@ -91,6 +91,9 @@
 # allow reading /sys/devices/system/cpu/possible in 
dnsmasc//libvirt-leaseshelper (boo#1202849, submitted upstream 2022-08-28 
https://gitlab.com/apparmor/apparmor/-/merge_requests/917)
 Patch12:        dnsmasq-cpu-possible.diff
 
+# allow nscd to read systemd userdb (boo#1207698, submitted upstream 
2023-01-30 https://gitlab.com/apparmor/apparmor/-/merge_requests/977)
+Patch13:        nscd-systemd-userdb.diff
+
 PreReq:         sed
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  bison
@@ -356,6 +359,7 @@
 %patch5
 %patch6
 %patch12 -p1
+%patch13 -p1
 
 %build
 export SUSE_ASNEEDED=0



++++++ nscd-systemd-userdb.diff ++++++
>From https://gitlab.com/apparmor/apparmor/-/merge_requests/977

>From cb83ab51636e93371225c21906e01821b5b4261a Mon Sep 17 00:00:00 2001
From: Christian Boltz <appar...@cboltz.de>
Date: Mon, 30 Jan 2023 12:26:31 +0100
Subject: [PATCH] nscd: allow using systemd-userdb

If systemd-userdb is used to configure some users, nscd needs to read
the userdb files.

See also https://www.freedesktop.org/software/systemd/man/nss-systemd.html
for the list of possible filenames (and symlinks).

Fixes: http://bugzilla.opensuse.org/show_bug.cgi?id=1207698
---
 profiles/apparmor.d/usr.sbin.nscd | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/profiles/apparmor.d/usr.sbin.nscd 
b/profiles/apparmor.d/usr.sbin.nscd
index 80f970988..baa858ea6 100644
--- a/profiles/apparmor.d/usr.sbin.nscd
+++ b/profiles/apparmor.d/usr.sbin.nscd
@@ -41,6 +41,10 @@ profile nscd /usr/{bin,sbin}/nscd {
   @{PROC}/@{pid}/fd/* r,
   @{PROC}/@{pid}/mounts r,
 
+  # systemd-userdb
+  /{etc,run,run/host,/usr/lib}/userdb/ r,
+  
/{etc,run,run/host,/usr/lib}/userdb/*.{user,user-privileged,group,group-privileged}
 r,
+
   # Site-specific additions and overrides. See local/README for details.
   include if exists <local/usr.sbin.nscd>
 }
-- 
GitLab

Reply via email to