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/include/smb.h | |
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/include/smb.h')
-rw-r--r-- | source/include/smb.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/include/smb.h b/source/include/smb.h index aaebe56f33d..03d4b4c9b3b 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -383,8 +383,11 @@ struct use_info char *domain; }; +#ifndef MAXSUBAUTHS #define MAXSUBAUTHS 15 /* max sub authorities in a SID */ +#endif +#ifndef _DOM_SID /* DOM_SID - security id */ typedef struct sid_info { @@ -398,16 +401,21 @@ typedef struct sid_info uint32 sub_auths[MAXSUBAUTHS]; /* pointer to sub-authorities. */ } DOM_SID; +#define _DOM_SID +#endif /* * The complete list of SIDS belonging to this user. * Created when a vuid is registered. */ +#ifndef _NT_USER_TOKEN typedef struct _nt_user_token { size_t num_sids; DOM_SID *user_sids; } NT_USER_TOKEN; +#define _NT_USER_TOKEN +#endif /*** query a local group, get a list of these: shows who is in that group ***/ @@ -580,6 +588,7 @@ typedef struct connection_struct /* This groups info is valid for the user that *opened* the connection */ int ngroups; gid_t *groups; + NT_USER_TOKEN *nt_user_token; time_t lastused; BOOL used; @@ -598,6 +607,7 @@ struct current_user gid_t gid; int ngroups; gid_t *groups; + NT_USER_TOKEN *nt_user_token; }; /* @@ -1672,7 +1682,7 @@ typedef struct int n_groups; gid_t *groups; - NT_USER_TOKEN nt_user_token; + NT_USER_TOKEN *nt_user_token; /* per-user authentication information on NT RPCs */ /* lkclXXXX - THIS SHOULD NOT BE HERE! */ |