summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakash hadke <akash.hadke@kpit.com>2020-11-10 12:13:55 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-20 10:44:34 +0000
commit81c52d0fabdd4404b2bb1c11ae341bb8b14a50c9 (patch)
treea2a0142e53521e0a6379b3d4c38e9d1102cf70a7
parent7dbe91c58eceef1ae66208ffe33a6dc44f54d379 (diff)
downloadpoky-81c52d0fabdd4404b2bb1c11ae341bb8b14a50c9.tar.gz
systemd: udev SECLABEL{selinux} crash fix
Adding SECLABEL{selinux}="some value" causes systemd-udev to crash. So applied below available patch to fix the issue. systemd-udev-seclabel-options-crash-fix.patch Link: https://github.com/systemd/systemd/commit/0335d110afc08baf47d76b7011ce02510dfdd524.patch (From OE-Core rev: fde72d75175d2a258e5095addd73d3da0998fc3f) Signed-off-by: akash hadke <akash.hadke@kpit.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/systemd/systemd/systemd-udev-seclabel-options-crash-fix.patch30
-rw-r--r--meta/recipes-core/systemd/systemd_244.3.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/systemd-udev-seclabel-options-crash-fix.patch b/meta/recipes-core/systemd/systemd/systemd-udev-seclabel-options-crash-fix.patch
new file mode 100644
index 0000000000..27b2b60fad
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/systemd-udev-seclabel-options-crash-fix.patch
@@ -0,0 +1,30 @@
1From 0335d110afc08baf47d76b7011ce02510dfdd524 Mon Sep 17 00:00:00 2001
2From: Valery0xff <valery.chernous@gmail.com>
3Date: Wed, 11 Mar 2020 02:20:36 +0200
4Subject: [PATCH] udev: fix SECLABEL{selinux} issue (#15064)
5
6Add SECLABEL{selinux}="some value" cause udevadm crash
7systemd-udevd[x]: Worker [x] terminated by signal 11 (SEGV)
8
9It happens since 25de7aa7b90 (Yu Watanabe 2019-04-25 01:21:11 +0200)
10when udev rules processing changed to token model. Yu forgot store
11attr to SECLABEL token so fix it.
12---
13 src/udev/udev-rules.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16Upstream-Status: Backport [https://github.com/systemd/systemd/commit/0335d110afc08baf47d76b7011ce02510dfdd524.patch]
17---
18diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
19index b9b350d1ef..b990f68e93 100644
20--- a/src/udev/udev-rules.c
21+++ b/src/udev/udev-rules.c
22@@ -921,7 +921,7 @@ static int parse_token(UdevRules *rules, const char *key, char *attr, UdevRuleOp
23 op = OP_ASSIGN;
24 }
25
26- r = rule_line_add_token(rule_line, TK_A_SECLABEL, op, value, NULL);
27+ r = rule_line_add_token(rule_line, TK_A_SECLABEL, op, value, attr);
28 } else if (streq(key, "RUN")) {
29 if (is_match || op == OP_REMOVE)
30 return log_token_invalid_op(rules, key);
diff --git a/meta/recipes-core/systemd/systemd_244.3.bb b/meta/recipes-core/systemd/systemd_244.3.bb
index 850d64e8b0..64e3b18333 100644
--- a/meta/recipes-core/systemd/systemd_244.3.bb
+++ b/meta/recipes-core/systemd/systemd_244.3.bb
@@ -21,6 +21,7 @@ SRC_URI += "file://touchscreen.rules \
21 file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ 21 file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \
22 file://0003-implment-systemd-sysv-install-for-OE.patch \ 22 file://0003-implment-systemd-sysv-install-for-OE.patch \
23 file://CVE-2020-13776.patch \ 23 file://CVE-2020-13776.patch \
24 file://systemd-udev-seclabel-options-crash-fix.patch \
24 " 25 "
25 26
26# patches needed by musl 27# patches needed by musl