* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()

if Zflg is set.
This commit is contained in:
nekral-guest 2009-04-11 16:47:32 +00:00
parent 192fa18195
commit 3fdefd3e40
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
* src/useradd.c, src/usermod.c: Only call selinux_update_mapping()
if Zflg is set.
2009-04-11 Nicolas François <nicolas.francois@centraliens.net> 2009-04-11 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/getgr_nam_gid.c: Added support for NULL argument. * libmisc/getgr_nam_gid.c: Added support for NULL argument.

View File

@ -2003,7 +2003,9 @@ int main (int argc, char **argv)
close_files (); close_files ();
#ifdef WITH_SELINUX #ifdef WITH_SELINUX
if (Zflg) {
selinux_update_mapping (); selinux_update_mapping ();
}
#endif #endif
nscd_flush_cache ("passwd"); nscd_flush_cache ("passwd");

View File

@ -1759,7 +1759,9 @@ int main (int argc, char **argv)
nscd_flush_cache ("group"); nscd_flush_cache ("group");
#ifdef WITH_SELINUX #ifdef WITH_SELINUX
if (Zflg) {
selinux_update_mapping (); selinux_update_mapping ();
}
#endif #endif
if (mflg) { if (mflg) {