1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-24 02:04:21 +03:00

s3: Add DAC_OVERRIDE capability support

Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
This commit is contained in:
Abhidnya Joshi 2013-12-10 09:10:21 +01:00 committed by Christof Schmitt
parent 04297e8914
commit 47175f5760
2 changed files with 6 additions and 1 deletions

View File

@ -743,7 +743,8 @@ minimum length == 24.
enum smbd_capability {
KERNEL_OPLOCK_CAPABILITY,
DMAPI_ACCESS_CAPABILITY,
LEASE_CAPABILITY
LEASE_CAPABILITY,
DAC_OVERRIDE_CAPABILITY
};
/*

View File

@ -785,6 +785,10 @@ static bool set_process_capability(enum smbd_capability capability,
cap_vals[num_cap_vals++] = CAP_LEASE;
#endif
break;
case DAC_OVERRIDE_CAPABILITY:
#ifdef CAP_DAC_OVERRIDE
cap_vals[num_cap_vals++] = CAP_DAC_OVERRIDE;
#endif
}
SMB_ASSERT(num_cap_vals <= ARRAY_SIZE(cap_vals));