diff options
author | Valery0xff <valery.chernous@gmail.com> | 2020-03-11 02:20:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 09:20:36 +0900 |
commit | 0335d110afc08baf47d76b7011ce02510dfdd524 (patch) | |
tree | 5dc7f15176fb67148e6614eadd80e29c63966fe2 | |
parent | 42a739a0b5a659dd8545a07a8e99545141df2c65 (diff) | |
download | systemd-0335d110afc08baf47d76b7011ce02510dfdd524.tar.gz |
udev: fix SECLABEL{selinux} issue (#15064)
Add SECLABEL{selinux}="some value" cause udevadm crash
systemd-udevd[x]: Worker [x] terminated by signal 11 (SEGV)
It happens since 25de7aa7b90 (Yu Watanabe 2019-04-25 01:21:11 +0200)
when udev rules processing changed to token model. Yu forgot store
attr to SECLABEL token so fix it.
-rw-r--r-- | src/udev/udev-rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index b9b350d1ef..b990f68e93 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -921,7 +921,7 @@ static int parse_token(UdevRules *rules, const char *key, char *attr, UdevRuleOp op = OP_ASSIGN; } - r = rule_line_add_token(rule_line, TK_A_SECLABEL, op, value, NULL); + r = rule_line_add_token(rule_line, TK_A_SECLABEL, op, value, attr); } else if (streq(key, "RUN")) { if (is_match || op == OP_REMOVE) return log_token_invalid_op(rules, key); |