/*
* It's actually OK to call check_user_ok() with
- * vuid == UID_FIELD_INVALID as called from change_to_user_by_session().
+ * vuid == UID_FIELD_INVALID as called from become_user_by_session().
* All this will do is throw away one entry in the cache.
*/
return change_to_user_and_service(fsp->conn, fsp->vuid);
}
-static bool change_to_user_by_session(connection_struct *conn,
- const struct auth_session_info *session_info)
-{
- SMB_ASSERT(conn != NULL);
- SMB_ASSERT(session_info != NULL);
-
- return change_to_user_internal(conn, session_info, UID_FIELD_INVALID);
-}
-
/****************************************************************************
Go back to being root without changing the security context stack,
but modify the current_user entries.
{
bool ok;
+ SMB_ASSERT(conn != NULL);
+ SMB_ASSERT(session_info != NULL);
+
ok = push_sec_ctx();
if (!ok) {
return false;
push_conn_ctx();
- ok = change_to_user_by_session(conn, session_info);
+ ok = change_to_user_internal(conn, session_info, UID_FIELD_INVALID);
if (!ok) {
pop_sec_ctx();
pop_conn_ctx();