[PATCH] Change system handling in smbd

Andreas Schneider asn at samba.org
Mon Jun 11 04:13:08 MDT 2012


On Monday 11 June 2012 19:53:18 Andrew Bartlett wrote:
> Andreas,

Andrew,

> I can't find a record of asking you about this patch, but before the
> beta, I was working on this tree:
> 
> https://git.samba.org/?p=abartlet/samba.git/.git;a=shortlog;h=refs/heads/fix
> -system
> 
> In short, it make the system token just that, SID_NT_SYSTEM.  The unix
> portion remains as is, the sec_initial_uid() and it's primary group.
> 
> I wondered if you could confirm that this doesn't break the special case
> that started you on modifying this area?

the plan was to completely fake this structure. So don't call and getpw* 
functions. Only use sec_initial_uid() and sec_initial_gid().

utok and security_token should be enough.

Thanks,


	-- andreas

-- 
Andreas Schneider                   GPG-ID: F33E3FC6
Samba Team                             asn at samba.org
www.samba.org



More information about the samba-technical mailing list