Merge branch 't/misc'
[paraslash.git] / acl.h
1 /*
2 * Copyright (C) 2008-2014 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file acl.h Exported functions of acl.c. */
8
9 void acl_init(struct list_head *acl, char * const *acl_info, int num);
10 char *acl_get_contents(struct list_head *acl);
11 int acl_check_access(int fd, struct list_head *acl, int default_deny);
12 void acl_allow(char *addr, int mask, struct list_head *acl, int default_deny);
13 void acl_deny(char *addr, int mask, struct list_head *acl, int default_deny);