mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
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.
This commit is contained in:
parent
42a739a0b5
commit
0335d110af
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user