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:
parent
04297e8914
commit
47175f5760
@ -743,7 +743,8 @@ minimum length == 24.
|
||||
enum smbd_capability {
|
||||
KERNEL_OPLOCK_CAPABILITY,
|
||||
DMAPI_ACCESS_CAPABILITY,
|
||||
LEASE_CAPABILITY
|
||||
LEASE_CAPABILITY,
|
||||
DAC_OVERRIDE_CAPABILITY
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user