Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7336c325d0070624dc0fc6df565fa0fbe1b34def

commit 7336c325d0070624dc0fc6df565fa0fbe1b34def
Author: crazy <[email protected]>
Date:   Mon Apr 17 13:21:04 2017 +0200

systemd-231-15-x86_64
* added backport patch for :
https://github.com/systemd/systemd/issues/5644
even when poettering thinks is _not_ a problem
systemd removes whole '/' .. ROFL

diff --git a/source/base/systemd/FrugalBuild b/source/base/systemd/FrugalBuild
index 7f4ec5d..760ed6f 100644
--- a/source/base/systemd/FrugalBuild
+++ b/source/base/systemd/FrugalBuild
@@ -9,7 +9,7 @@ USE_SYSV_COMPAT=${USE_SYSV_COMPAT:-"y"}

pkgname=systemd
pkgver=231
-pkgrel=14
+pkgrel=15
pkgdesc="A System and Service Manager"
url="http://www.freedesktop.org/wiki/Software/systemd";
depends=('kmod>=24-2' 'cryptsetup-luks>=1.7.3-3' 'lz4')
@@ -37,7 +37,8 @@ source+=(
usb-load-ehci-first.conf \
frugalware_sysusers.patch \
frugalware_tty.patch \
-       c9f7b4d356a453a01aa77a6bb74ca7ef49732c08.diff)
+       c9f7b4d356a453a01aa77a6bb74ca7ef49732c08.diff \
+       bug-#5644.patch)

## some things need fixing first -- crazy --
#mount-proc-with-hidepid2-by-default.patch)
@@ -59,7 +60,8 @@ sha1sums=('47768103290d2023c3452bc36bc77f7b1fd798ea' \
'ecb14db2a916c96781ee2fcb8d0cd44dbe978dd7' \
'5a955e19d11b1248e4da14fddd08a7b3a0e64ca9' \
'b10c82b83d2f4085304605c7fb8b09d03d3998b3' \
-          '14ca4ae728757fb7ffaef35420e938fdcd252899')
+          '14ca4ae728757fb7ffaef35420e938fdcd252899' \
+          'a1b4510c1d1c06efc827e5202dc698ade411f00c')

rodepends=('hwdata' 'systemd-sysvinit')

diff --git a/source/base/systemd/bug-#5644.patch 
b/source/base/systemd/bug-#5644.patch
new file mode 100644
index 0000000..367b0f9
--- /dev/null
+++ b/source/base/systemd/bug-#5644.patch
@@ -0,0 +1,17 @@
+diff -Naur systemd-231/src/basic/rm-rf.c systemd-231-p/src/basic/rm-rf.c
+--- systemd-231/src/basic/rm-rf.c      2016-07-25 21:49:47.000000000 +0200
++++ systemd-231-p/src/basic/rm-rf.c    2017-04-17 12:52:55.495157108 +0200
+@@ -188,6 +188,13 @@
+                 return -EPERM;
+         }
+
++        /* Another safe-check. Removing "/path/.." could easily remove entire 
root as well.
++         * It's especially easy to do using globs in tmpfiles, like 
"/path/.*", which the glob()
++         * function expands to both "/path/." and "/path/..".
++         * Return -EINVAL to be consistent with rmdir("/path/."). */
++        if (endswith(path, "/..") || endswith(path, "/../"))
++                return -EINVAL;
++
+         if ((flags & (REMOVE_SUBVOLUME|REMOVE_ROOT|REMOVE_PHYSICAL)) == 
(REMOVE_SUBVOLUME|REMOVE_ROOT|REMOVE_PHYSICAL)) {
+                 /* Try to remove as subvolume first */
+                 r = btrfs_subvol_remove(path, 
BTRFS_REMOVE_RECURSIVE|BTRFS_REMOVE_QUOTA);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to