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 | f87399915b009f88c41cb75a583c2972fe3daf30 (patch) | |
tree | 874d5861eba4e7ba655f2d94d6b7a8c1e37bfdfc /source3/lib | |
parent | 468af1937d327cc579dbbdae6e4a9b030998f049 (diff) | |
download | samba-f87399915b009f88c41cb75a583c2972fe3daf30.tar.gz samba-f87399915b009f88c41cb75a583c2972fe3daf30.tar.bz2 samba-f87399915b009f88c41cb75a583c2972fe3daf30.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.
(This used to be commit e28d01b744b3dbd33e0e54af4e7f426fa8c082b8)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/util_sid.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 3572f2c775..52e9f63039 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -33,13 +33,14 @@ extern fstring global_myworkgroup; * Some useful sids */ -DOM_SID global_sid_S_1_5_0x20; /* local well-known domain */ +DOM_SID global_sid_Builtin; /* local well-known domain */ DOM_SID global_sid_World_Domain; /* everyone */ DOM_SID global_sid_World; /* everyone */ DOM_SID global_sid_Creator_Owner_Domain; /* Creator Owner */ DOM_SID global_sid_Creator_Owner; /* Creator Owner */ DOM_SID global_sid_NT_Authority; /* NT Authority */ DOM_SID global_sid_NULL; /* NULL sid */ +DOM_SID global_sid_Builtin_Guests; const DOM_SID *global_sid_everyone = &global_sid_World; @@ -75,7 +76,7 @@ sid_name_map[] = { { &global_sam_sid, global_myname, NULL}, { &global_sam_sid, global_myworkgroup, NULL}, - { &global_sid_S_1_5_0x20, "BUILTIN", NULL}, + { &global_sid_Builtin, "BUILTIN", NULL}, { &global_sid_World_Domain, "", &everyone_users[0] }, { &global_sid_Creator_Owner_Domain, "", &creator_owner_users[0] }, { &global_sid_NT_Authority, "NT Authority", &nt_authority_users[0] }, @@ -88,7 +89,8 @@ sid_name_map[] = void generate_wellknown_sids(void) { - string_to_sid(&global_sid_S_1_5_0x20, "S-1-5-32"); + string_to_sid(&global_sid_Builtin, "S-1-5-32"); + string_to_sid(&global_sid_Builtin_Guests, "S-1-5-32-546"); string_to_sid(&global_sid_World_Domain, "S-1-1"); string_to_sid(&global_sid_World, "S-1-1-0"); string_to_sid(&global_sid_Creator_Owner_Domain, "S-1-3"); |