diff options
| author | Markus Volk <f_l_k@t-online.de> | 2023-09-18 03:25:42 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-09-18 07:09:47 -0700 |
| commit | 169de03ab113e7fe253f2f0465990510c7449feb (patch) | |
| tree | d0f65d6e42a310b8862c4354aa6212dd59b60fed | |
| parent | ae9a7f7143330a02f233529bc59d73c8c180d82d (diff) | |
| download | meta-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.patch | 33 | ||||
| -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 0000000000..9a097274a4 --- /dev/null +++ b/meta-oe/recipes-extended/polkit/polkit/0001-polkit.service.in-disable-MemoryDenyWriteExecute.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 046d853818f18bac5df4dfc007151e06fd64a5b3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Markus Volk <f_l_k@t-online.de> | ||
| 3 | Date: Sun, 17 Sep 2023 23:26:59 +0200 | ||
| 4 | Subject: [PATCH] polkit.service.in: disable MemoryDenyWriteExecute | ||
| 5 | |||
| 6 | A few momths ago some hardening options have been added to polkit.service.in | ||
| 7 | https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/177/diffs?commit_id=afecbd53696e32bbadd60f431fc7d285f3edd265 | ||
| 8 | |||
| 9 | and polkitd segfaults with MemoryDenyWriteExecute=yes, at least in my environment | ||
| 10 | |||
| 11 | Upstream-Status: Inappropriate [needs further investigation] | ||
| 12 | |||
| 13 | Signed-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 | |||
| 18 | diff --git a/data/polkit.service.in b/data/polkit.service.in | ||
| 19 | index 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 | -- | ||
| 32 | 2.41.0 | ||
| 33 | |||
diff --git a/meta-oe/recipes-extended/polkit/polkit_122.bb b/meta-oe/recipes-extended/polkit/polkit_123.bb index 2906406261..4fc23559f9 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" | |||
| 4 | LICENSE = "LGPL-2.0-or-later" | 4 | LICENSE = "LGPL-2.0-or-later" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb" |
| 6 | 6 | ||
| 7 | SRC_URI = "git://gitlab.freedesktop.org/polkit/polkit.git;protocol=https;branch=master" | 7 | SRC_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 | ||
| 9 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
| 10 | SRCREV = "da87c5698019897dd731bb2cbb54ebd9c9481f52" | 13 | SRCREV = "fc8b07e71d99f88a29258cde99b913b44da1846d" |
| 11 | 14 | ||
| 12 | DEPENDS = "expat glib-2.0" | 15 | DEPENDS = "expat glib-2.0" |
| 13 | 16 | ||
