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; }
int spw_open(int mode) { return commonio_open(&shadow_db, mode); }
int gr_open (int mode) { return commonio_open (&group_db, mode); }
int sub_gid_open (int mode) { return commonio_open (&subordinate_gid_db, mode); }
int pw_open (int mode) { return commonio_open (&passwd_db, mode); }
int sgr_open (int mode) { return commonio_open (&gshadow_db, mode); }