diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-21 14:20:41 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-21 14:30:45 +0100 |
commit | 811c601ae081485bff778a99a6b510029da0a88f (patch) | |
tree | 22b7a8669e8d959082d352306e62b7363419a525 /source4 | |
parent | cc4e5c8beb95e67d91add0334807ada6eea8f9b7 (diff) | |
download | samba-811c601ae081485bff778a99a6b510029da0a88f.tar.gz samba-811c601ae081485bff778a99a6b510029da0a88f.tar.bz2 samba-811c601ae081485bff778a99a6b510029da0a88f.zip |
s4:WINREG RPC - we support only non-volatile keys
Diffstat (limited to 'source4')
-rw-r--r-- | source4/rpc_server/winreg/rpc_winreg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c index 5491bb602f..5bfc655277 100644 --- a/source4/rpc_server/winreg/rpc_winreg.c +++ b/source4/rpc_server/winreg/rpc_winreg.c @@ -126,6 +126,11 @@ static WERROR dcesrv_winreg_CreateKey(struct dcesrv_call_state *dce_call, { case SECURITY_SYSTEM: case SECURITY_ADMINISTRATOR: + /* we support only non volatile keys */ + if (r->in.options != REG_KEYTYPE_NON_VOLATILE) { + return WERR_NOT_SUPPORTED; + } + /* the security descriptor is optional */ if (r->in.secdesc != NULL) { DATA_BLOB sdblob; |