diff --git a/libcli/security/secace.c b/libcli/security/secace.c index b7c9fc54d1e..26c366ac39c 100644 --- a/libcli/security/secace.c +++ b/libcli/security/secace.c @@ -69,25 +69,6 @@ void init_sec_ace(struct security_ace *t, const struct dom_sid *sid, enum securi t->trustee = *sid; } -/******************************************************************* - modify SID's permissions at ACL -********************************************************************/ - -NTSTATUS sec_ace_mod_sid(struct security_ace *ace, size_t num, const struct dom_sid *sid, uint32_t mask) -{ - unsigned int i = 0; - - if (!ace || !sid) return NT_STATUS_INVALID_PARAMETER; - - for (i = 0; i < num; i ++) { - if (dom_sid_equal(&ace[i].trustee, sid)) { - ace[i].access_mask = mask; - return NT_STATUS_OK; - } - } - return NT_STATUS_NOT_FOUND; -} - int nt_ace_inherit_comp(const struct security_ace *a1, const struct security_ace *a2) { int a1_inh = a1->flags & SEC_ACE_FLAG_INHERITED_ACE; diff --git a/libcli/security/secace.h b/libcli/security/secace.h index 5416134dd64..16c495dd2ae 100644 --- a/libcli/security/secace.h +++ b/libcli/security/secace.h @@ -27,7 +27,6 @@ bool sec_ace_object(uint8_t type); void sec_ace_copy(struct security_ace *ace_dest, const struct security_ace *ace_src); void init_sec_ace(struct security_ace *t, const struct dom_sid *sid, enum security_ace_type type, uint32_t mask, uint8_t flag); -NTSTATUS sec_ace_mod_sid(struct security_ace *ace, size_t num, const struct dom_sid *sid, uint32_t mask); int nt_ace_inherit_comp( const struct security_ace *a1, const struct security_ace *a2); int nt_ace_canon_comp( const struct security_ace *a1, const struct security_ace *a2); void dacl_sort_into_canonical_order(struct security_ace *srclist, unsigned int num_aces);