mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r23640: When we support the SeSecurity privilage, this is where
we'll check it. Jeremy.
This commit is contained in:
parent
d4accdbb52
commit
1b73bf79f4
@ -702,6 +702,17 @@ int reply_ntcreate_and_X(connection_struct *conn,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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);
|
||||||
|
END_PROFILE(SMBntcreateX);
|
||||||
|
return ERROR_NT(NT_STATUS_PRIVILEGE_NOT_HELD);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If it's a request for a directory open, deal with it separately.
|
* If it's a request for a directory open, deal with it separately.
|
||||||
*/
|
*/
|
||||||
@ -1378,6 +1389,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) {
|
if (ea_len) {
|
||||||
pdata = data + sd_len;
|
pdata = data + sd_len;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user