vfs_acl.c (66184) | vfs_acl.c (69774) |
---|---|
1/*- 2 * Copyright (c) 1999, 2000 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999, 2000 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/kern/vfs_acl.c 66184 2000-09-21 18:43:32Z rwatson $ | 26 * $FreeBSD: head/sys/kern/vfs_acl.c 69774 2000-12-08 20:09:00Z phk $ |
27 */ 28 29/* 30 * Generic routines to support file system ACLs, at a syntactic level 31 * Semantics are the responsibility of the underlying file system 32 */ 33 34#include <sys/param.h> --- 6 unchanged lines hidden (view full) --- 41#include <sys/namei.h> 42#include <sys/file.h> 43#include <sys/proc.h> 44#include <sys/sysent.h> 45#include <sys/errno.h> 46#include <sys/stat.h> 47#include <sys/acl.h> 48 | 27 */ 28 29/* 30 * Generic routines to support file system ACLs, at a syntactic level 31 * Semantics are the responsibility of the underlying file system 32 */ 33 34#include <sys/param.h> --- 6 unchanged lines hidden (view full) --- 41#include <sys/namei.h> 42#include <sys/file.h> 43#include <sys/proc.h> 44#include <sys/sysent.h> 45#include <sys/errno.h> 46#include <sys/stat.h> 47#include <sys/acl.h> 48 |
49MALLOC_DEFINE(M_ACL, "acl", "access control list"); | 49static MALLOC_DEFINE(M_ACL, "acl", "access control list"); |
50 51static int vacl_set_acl(struct proc *p, struct vnode *vp, acl_type_t type, 52 struct acl *aclp); 53static int vacl_get_acl(struct proc *p, struct vnode *vp, acl_type_t type, 54 struct acl *aclp); 55static int vacl_aclcheck(struct proc *p, struct vnode *vp, acl_type_t type, 56 struct acl *aclp); 57 --- 222 unchanged lines hidden --- | 50 51static int vacl_set_acl(struct proc *p, struct vnode *vp, acl_type_t type, 52 struct acl *aclp); 53static int vacl_get_acl(struct proc *p, struct vnode *vp, acl_type_t type, 54 struct acl *aclp); 55static int vacl_aclcheck(struct proc *p, struct vnode *vp, acl_type_t type, 56 struct acl *aclp); 57 --- 222 unchanged lines hidden --- |