From: Volker Lendecke Date: Sat, 7 Jul 2007 08:46:26 +0000 (+0000) Subject: r23738: Re-add commented out code snipped that got lost by accident X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c38c31afb770350e47713bf1025c23fd774607ab;p=thirdparty%2Fsamba.git r23738: Re-add commented out code snipped that got lost by accident --- diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index 8865afad0d5..5760cb75a43 100644 --- a/source/smbd/nttrans.c +++ b/source/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;