ugidfw_vnode.c (172955) | ugidfw_vnode.c (173138) |
---|---|
1/*- 2 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson 3 * Copyright (c) 2001-2005 Networks Associates Technology, Inc. 4 * Copyright (c) 2005 Tom Rhodes 5 * Copyright (c) 2006 SPARTA, Inc. 6 * All rights reserved. 7 * 8 * This software was developed by Robert Watson for the TrustedBSD Project. --- 23 unchanged lines hidden (view full) --- 32 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * | 1/*- 2 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson 3 * Copyright (c) 2001-2005 Networks Associates Technology, Inc. 4 * Copyright (c) 2005 Tom Rhodes 5 * Copyright (c) 2006 SPARTA, Inc. 6 * All rights reserved. 7 * 8 * This software was developed by Robert Watson for the TrustedBSD Project. --- 23 unchanged lines hidden (view full) --- 32 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * |
40 * $FreeBSD: head/sys/security/mac_bsdextended/mac_bsdextended.c 172955 2007-10-25 11:31:11Z rwatson $ | 40 * $FreeBSD: head/sys/security/mac_bsdextended/mac_bsdextended.c 173138 2007-10-29 13:33:06Z rwatson $ |
41 */ 42 43/* 44 * Developed by the TrustedBSD Project. 45 * 46 * "BSD Extended" MAC policy, allowing the administrator to impose mandatory 47 * firewall-like rules regarding users and file system objects. 48 */ --- 388 unchanged lines hidden (view full) --- 437 if (!ugidfw_enabled) 438 return (0); 439 error = VOP_GETATTR(vp, &vap, cred, curthread); 440 if (error) 441 return (error); 442 return (ugidfw_check(cred, vp, &vap, acc_mode)); 443} 444 | 41 */ 42 43/* 44 * Developed by the TrustedBSD Project. 45 * 46 * "BSD Extended" MAC policy, allowing the administrator to impose mandatory 47 * firewall-like rules regarding users and file system objects. 48 */ --- 388 unchanged lines hidden (view full) --- 437 if (!ugidfw_enabled) 438 return (0); 439 error = VOP_GETATTR(vp, &vap, cred, curthread); 440 if (error) 441 return (error); 442 return (ugidfw_check(cred, vp, &vap, acc_mode)); 443} 444 |
445/* 446 * Object-specific entry point implementations are sorted alphabetically by 447 * object type and then by operation. 448 */ |
|
445static int 446ugidfw_system_check_acct(struct ucred *cred, struct vnode *vp, 447 struct label *vplabel) 448{ 449 450 return (ugidfw_check_vp(cred, vp, MBI_WRITE)); 451} 452 --- 298 unchanged lines hidden --- | 449static int 450ugidfw_system_check_acct(struct ucred *cred, struct vnode *vp, 451 struct label *vplabel) 452{ 453 454 return (ugidfw_check_vp(cred, vp, MBI_WRITE)); 455} 456 --- 298 unchanged lines hidden --- |