From e9cfd262be11f9976f04d7f9efaf493547d077e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 16 Jun 2022 16:22:05 +0200 Subject: [PATCH] restorecond: drop last matchpathcon call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As restorecond does not use the matchpathcon family but the selabel one, via selinux_restorecon(3), drop the last unneeded call. Signed-off-by: Christian Göttsche --- restorecond/user.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/restorecond/user.c b/restorecond/user.c index 3ae3ebbb72..defba9b4d7 100644 --- a/restorecond/user.c +++ b/restorecond/user.c @@ -279,8 +279,6 @@ int server(int master_fd, const char *watch_file) { if (watch_list_isempty()) goto end; - set_matchpathcon_flags(MATCHPATHCON_NOTRANS); - GIOChannel *c = g_io_channel_unix_new(master_fd); g_io_add_watch_full(c,