svn commit: samba r17194 - in branches/SAMBA_3_0/source/rpc_server:
.
vlendec at samba.org
vlendec at samba.org
Sat Jul 22 20:46:03 GMT 2006
Author: vlendec
Date: 2006-07-22 20:46:02 +0000 (Sat, 22 Jul 2006)
New Revision: 17194
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17194
Log:
To run rpc-samba3-lsa in the build farm, we can't rely on geteuid()==0. Adapt
it to other "Am I root?" checks.
Jerry, Jeremy, please check this!
Thanks,
Volker
Modified:
branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2006-07-22 20:01:45 UTC (rev 17193)
+++ branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2006-07-22 20:46:02 UTC (rev 17194)
@@ -544,7 +544,7 @@
lsa_get_generic_sd(p->mem_ctx, &psd, &sd_size);
if(!se_access_check(psd, p->pipe_user.nt_user_token, des_access, &acc_granted, &status)) {
- if (geteuid() != 0) {
+ if (p->pipe_user.ut.uid != sec_initial_uid()) {
return status;
}
DEBUG(4,("ACCESS should be DENIED (granted: %#010x; required: %#010x)\n",
@@ -554,7 +554,7 @@
/* This is needed for lsa_open_account and rpcclient .... :-) */
- if (geteuid() == 0)
+ if (p->pipe_user.ut.uid == sec_initial_uid())
acc_granted = POLICY_ALL_ACCESS;
/* associate the domain SID with the (unique) handle. */
More information about the samba-cvs
mailing list