lib: Remove some unused code
authorVolker Lendecke <vl@samba.org>
Wed, 12 Aug 2015 07:14:35 +0000 (09:14 +0200)
committerMartin Schwenke <martins@samba.org>
Fri, 14 Aug 2015 05:46:12 +0000 (07:46 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
libcli/security/secdesc.c
libcli/security/secdesc.h

index 46b820ee24e52ad76d4d4c57eefca6029efbd044..bbad8a3c2ab846e64e78a05099ffc5a91e7a2ed0 100644 (file)
@@ -396,25 +396,6 @@ struct sec_desc_buf *dup_sec_desc_buf(TALLOC_CTX *ctx, struct sec_desc_buf *src)
        return make_sec_desc_buf( ctx, src->sd_size, src->sd);
 }
 
-/*******************************************************************
- Modify a SID's permissions in a struct security_descriptor.
-********************************************************************/
-
-NTSTATUS sec_desc_mod_sid(struct security_descriptor *sd, struct dom_sid *sid, uint32_t mask)
-{
-       NTSTATUS status;
-
-       if (!sd || !sid)
-               return NT_STATUS_INVALID_PARAMETER;
-
-       status = sec_ace_mod_sid(sd->dacl->aces, sd->dacl->num_aces, sid, mask);
-
-       if (!NT_STATUS_IS_OK(status))
-               return status;
-
-       return NT_STATUS_OK;
-}
-
 /*
  * Determine if an struct security_ace is inheritable
  */
index 4c96ccde555f40799c36b4a43acad0c210d68ad7..34d9d77b4b4871a99b0cce19216efd6871c90bb2 100644 (file)
@@ -89,11 +89,6 @@ struct sec_desc_buf *make_sec_desc_buf(TALLOC_CTX *ctx, size_t len, struct secur
 ********************************************************************/
 struct sec_desc_buf *dup_sec_desc_buf(TALLOC_CTX *ctx, struct sec_desc_buf *src);
 
-/*******************************************************************
- Modify a SID's permissions in a struct security_descriptor.
-********************************************************************/
-NTSTATUS sec_desc_mod_sid(struct security_descriptor *sd, struct dom_sid *sid, uint32_t mask);
-
 bool sd_has_inheritable_components(const struct security_descriptor *parent_ctr, bool container);
 NTSTATUS se_create_child_secdesc(TALLOC_CTX *ctx,
                                        struct security_descriptor **ppsd,