Scott M. Mcdermott

UNIX Systems & Network Administrator
available for contract or salaried positions

acl.h

/*
 * ACL routines for use with the commit and tag filters
 */

#ifndef _ACL_H
# define _ACL_H

# include <stdbool.h>


/* sets ACL of opened file; exit upon failure */
extern  void    xacl_set_fd             (int fd, acl_t acl);

/* returns ACL of opened file; exit upon failure */
extern  acl_t   xacl_get_fd             (int fd);

/* sets the ACL of given file in the CVS repository from its
 * containing directory ACL, also stripping write bits, and
 * adding an execute bit to any file whose ACL_USER_OBJ
 * originally had one, for all ACL entries that have read
 * permission. */
extern  void    set_repoacl_from_parent (char *file, int parentfd);

#endif