Deleted Added
full compact
mac_cred.c (111936) mac_cred.c (111939)
1/*-
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * Copyright (c) 2001 Ilmar S. Habibulin
4 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc.
5 * All rights reserved.
6 *
7 * This software was developed by Robert Watson and Ilmar Habibulin for the
8 * TrustedBSD Project.

--- 19 unchanged lines hidden (view full) ---

28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
1/*-
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * Copyright (c) 2001 Ilmar S. Habibulin
4 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc.
5 * All rights reserved.
6 *
7 * This software was developed by Robert Watson and Ilmar Habibulin for the
8 * TrustedBSD Project.

--- 19 unchanged lines hidden (view full) ---

28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * $FreeBSD: head/sys/security/mac/mac_process.c 111936 2003-03-05 23:50:15Z rwatson $
36 * $FreeBSD: head/sys/security/mac/mac_process.c 111939 2003-03-06 04:47:47Z rwatson $
37 */
38/*
39 * Developed by the TrustedBSD Project.
40 *
41 * Framework for extensible kernel access control. Kernel and userland
42 * interface to the framework, policy registration and composition.
43 */
44

--- 2573 unchanged lines hidden (view full) ---

2618 return (0);
2619
2620 MAC_CHECK(check_socket_visible, cred, socket, &socket->so_label);
2621
2622 return (error);
2623}
2624
2625int
37 */
38/*
39 * Developed by the TrustedBSD Project.
40 *
41 * Framework for extensible kernel access control. Kernel and userland
42 * interface to the framework, policy registration and composition.
43 */
44

--- 2573 unchanged lines hidden (view full) ---

2618 return (0);
2619
2620 MAC_CHECK(check_socket_visible, cred, socket, &socket->so_label);
2621
2622 return (error);
2623}
2624
2625int
2626mac_check_sysarch_ioperm(struct ucred *cred)
2627{
2628 int error;
2629
2630 if (!mac_enforce_system)
2631 return (0);
2632
2633 MAC_CHECK(check_sysarch_ioperm, cred);
2634 return (error);
2635}
2636
2637int
2626mac_check_system_acct(struct ucred *cred, struct vnode *vp)
2627{
2628 int error;
2629
2630 if (vp != NULL) {
2631 ASSERT_VOP_LOCKED(vp, "mac_check_system_acct");
2632 }
2633

--- 1063 unchanged lines hidden ---
2638mac_check_system_acct(struct ucred *cred, struct vnode *vp)
2639{
2640 int error;
2641
2642 if (vp != NULL) {
2643 ASSERT_VOP_LOCKED(vp, "mac_check_system_acct");
2644 }
2645

--- 1063 unchanged lines hidden ---