udevd: add missing attr in SECLABEL rules parsing
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 19 Mar 2020 06:57:09 +0000 (07:57 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 12 Feb 2024 15:37:48 +0000 (16:37 +0100)
commitd04658f3a22b6e3683a8067aef59ab3dd57d48cc
tree7c27ded8134f9e94191ef3b0fe9e7ce224ddbbbe
parentb6f0338db1340dadb021d0405e2d544f18aff774
udevd: add missing attr in SECLABEL rules parsing

This caused failure of udevd workers, when they tried to execute
rules. When parsing, 'attr' was always passed as NULL, despite being
checked for non-emptiness. When executing, NULL was passed
unconditionally to strdup, and it caused segmentation fault.
src/udev/udev-rules.c