mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Eliminate two duplicate SEC_ACE_TYPE constants already provided by
security.idl.
This commit is contained in:
parent
5686a6d91a
commit
e6ec32f3ac
@ -39,9 +39,6 @@
|
||||
#define SEC_RIGHTS_RESET_PASSWD SEC_RIGHTS_EXTENDED
|
||||
#define SEC_RIGHTS_FULL_CTRL 0xf01ff
|
||||
|
||||
#define SEC_ACE_OBJECT_PRESENT 0x00000001 /* thanks for Jim McDonough <jmcd@us.ibm.com> */
|
||||
#define SEC_ACE_OBJECT_INHERITED_PRESENT 0x00000002
|
||||
|
||||
/*
|
||||
* New Windows 2000 bits.
|
||||
*/
|
||||
|
@ -155,13 +155,13 @@ void display_sec_ace_flags(uint8_t flags)
|
||||
****************************************************************************/
|
||||
static void disp_sec_ace_object(struct security_ace_object *object)
|
||||
{
|
||||
if (object->flags & SEC_ACE_OBJECT_PRESENT) {
|
||||
printf("Object type: SEC_ACE_OBJECT_PRESENT\n");
|
||||
if (object->flags & SEC_ACE_OBJECT_TYPE_PRESENT) {
|
||||
printf("Object type: SEC_ACE_OBJECT_TYPE_PRESENT\n");
|
||||
printf("Object GUID: %s\n", GUID_string(talloc_tos(),
|
||||
&object->type.type));
|
||||
}
|
||||
if (object->flags & SEC_ACE_OBJECT_INHERITED_PRESENT) {
|
||||
printf("Object type: SEC_ACE_OBJECT_INHERITED_PRESENT\n");
|
||||
if (object->flags & SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT) {
|
||||
printf("Object type: SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT\n");
|
||||
printf("Object GUID: %s\n", GUID_string(talloc_tos(),
|
||||
&object->inherited_type.inherited_type));
|
||||
}
|
||||
|
@ -112,15 +112,15 @@ static void ads_disp_sec_ace_object(ADS_STRUCT *ads,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
struct security_ace_object *object)
|
||||
{
|
||||
if (object->flags & SEC_ACE_OBJECT_PRESENT) {
|
||||
printf("Object type: SEC_ACE_OBJECT_PRESENT\n");
|
||||
if (object->flags & SEC_ACE_OBJECT_TYPE_PRESENT) {
|
||||
printf("Object type: SEC_ACE_OBJECT_TYPE_PRESENT\n");
|
||||
printf("Object GUID: %s (%s)\n", GUID_string(mem_ctx,
|
||||
&object->type.type),
|
||||
ads_interprete_guid_from_object(ads, mem_ctx,
|
||||
&object->type.type));
|
||||
}
|
||||
if (object->flags & SEC_ACE_OBJECT_INHERITED_PRESENT) {
|
||||
printf("Object type: SEC_ACE_OBJECT_INHERITED_PRESENT\n");
|
||||
if (object->flags & SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT) {
|
||||
printf("Object type: SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT\n");
|
||||
printf("Object GUID: %s (%s)\n", GUID_string(mem_ctx,
|
||||
&object->inherited_type.inherited_type),
|
||||
ads_interprete_guid_from_object(ads, mem_ctx,
|
||||
|
@ -38,12 +38,12 @@ static bool gpo_sd_check_agp_object_guid(const struct security_ace_object *objec
|
||||
}
|
||||
|
||||
switch (object->flags) {
|
||||
case SEC_ACE_OBJECT_PRESENT:
|
||||
case SEC_ACE_OBJECT_TYPE_PRESENT:
|
||||
if (GUID_equal(&object->type.type,
|
||||
&ext_right_apg_guid)) {
|
||||
return True;
|
||||
}
|
||||
case SEC_ACE_OBJECT_INHERITED_PRESENT:
|
||||
case SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT:
|
||||
if (GUID_equal(&object->inherited_type.inherited_type,
|
||||
&ext_right_apg_guid)) {
|
||||
return True;
|
||||
|
@ -73,11 +73,11 @@ static bool sec_io_ace(const char *desc, SEC_ACE *psa, prs_struct *ps,
|
||||
if (!prs_uint32("obj_flags", ps, depth, &psa->object.object.flags))
|
||||
return False;
|
||||
|
||||
if (psa->object.object.flags & SEC_ACE_OBJECT_PRESENT)
|
||||
if (psa->object.object.flags & SEC_ACE_OBJECT_TYPE_PRESENT)
|
||||
if (!smb_io_uuid("obj_guid", &psa->object.object.type.type, ps,depth))
|
||||
return False;
|
||||
|
||||
if (psa->object.object.flags & SEC_ACE_OBJECT_INHERITED_PRESENT)
|
||||
if (psa->object.object.flags & SEC_ACE_INHERITED_OBJECT_TYPE_PRESENT)
|
||||
if (!smb_io_uuid("inh_guid", &psa->object.object.inherited_type.inherited_type, ps,depth))
|
||||
return False;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user