]> git.pld-linux.org Git - packages/systemd.git/commitdiff
- cleanup ACLs for /var/log/journal entries
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 26 May 2015 18:13:29 +0000 (20:13 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 26 May 2015 18:13:29 +0000 (20:13 +0200)
systemd.spec

index 413e2d1a64e747b9fe933baa7a4b3afc80a91686..f6e965538f4808f9459237d3a2d598c88b2b8183 100644 (file)
@@ -22,7 +22,7 @@ Summary(pl.UTF-8):    systemd - zarządca systemu i usług dla Linuksa
 Name:          systemd
 # Verify ChangeLog and NEWS when updating (since there are incompatible/breaking changes very often)
 Version:       220
-Release:       0.1
+Release:       0.2
 Epoch:         1
 License:       GPL v2+ (udev), LGPL v2.1+ (the rest)
 Group:         Base
@@ -900,8 +900,6 @@ rm -rf $RPM_BUILD_ROOT
 /lib/systemd/systemd-random-seed save || :
 /bin/systemctl --system daemon-reexec || :
 /bin/journalctl --update-catalog || :
-# Apply ACL to the journal directory
-/bin/setfacl -Rnm g:logs:rx,d:g:logs:rx /var/log/journal || :
 
 %postun
 if [ $1 -ge 1 ]; then
@@ -916,6 +914,10 @@ fi
 chgrp -R systemd-journal /var/log/journal
 chmod g+s /var/log/journal
 
+%triggerpostun -- systemd < 220-1
+# https://bugs.freedesktop.org/show_bug.cgi?id=89202
+/bin/getfacl -p /var/log/journal/$(cat /etc/machine-id) | grep -v '^#' | sort -u | /bin/setfacl -R --set-file=- /var/log/journal/$(cat /etc/machine-id) || :
+
 %post   libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
 
This page took 0.332748 seconds and 4 git commands to generate.