summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2023-09-18 03:25:42 +0200
committerKhem Raj <raj.khem@gmail.com>2023-09-18 07:09:47 -0700
commit169de03ab113e7fe253f2f0465990510c7449feb (patch)
treed0f65d6e42a310b8862c4354aa6212dd59b60fed
parentae9a7f7143330a02f233529bc59d73c8c180d82d (diff)
downloadmeta-openembedded-169de03ab113e7fe253f2f0465990510c7449feb.tar.gz
polkit: upgrade 122 -> 123
- Add a patch to disable an offensive hardening option that causes polkit to segfault - better safety with deeper resctiction of the configuration files - better safety with restricting the daemon's owner under systemd - better safety with the systemd unit sandboxing - less thread races during upload of the configuration - glib, gobject, gio >= 2.32 - mozjs-102 OR duktape - gobject-introspection >= 0.6.2 (optional) - pam (optional) - ConsoleKit OR systemd - gettext - meson Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/polkit/polkit/0001-polkit.service.in-disable-MemoryDenyWriteExecute.patch33
-rw-r--r--meta-oe/recipes-extended/polkit/polkit_123.bb (renamed from meta-oe/recipes-extended/polkit/polkit_122.bb)7
2 files changed, 38 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/polkit/polkit/0001-polkit.service.in-disable-MemoryDenyWriteExecute.patch b/meta-oe/recipes-extended/polkit/polkit/0001-polkit.service.in-disable-MemoryDenyWriteExecute.patch
new file mode 100644
index 000000000..9a097274a
--- /dev/null
+++ b/meta-oe/recipes-extended/polkit/polkit/0001-polkit.service.in-disable-MemoryDenyWriteExecute.patch
@@ -0,0 +1,33 @@
1From 046d853818f18bac5df4dfc007151e06fd64a5b3 Mon Sep 17 00:00:00 2001
2From: Markus Volk <f_l_k@t-online.de>
3Date: Sun, 17 Sep 2023 23:26:59 +0200
4Subject: [PATCH] polkit.service.in: disable MemoryDenyWriteExecute
5
6A few momths ago some hardening options have been added to polkit.service.in
7https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/177/diffs?commit_id=afecbd53696e32bbadd60f431fc7d285f3edd265
8
9and polkitd segfaults with MemoryDenyWriteExecute=yes, at least in my environment
10
11Upstream-Status: Inappropriate [needs further investigation]
12
13Signed-off-by: Markus Volk <f_l_k@t-online.de>
14---
15 data/polkit.service.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/data/polkit.service.in b/data/polkit.service.in
19index 2113ff7..42dfd90 100644
20--- a/data/polkit.service.in
21+++ b/data/polkit.service.in
22@@ -14,7 +14,7 @@ Group=@polkitd_user@
23 IPAddressDeny=any
24 LimitMEMLOCK=0
25 LockPersonality=yes
26-MemoryDenyWriteExecute=yes
27+#MemoryDenyWriteExecute=yes
28 NoNewPrivileges=yes
29 PrivateDevices=yes
30 PrivateNetwork=yes
31--
322.41.0
33
diff --git a/meta-oe/recipes-extended/polkit/polkit_122.bb b/meta-oe/recipes-extended/polkit/polkit_123.bb
index 290640626..4fc23559f 100644
--- a/meta-oe/recipes-extended/polkit/polkit_122.bb
+++ b/meta-oe/recipes-extended/polkit/polkit_123.bb
@@ -4,10 +4,13 @@ HOMEPAGE = "http://www.freedesktop.org/wiki/Software/polkit"
4LICENSE = "LGPL-2.0-or-later" 4LICENSE = "LGPL-2.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb" 5LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb"
6 6
7SRC_URI = "git://gitlab.freedesktop.org/polkit/polkit.git;protocol=https;branch=master" 7SRC_URI = " \
8 git://gitlab.freedesktop.org/polkit/polkit.git;protocol=https;branch=master \
9 file://0001-polkit.service.in-disable-MemoryDenyWriteExecute.patch \
10"
8 11
9S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
10SRCREV = "da87c5698019897dd731bb2cbb54ebd9c9481f52" 13SRCREV = "fc8b07e71d99f88a29258cde99b913b44da1846d"
11 14
12DEPENDS = "expat glib-2.0" 15DEPENDS = "expat glib-2.0"
13 16