From 436e62bb30feaa3458c10738e0468fc194e14623 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 27 Dec 2002 11:35:50 +0000 Subject: [PATCH] Informations for porting to other platforms. --- PORTING | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 PORTING diff --git a/PORTING b/PORTING new file mode 100644 index 0000000..50bae5a --- /dev/null +++ b/PORTING @@ -0,0 +1,18 @@ +First, determine if your OS supports the full 28 functions of the +POSIX.1e draft (if so, LEVEL2) or only the first 11 functions (most +common case, meaning LEVEL1). + +If your OS supports only LEVEL1, modift setup.py as appropriately; +unfortunately, the functionality of the module is quite low. + +If your OS supports LEVEL2, there is a function which you must define: +testing if an acl_permset_t contains a given permission. For example, +under Linux, the acl library defines: + int acl_get_perm(acl_permset_t permset_d, acl_perm_t perm); +under FreeBSD, the acl_permset_t is actually a mode_t and you can test +with |. So just see how this is implemented in your platform and +define a function: + static int get_perm(acl_permset_t permset_d, acl_perm_t perm); +which return 1 if the permset contains perm and 0 otherwise. Put that +function in a separate file, os_.c and modify the top of +acl.c to include that file (see there for example). -- 2.39.5