Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 406819 | Differences between
and this patch

Collapse All | Expand All

(-)shadow-4.1.5/lib/commonio.c.selinux (+12 lines)
Lines 977-982 int commonio_close (struct commonio_db * Link Here
977
977
978
	snprintf (buf, sizeof buf, "%s+", db->filename);
978
	snprintf (buf, sizeof buf, "%s+", db->filename);
979
979
980
#ifdef WITH_SELINUX
981
	if (set_selinux_file_context (buf) != 0) {
982
		errors++;
983
	}
984
#endif
985
980
	db->fp = fopen_set_perms (buf, "w", &sb);
986
	db->fp = fopen_set_perms (buf, "w", &sb);
981
	if (NULL == db->fp) {
987
	if (NULL == db->fp) {
982
		goto fail;
988
		goto fail;
Lines 1011-1016 int commonio_close (struct commonio_db * Link Here
1011
		goto fail;
1017
		goto fail;
1012
	}
1018
	}
1013
1019
1020
#ifdef WITH_SELINUX
1021
	if (reset_selinux_file_context () != 0) {
1022
		goto fail;
1023
	}
1024
#endif
1025
1014
	nscd_need_reload = true;
1026
	nscd_need_reload = true;
1015
	goto success;
1027
	goto success;
1016
      fail:
1028
      fail:

Return to bug 406819