Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotate libselinux functions #357

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
restorecond: drop last matchpathcon call
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 May 12, 2023
commit 87daeb4807a9b977514edbf53fd62dd9b4b8dea3
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