This was needed before we had pathref fsps, with pathref fsps we can do
operation requiring WRITE_OWNER_ACCESS, WRITE_DAC_ACCESS and READ_CONTROL_ACCESS
on the pathref fsp.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14700
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
e71e373a07e467ff2d2328f39bd2bc285e2ba840)
FILE_WRITE_DATA |
FILE_APPEND_DATA |
FILE_EXECUTE |
- WRITE_DAC_ACCESS |
- WRITE_OWNER_ACCESS |
- SEC_FLAG_SYSTEM_SECURITY |
- READ_CONTROL_ACCESS;
+ SEC_FLAG_SYSTEM_SECURITY;
bool creating = !file_existed && (flags & O_CREAT);
bool truncating = (flags & O_TRUNC);
bool open_fd = false;