diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-07-07 08:46:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:50 -0500 |
commit | 0e43c1e80d463e144fe6f08384b208003cd4f424 (patch) | |
tree | 20a1506dd869919f5c82d9f4d57c89d5b4d1d0a3 /source3/smbd | |
parent | d3965a2689123cd4618c224a3999fdd7e76f36e0 (diff) | |
download | samba-0e43c1e80d463e144fe6f08384b208003cd4f424.tar.gz samba-0e43c1e80d463e144fe6f08384b208003cd4f424.tar.bz2 samba-0e43c1e80d463e144fe6f08384b208003cd4f424.zip |
r23738: Re-add commented out code snipped that got lost by accident
(This used to be commit c38c31afb770350e47713bf1025c23fd774607ab)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/nttrans.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 8865afad0d..5760cb75a4 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1413,6 +1413,16 @@ static int call_nt_transact_create(connection_struct *conn, char *inbuf, char *o } } +#if 0 + /* We need to support SeSecurityPrivilege for this. */ + if ((access_mask & SEC_RIGHT_SYSTEM_SECURITY)) && + !user_has_privileges(current_user.nt_user_token, + &se_security)) { + restore_case_semantics(conn, file_attributes); + return ERROR_NT(NT_STATUS_PRIVILEGE_NOT_HELD); + } +#endif + if (ea_len) { pdata = data + sd_len; |