Skip to content

Commit

Permalink
restorecond: drop last matchpathcon call
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
cgzones committed Jun 16, 2022
1 parent 1cb04f3 commit 3b0c614
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions restorecond/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3b0c614

Please sign in to comment.