diff mbox series

[RFC,9/9] restorecond: drop last matchpathcon call

Message ID 20230512102322.72235-9-cgzones@googlemail.com (mailing list archive)
State New, archived
Delegated to: Petr Lautrbach
Headers show
Series [RFC,1/9] libselinux: annotate interfaces with compiler attributes | expand

Commit Message

Christian Göttsche May 12, 2023, 10:23 a.m. UTC
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 <cgzones@googlemail.com>
---
 restorecond/user.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/restorecond/user.c b/restorecond/user.c
index 3ae3ebbb..defba9b4 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,