]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/selinux-access: use _cleanup_ and improve logging 14813/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Feb 2020 20:39:40 +0000 (21:39 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Feb 2020 22:06:55 +0000 (23:06 +0100)
commitcff789b746c68290ddc72705b8eedc0d32d75ef5
treec4da17694da689b0226aa3379208c2c80d7e781f
parentd7887449e7c972770b6dd896f7d8c09f0d26c88f
core/selinux-access: use _cleanup_ and improve logging

Instead of setting the bus error structure and then freeing it, let's only set
it if used. If we will ignore the selinux denial, say ", ignore" to make this
clear. Also, use _cleanup_ to avoid gotos.
src/core/selinux-access.c