Example #1
0
int spw_open (int mode)
{
	int retval = 0;
#ifdef WITH_TCB
	bool use_tcb = getdef_bool ("USE_TCB");

	if (use_tcb && (shadowtcb_drop_priv () == SHADOWTCB_FAILURE)) {
		return 0;
	}
#endif				/* WITH_TCB */
	retval = commonio_open (&shadow_db, mode);
#ifdef WITH_TCB
	if (use_tcb && (shadowtcb_gain_priv () == SHADOWTCB_FAILURE)) {
		return 0;
	}
#endif				/* WITH_TCB */
	return retval;
}
Example #2
0
int
spw_open(int mode)
{
	return commonio_open(&shadow_db, mode);
}
Example #3
0
int gr_open (int mode)
{
	return commonio_open (&group_db, mode);
}
Example #4
0
int sub_gid_open (int mode)
{
	return commonio_open (&subordinate_gid_db, mode);
}
Example #5
0
int pw_open (int mode)
{
	return commonio_open (&passwd_db, mode);
}
Example #6
0
int sgr_open (int mode)
{
	return commonio_open (&gshadow_db, mode);
}