Massimiliano Torromeo pushed to branch main at Arch Linux / Packaging / 
Packages / sssd


Commits:
78b09c53 by Massimiliano Torromeo at 2024-10-25T00:48:47+02:00
Fix permissions of files and directory that are mandatory to be owned by sssd

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + sssd-perms.tmpfile


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = sssd
        pkgdesc = System Security Services Daemon
        pkgver = 2.10.0
-       pkgrel = 1
+       pkgrel = 2
        url = https://github.com/SSSD/sssd
        arch = x86_64
        license = GPL-3.0-or-later
@@ -38,8 +38,10 @@ pkgbase = sssd
        backup = etc/logrotate.d/sssd
        source = 
https://github.com/SSSD/sssd/releases/download/2.10.0/sssd-2.10.0.tar.gz
        source = 
https://github.com/SSSD/sssd/releases/download/2.10.0/sssd-2.10.0.tar.gz.asc
+       source = sssd-perms.tmpfile
        validpgpkeys = C13CD07FFB2DB1408E457A3CD3D21B2910CF6759
        sha512sums = 
d237ff135fb21bcd1040787d6dfe8fa383290fbae1f15c6917284beb38dd95ecf6418335302e26be40c65e44e8b44135499eec0b98119ea53a38098ac0bc1e2c
        sha512sums = SKIP
+       sha512sums = 
4ef54f47a04e83236b93790995e289afd95bfc9e465a038b5750e81bf15c186371ea4bc7b9bd302ab1a4b104b20ef7b6124c0634aea85febb6483c87da078ea3
 
 pkgname = sssd


=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
 
 pkgname=sssd
 pkgver=2.10.0
-pkgrel=1
+pkgrel=2
 pkgdesc="System Security Services Daemon"
 arch=('x86_64')
 url="https://github.com/SSSD/sssd";
@@ -45,9 +45,11 @@ checkdepends=(
 )
 options=('!lto')
 backup=('etc/logrotate.d/sssd')
-source=("https://github.com/SSSD/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
+source=("https://github.com/SSSD/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
+        "sssd-perms.tmpfile")
 
sha512sums=('d237ff135fb21bcd1040787d6dfe8fa383290fbae1f15c6917284beb38dd95ecf6418335302e26be40c65e44e8b44135499eec0b98119ea53a38098ac0bc1e2c'
-            'SKIP')
+            'SKIP'
+            
'4ef54f47a04e83236b93790995e289afd95bfc9e465a038b5750e81bf15c186371ea4bc7b9bd302ab1a4b104b20ef7b6124c0634aea85febb6483c87da078ea3')
 validpgpkeys=('C13CD07FFB2DB1408E457A3CD3D21B2910CF6759')
 
 prepare() {
@@ -86,7 +88,6 @@ build() {
     --enable-pac-responder                        \
     --with-initscript=systemd                     \
     --with-os=fedora                              \
-    --with-pid-path=/run                          \
     --without-python2-bindings                    \
     --with-python3-bindings                       \
     --with-syslog=journald                        \
@@ -95,7 +96,7 @@ build() {
     --with-subid                                  \
     --with-passkey                                \
     --without-selinux                             \
-    --without-semanage                            \
+    --with-tmpfilesdir=/usr/lib/tmpfiles.d        \
     --with-systemdunitdir=/usr/lib/systemd/system \
     --with-ldb-lib-dir=/usr/lib/samba/ldb \
     ;
@@ -118,8 +119,9 @@ package() {
   find "$pkgdir"/usr -depth -type d \
     -exec rmdir --ignore-fail-on-non-empty {} \;
 
-  install -Dm0644 src/examples/logrotate "$pkgdir/etc/logrotate.d/sssd"
+  install -Dm0644 src/examples/logrotate "$pkgdir"/etc/logrotate.d/sssd
   install -Dm0644 contrib/sssd.sysusers "$pkgdir"/usr/lib/sysusers.d/sssd.conf
+  install -Dm0644 "$srcdir"/sssd-perms.tmpfile 
"$pkgdir"/usr/lib/tmpfiles.d/sssd-perms.conf
 
   cd "$srcdir"
   rm -rf "$pkgdir/etc/systemd" # remove the drop-in


=====================================
sssd-perms.tmpfile
=====================================
@@ -0,0 +1,10 @@
+z /etc/sssd/sssd.conf 600 sssd sssd -
+z /etc/sssd 750 sssd sssd -
+z /etc/sssd/conf.d 750 sssd sssd -
+z /etc/sssd/pki 750 sssd sssd -
+d /var/log/sssd - sssd sssd -
+Z /var/lib/sss - sssd sssd -
+z /usr/lib/sssd/sssd/krb5_child - - sssd -
+z /usr/lib/sssd/sssd/ldap_child - - sssd -
+z /usr/lib/sssd/sssd/proxy_child - - sssd -
+z /usr/lib/sssd/sssd/sssd_pam - - sssd -



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/sssd/-/commit/78b09c53e4e4f86e058f766c2029504f787ca623

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/sssd/-/commit/78b09c53e4e4f86e058f766c2029504f787ca623
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to