From 823e917f13ea813635b0f9f14e2cc8aabc6d6a75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 25 Jun 2020 14:36:49 +0200 Subject: [PATCH] selinux: check mac_selinux_init() in tests Since bc8d57f2903d mac_selinux_init() is checked and considered fatal tree-wide. Coverity complains about it not being checked in the test code. Follow-up of: #16223 Fixes: CID 1429975 --- src/test/test-udev.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/test-udev.c b/src/test/test-udev.c index 493d6df2a83..208e7a0e96a 100644 --- a/src/test/test-udev.c +++ b/src/test/test-udev.c @@ -82,7 +82,10 @@ static int run(int argc, char *argv[]) { } log_debug("version %s", GIT_VERSION); - mac_selinux_init(); + + r = mac_selinux_init(); + if (r < 0) + return r; action = argv[1]; devpath = argv[2]; -- 2.47.3