174822Srwatson/*-
285845Srwatson * Copyright (c) 1999-2001 Robert N. M. Watson
374822Srwatson * All rights reserved.
474822Srwatson *
585845Srwatson * This software was developed by Robert Watson for the TrustedBSD Project.
685845Srwatson *
774822Srwatson * Redistribution and use in source and binary forms, with or without
874822Srwatson * modification, are permitted provided that the following conditions
974822Srwatson * are met:
1074822Srwatson * 1. Redistributions of source code must retain the above copyright
1174822Srwatson *    notice, this list of conditions and the following disclaimer.
1274822Srwatson * 2. Redistributions in binary form must reproduce the above copyright
1374822Srwatson *    notice, this list of conditions and the following disclaimer in the
1474822Srwatson *    documentation and/or other materials provided with the distribution.
1574822Srwatson *
1674822Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1774822Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1874822Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1974822Srwatson * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2074822Srwatson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2174822Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2274822Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2374822Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2474822Srwatson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2574822Srwatson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2674822Srwatson * SUCH DAMAGE.
2774822Srwatson *
2874822Srwatson * $FreeBSD$
2974822Srwatson */
3074822Srwatson/*
3185845Srwatson * Developed by the TrustedBSD Project.
3285845Srwatson * Support for POSIX.1e access control lists.
3374822Srwatson */
3474822Srwatson
3574822Srwatson#ifndef _UFS_UFS_ACL_H_
3674822Srwatson#define	_UFS_UFS_ACL_H_
3774822Srwatson
3874822Srwatson#ifdef _KERNEL
3974822Srwatson
40200796Straszint	ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td);
41200796Straszint	ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td);
4274822Srwatsonvoid	ufs_sync_acl_from_inode(struct inode *ip, struct acl *acl);
43118411Srwatsonvoid	ufs_sync_inode_from_acl(struct acl *acl, struct inode *ip);
4474822Srwatson
4592728Salfredint	ufs_getacl(struct vop_getacl_args *);
4692728Salfredint	ufs_setacl(struct vop_setacl_args *);
4792728Salfredint	ufs_aclcheck(struct vop_aclcheck_args *);
4874822Srwatson
4974822Srwatson#endif /* !_KERNEL */
5074822Srwatson
5190972Srwatson#endif /* !_UFS_UFS_ACL_H_ */
52