X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fafpd%2Facls.h;h=fb0792c3af19e7b3972284b51fc90b26bdabc1a1;hb=dcbfd39d8a7df800a55ab0160d890bd61ebc7302;hp=b79faaff9ee7e612496e1aba34277bfcc53e5648;hpb=94413c1dd8c24a1df937225877d77e5a99258c59;p=netatalk.git diff --git a/etc/afpd/acls.h b/etc/afpd/acls.h index b79faaff..fb0792c3 100644 --- a/etc/afpd/acls.h +++ b/etc/afpd/acls.h @@ -1,5 +1,4 @@ /* - $Id: acls.h,v 1.2 2009-10-15 10:43:13 didg Exp $ Copyright (c) 2008,2009 Frank Lahm This program is free software; you can redistribute it and/or modify @@ -16,8 +15,11 @@ #ifndef AFPD_ACLS_H #define AFPD_ACLS_H +#ifdef HAVE_SOLARIS_ACLS #include -#include /* for uuid_t */ +#endif + +#include /* for atalk_uuid_t */ /* * This is what Apple says about ACL flags in sys/kauth.h: @@ -32,8 +34,10 @@ * the wire! We will ignore and spoil em. */ +#ifdef HAVE_SOLARIS_ACLS /* Some stuff for the handling of NFSv4 ACLs */ #define ACE_TRIVIAL (ACE_OWNER | ACE_GROUP | ACE_EVERYONE) +#endif /* HAVE_SOLARIS_ACLS */ /* FPGet|Set Bitmap */ enum { @@ -89,7 +93,7 @@ enum { /* Access Control List Entry (ACE) */ typedef struct { - uuid_t darwin_ace_uuid; + atalk_uuid_t darwin_ace_uuid; uint32_t darwin_ace_flags; uint32_t darwin_ace_rights; } darwin_ace_t; @@ -105,7 +109,8 @@ int afp_access (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rb int afp_getacl (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); int afp_setacl (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen); -/* Parse ldap.conf */ +/* Parse afp_ldap.conf */ extern int acl_ldap_readconfig(char *name); +extern void acltoownermode(char *path, struct stat *st,uid_t uid, struct maccess *ma); #endif