mac_stub.c (126097) | mac_stub.c (126121) |
---|---|
1/*- 2 * Copyright (c) 1999-2002 Robert N. M. Watson 3 * Copyright (c) 2001-2003 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert Watson for the TrustedBSD Project. 7 * 8 * This software was developed for the FreeBSD Project in part by Network --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * | 1/*- 2 * Copyright (c) 1999-2002 Robert N. M. Watson 3 * Copyright (c) 2001-2003 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed by Robert Watson for the TrustedBSD Project. 7 * 8 * This software was developed for the FreeBSD Project in part by Network --- 17 unchanged lines hidden (view full) --- 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 126097 2004-02-22 00:33:12Z rwatson $ | 34 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 126121 2004-02-22 12:31:44Z pjd $ |
35 */ 36 37/* 38 * Developed by the TrustedBSD Project. 39 * 40 * Stub module that implements a NOOP for most (if not all) MAC Framework 41 * policy entry points. 42 */ --- 709 unchanged lines hidden (view full) --- 752stub_check_system_swapoff(struct ucred *cred, struct vnode *vp, 753 struct label *label) 754{ 755 756 return (0); 757} 758 759static int | 35 */ 36 37/* 38 * Developed by the TrustedBSD Project. 39 * 40 * Stub module that implements a NOOP for most (if not all) MAC Framework 41 * policy entry points. 42 */ --- 709 unchanged lines hidden (view full) --- 752stub_check_system_swapoff(struct ucred *cred, struct vnode *vp, 753 struct label *label) 754{ 755 756 return (0); 757} 758 759static int |
760stub_check_system_sysctl(struct ucred *cred, int *name, u_int namelen, 761 void *old, size_t *oldlenp, int inkernel, void *new, size_t newlen) | 760stub_check_system_sysctl(struct ucred *cred, struct sysctl_oid *oidp, 761 void *arg1, int arg2, struct sysctl_req *req) |
762{ 763 764 return (0); 765} 766 767static int 768stub_check_vnode_access(struct ucred *cred, struct vnode *vp, 769 struct label *label, int acc_mode) --- 423 unchanged lines hidden --- | 762{ 763 764 return (0); 765} 766 767static int 768stub_check_vnode_access(struct ucred *cred, struct vnode *vp, 769 struct label *label, int acc_mode) --- 423 unchanged lines hidden --- |