summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-08-12 09:14:35 +0200
committerMartin Schwenke <martins@samba.org>2015-08-14 07:46:12 +0200
commitf0f23d6a927cf3fdde9cc2a3e89ccd4dbd89e9f3 (patch)
treec4118d5594d459370fa3ac1f186d88e47bf789fb
parentf85c2a6852ad880c4df4882316ec0f6e13e87dad (diff)
downloadsamba-f0f23d6a927cf3fdde9cc2a3e89ccd4dbd89e9f3.tar.gz
lib: Remove some unused code
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r--libcli/security/secdesc.c19
-rw-r--r--libcli/security/secdesc.h5
2 files changed, 0 insertions, 24 deletions
diff --git a/libcli/security/secdesc.c b/libcli/security/secdesc.c
index 46b820ee24e..bbad8a3c2ab 100644
--- a/libcli/security/secdesc.c
+++ b/libcli/security/secdesc.c
@@ -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
*/
diff --git a/libcli/security/secdesc.h b/libcli/security/secdesc.h
index 4c96ccde555..34d9d77b4b4 100644
--- a/libcli/security/secdesc.h
+++ b/libcli/security/secdesc.h
@@ -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,