ugidfw_internal.h (184413) | ugidfw_internal.h (184467) |
---|---|
1/*- 2 * Copyright (c) 2008 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 2008 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/security/mac_bsdextended/ugidfw_internal.h 184413 2008-10-28 13:44:11Z trasz $ | 28 * $FreeBSD: head/sys/security/mac_bsdextended/ugidfw_internal.h 184467 2008-10-30 10:13:53Z rwatson $ |
29 */ 30 31#ifndef _SYS_SECURITY_MAC_BSDEXTENDED_UGIDFW_INTERNAL_H 32#define _SYS_SECURITY_MAC_BSDEXTENDED_UGIDFW_INTERNAL_H 33 34/* 35 * Central access control routines used by object-specific checks. 36 */ | 29 */ 30 31#ifndef _SYS_SECURITY_MAC_BSDEXTENDED_UGIDFW_INTERNAL_H 32#define _SYS_SECURITY_MAC_BSDEXTENDED_UGIDFW_INTERNAL_H 33 34/* 35 * Central access control routines used by object-specific checks. 36 */ |
37int ugidfw_accmode2mbi(accmode_t accmode); |
|
37int ugidfw_check(struct ucred *cred, struct vnode *vp, struct vattr *vap, 38 int acc_mode); 39int ugidfw_check_vp(struct ucred *cred, struct vnode *vp, int acc_mode); 40 41/* 42 * System access control checks. 43 */ 44int ugidfw_system_check_acct(struct ucred *cred, struct vnode *vp, --- 73 unchanged lines hidden --- | 38int ugidfw_check(struct ucred *cred, struct vnode *vp, struct vattr *vap, 39 int acc_mode); 40int ugidfw_check_vp(struct ucred *cred, struct vnode *vp, int acc_mode); 41 42/* 43 * System access control checks. 44 */ 45int ugidfw_system_check_acct(struct ucred *cred, struct vnode *vp, --- 73 unchanged lines hidden --- |