diff options
author | Luke Leighton <lkcl@samba.org> | 1999-03-12 05:46:10 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-03-12 05:46:10 +0000 |
commit | 0aaf5a368c1b654a7560b19095481199a426530e (patch) | |
tree | 4a1368144db5b43da52e73e8b754aa764ac29d31 | |
parent | 6a4239c8b06e4ed9e6ff4863d1dc16cfc0dc4c9b (diff) | |
download | samba-0aaf5a368c1b654a7560b19095481199a426530e.tar.gz samba-0aaf5a368c1b654a7560b19095481199a426530e.tar.bz2 samba-0aaf5a368c1b654a7560b19095481199a426530e.zip |
check for exactly _one_ key: for USRMGR.EXE.
(This used to be commit 478d9ddfcf59e3d847d83947c8d4f0bf84f26833)
-rw-r--r-- | source3/rpc_server/srv_reg.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |