diff options
author | Jeremy Allison <jra@samba.org> | 2000-08-03 22:38:43 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-08-03 22:38:43 +0000 |
commit | e28d01b744b3dbd33e0e54af4e7f426fa8c082b8 (patch) | |
tree | 72e2d0c8dd338681082c520ec6cdcf84d83190f8 /source/smbd/conn.c | |
parent | d6db29be98f717a9038b5ac1ff492c70ce2e92a7 (diff) | |
download | samba-e28d01b744b3dbd33e0e54af4e7f426fa8c082b8.tar.gz samba-e28d01b744b3dbd33e0e54af4e7f426fa8c082b8.tar.xz samba-e28d01b744b3dbd33e0e54af4e7f426fa8c082b8.zip |
Added an NT_USER_TOKEN structure that is copied/passed around associated
with the current user. This will allow se_access_check() to quickly do
a SD check without having to translate uid/gid's to SIDs.
Still needs work on pipe calls.
Jeremy.
Diffstat (limited to 'source/smbd/conn.c')
-rw-r--r-- | source/smbd/conn.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/smbd/conn.c b/source/smbd/conn.c index 0e74b62ee07..c1f42be0989 100644 --- a/source/smbd/conn.c +++ b/source/smbd/conn.c @@ -162,8 +162,9 @@ BOOL conn_idle_all(time_t t, int deadtime) } /**************************************************************************** -free a conn structure + Free a conn structure. ****************************************************************************/ + void conn_free(connection_struct *conn) { /* Free vfs_connection_struct */ @@ -179,6 +180,7 @@ void conn_free(connection_struct *conn) if (conn->vfs_conn->groups != NULL) { free(conn->vfs_conn->groups); } + delete_nt_token(&conn->vfs_conn->nt_user_token); free(conn->vfs_conn); } @@ -190,6 +192,7 @@ void conn_free(connection_struct *conn) conn->ngroups = 0; } + delete_nt_token(&conn->nt_user_token); free_namearray(conn->veto_list); free_namearray(conn->hide_list); free_namearray(conn->veto_oplock_list); |