xref: /netbsd-src/external/ibm-public/postfix/dist/src/global/user_acl.h (revision e89934bbf778a6d6d6894877c4da59d0c7835b0f)
1 /*	$NetBSD: user_acl.h,v 1.2 2017/02/14 01:16:45 christos Exp $	*/
2 
3 #ifndef _USER_ACL_H_INCLUDED_
4 #define _USER_ACL_H_INCLUDED_
5 /*++
6 /* NAME
7 /*	user_acl 3h
8 /* SUMMARY
9 /*	Convert uid to username and check against given ACL.
10 /* SYNOPSIS
11 /*	#include <user_acl.h>
12 /*
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * System library
18   */
19 #include <unistd.h>		/* getuid()/geteuid() */
20 #include <sys/types.h>		/* uid_t */
21 
22  /*
23   * Utility library.
24   */
25 #include <vstring.h>
26 
27  /*
28   * External interface
29   */
30 extern const char *check_user_acl_byuid(const char *, const char *, uid_t);
31 
32 /* AUTHOR(S)
33 /*	Wietse Venema
34 /*	IBM T.J. Watson Research
35 /*	P.O. Box 704
36 /*	Yorktown Heights, NY 10598, USA
37 /*
38 /*	Victor Duchovni
39 /*	Morgan Stanley
40 /*--*/
41 #endif
42