From 1896d77fe59de96e3ccc33c35fc93317d907b697 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 28 Sep 2005 16:54:42 +0000 Subject: r10585: variation of fix in trunk for root-free-pass in registry access checks (This used to be commit b41f997a2a67f7dc60b300866b38f72846c600fb) --- source3/rpc_server/srv_reg_nt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c index 9ffc77fce8..a405948864 100644 --- a/source3/rpc_server/srv_reg_nt.c +++ b/source3/rpc_server/srv_reg_nt.c @@ -44,14 +44,13 @@ NTSTATUS registry_access_check( SEC_DESC *sec_desc, NT_USER_TOKEN *token, { NTSTATUS result; - se_map_generic( &access_desired, ®_generic_map ); - if ( geteuid() == sec_initial_uid() ) { DEBUG(5,("registry_access_check: access check bypassed for 'root'\n")); - *access_granted = access_desired; + *access_granted = REG_KEY_ALL; return NT_STATUS_OK; } + se_map_generic( &access_desired, ®_generic_map ); se_access_check( sec_desc, token, access_desired, access_granted, &result ); return result; -- cgit