It will basically label them with same context as
/etc/{passwd+,shadow+,group+,gshadow+}
+2012-05-18 Peter Vrabec <pvrabec@redhat.com>
+
+ * lib/commonio.c: Fix labeling of /etc/{passwd,shadow,group,gshadow}.
+ It will basically label them with same context as
+ /etc/{passwd+,shadow+,group+,gshadow+}
+
2012-05-18 Nicolas François <nicolas.francois@centraliens.net>
* src/pwunconv.c: Do not check spw_close() return value (file is
snprintf (buf, sizeof buf, "%s+", db->filename);
+#ifdef WITH_SELINUX
+ if (set_selinux_file_context (buf) != 0) {
+ errors++;
+ }
+#endif
+
db->fp = fopen_set_perms (buf, "w", &sb);
if (NULL == db->fp) {
goto fail;
goto fail;
}
+#ifdef WITH_SELINUX
+ if (reset_selinux_file_context () != 0) {
+ goto fail;
+ }
+#endif
+
nscd_need_reload = true;
goto success;
fail: