1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/util/access.h
Jeremy Allison 584daf5513 lib: util: Add allow_access_nolog().
Make allow_access() call allow_access_nolog(), then log.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12419

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2016-11-16 12:41:09 +01:00

29 lines
814 B
C

/*
This module is an adaption of code from the tcpd-1.4 package written
by Wietse Venema, Eindhoven University of Technology, The Netherlands.
The code is used here with permission.
The code has been considerably changed from the original. Bug reports
should be sent to samba-technical@lists.samba.org
Updated for IPv6 by Jeremy Allison (C) 2007.
*/
#ifndef _UTIL_ACCESS_H_
#define _UTIL_ACCESS_H_
bool client_match(const char *tok, const void *item);
bool list_match(const char **list,const void *item,
bool (*match_fn)(const char *, const void *));
bool allow_access_nolog(const char **deny_list,
const char **allow_list,
const char *cname,
const char *caddr);
bool allow_access(const char **deny_list,
const char **allow_list,
const char *cname,
const char *caddr);
#endif