From 0aaf5a368c1b654a7560b19095481199a426530e Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Fri, 12 Mar 1999 05:46:10 +0000 Subject: check for exactly _one_ key: for USRMGR.EXE. (This used to be commit 478d9ddfcf59e3d847d83947c8d4f0bf84f26833) --- source3/rpc_server/srv_reg.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') diff --git a/source3/rpc_server/srv_reg.c b/source3/rpc_server/srv_reg.c index 47ead00227..d9aedc86bd 100644 --- a/source3/rpc_server/srv_reg.c +++ b/source3/rpc_server/srv_reg.c @@ -142,6 +142,10 @@ static void reg_reply_open_entry(REG_Q_OPEN_ENTRY *q_u, { DEBUG(5,("reg_open_entry: %s\n", name)); /* lkcl XXXX do a check on the name, here */ + if (!strequal(name, "SYSTEM\\CurrentControlSet\\Control\\ProductOptions")) + { + status = 0xC000000 | NT_STATUS_ACCESS_DENIED; + } } if (status == 0x0 && !set_lsa_policy_reg_name(&pol, name)) -- cgit