diff --git a/src/providers/ipa/selinux_child.c b/src/providers/ipa/selinux_child.c index 8a968a2757..a3374d4d68 100644 --- a/src/providers/ipa/selinux_child.c +++ b/src/providers/ipa/selinux_child.c @@ -301,6 +301,7 @@ int main(int argc, const char *argv[]) /* libsemanage calls access(2) which works with real IDs, not effective. * We need to switch also the real ID to 0. */ +/* if (getuid() != 0) { ret = setuid(0); if (ret == -1) { @@ -318,6 +319,7 @@ int main(int argc, const char *argv[]) "setgid failed: %d, selinux_child might not work!\n", ret); } } +*/ DEBUG(SSSDBG_TRACE_INTERNAL, "Running with real IDs [%"SPRIuid"][%"SPRIgid"].\n",