aboutsummaryrefslogtreecommitdiff
path: root/src/acl.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-03-05 15:14:24 +0200
committerSergey Poznyakoff <gray@gnu.org>2016-03-05 15:22:55 +0200
commitad5bd6e401657b9cb0fed04d15cdc6feeef91e15 (patch)
tree59838ad72680ba73145708c7a30a765ec2afdba0 /src/acl.h
parente558ab9db422cfd2bd59a07b72119b67a7598896 (diff)
downloadpies-ad5bd6e401657b9cb0fed04d15cdc6feeef91e15.tar.gz
pies-ad5bd6e401657b9cb0fed04d15cdc6feeef91e15.tar.bz2
ACL reference statements.
All ACL keywords can be used in simple statement as well as in block form. As simple statements, they take a name of an already defined named ACL. E.g.: defacl forbid { deny any; } component foo { list-acl forbid; } This commit also fixes some eventual double-frees. * doc/pies.texi: Update. * src/acl.c (pies_acl)<refcnt>: New member. (pies_acl_use): New function. (pies_acl_create): Initialize refcnt. (pies_acl_destroy): New function. (pies_acl_free): Rewrite as a wrapper over pies_acl_destroy. (_parse_sub_acl): Call pies_acl_use when installing a named ACL. (_acl_common_section_parser): Handle grecs_callback_set_value. * src/acl.h (pies_acl_destroy) (pies_acl_use): New function. * src/comp.c (component_free): Free acl.
Diffstat (limited to 'src/acl.h')
-rw-r--r--src/acl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/acl.h b/src/acl.h
index db65e10..8650f95 100644
--- a/src/acl.h
+++ b/src/acl.h
@@ -25,7 +25,9 @@ struct acl_input
};
pies_acl_t pies_acl_create (const char *name, grecs_locus_t *locus);
+void pies_acl_destroy (pies_acl_t *pacl);
void pies_acl_free (pies_acl_t acl);
+void pies_acl_use (pies_acl_t acl);
int pies_acl_cmp (struct pies_acl *a, struct pies_acl *b);
int pies_acl_check (pies_acl_t acl, struct acl_input *input, int result);
int parse_acl_line (grecs_locus_t *locus, int allow, pies_acl_t acl,

Return to:

Send suggestions and report system problems to the System administrator.