mac_stub.c (179963) | mac_stub.c (180059) |
---|---|
1/*- 2 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson 3 * Copyright (c) 2001-2005 McAfee, Inc. 4 * Copyright (c) 2005-2006 SPARTA, Inc. 5 * All rights reserved. 6 * 7 * This software was developed by Robert Watson for the TrustedBSD Project. 8 * --- 21 unchanged lines hidden (view full) --- 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * | 1/*- 2 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson 3 * Copyright (c) 2001-2005 McAfee, Inc. 4 * Copyright (c) 2005-2006 SPARTA, Inc. 5 * All rights reserved. 6 * 7 * This software was developed by Robert Watson for the TrustedBSD Project. 8 * --- 21 unchanged lines hidden (view full) --- 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * |
38 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 179963 2008-06-23 21:37:53Z jhb $ | 38 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 180059 2008-06-27 05:39:04Z jhb $ |
39 */ 40 41/* 42 * Developed by the TrustedBSD Project. 43 * 44 * Stub module that implements a NOOP for most (if not all) MAC Framework 45 * policy entry points. 46 */ --- 471 unchanged lines hidden (view full) --- 518static void 519stub_pipe_relabel(struct ucred *cred, struct pipepair *pp, 520 struct label *pplabel, struct label *newlabel) 521{ 522 523} 524 525static int | 39 */ 40 41/* 42 * Developed by the TrustedBSD Project. 43 * 44 * Stub module that implements a NOOP for most (if not all) MAC Framework 45 * policy entry points. 46 */ --- 471 unchanged lines hidden (view full) --- 518static void 519stub_pipe_relabel(struct ucred *cred, struct pipepair *pp, 520 struct label *pplabel, struct label *newlabel) 521{ 522 523} 524 525static int |
526stub_posixsem_check_getvalue(struct ucred *cred, struct ksem *ks, 527 struct label *kslabel) | 526stub_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, 527 struct ksem *ks, struct label *kslabel) |
528{ 529 530 return (0); 531} 532 533static int 534stub_posixsem_check_open(struct ucred *cred, struct ksem *ks, 535 struct label *kslabel) 536{ 537 538 return (0); 539} 540 541static int | 528{ 529 530 return (0); 531} 532 533static int 534stub_posixsem_check_open(struct ucred *cred, struct ksem *ks, 535 struct label *kslabel) 536{ 537 538 return (0); 539} 540 541static int |
542stub_posixsem_check_post(struct ucred *cred, struct ksem *ks, 543 struct label *kslabel) | 542stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, 543 struct ksem *ks, struct label *kslabel) |
544{ 545 546 return (0); 547} 548 549static int | 544{ 545 546 return (0); 547} 548 549static int |
550stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, 551 struct ksem *ks, struct label *kslabel) 552{ 553 554 return (0); 555} 556 557static int |
|
550stub_posixsem_check_unlink(struct ucred *cred, struct ksem *ks, 551 struct label *kslabel) 552{ 553 554 return (0); 555} 556 557static int | 558stub_posixsem_check_unlink(struct ucred *cred, struct ksem *ks, 559 struct label *kslabel) 560{ 561 562 return (0); 563} 564 565static int |
558stub_posixsem_check_wait(struct ucred *cred, struct ksem *ks, 559 struct label *kslabel) | 566stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, 567 struct ksem *ks, struct label *kslabel) |
560{ 561 562 return (0); 563} 564 565static void 566stub_posixsem_create(struct ucred *cred, struct ksem *ks, 567 struct label *kslabel) --- 1009 unchanged lines hidden (view full) --- 1577 .mpo_pipe_externalize_label = stub_externalize_label, 1578 .mpo_pipe_init_label = stub_init_label, 1579 .mpo_pipe_internalize_label = stub_internalize_label, 1580 .mpo_pipe_relabel = stub_pipe_relabel, 1581 1582 .mpo_posixsem_check_getvalue = stub_posixsem_check_getvalue, 1583 .mpo_posixsem_check_open = stub_posixsem_check_open, 1584 .mpo_posixsem_check_post = stub_posixsem_check_post, | 568{ 569 570 return (0); 571} 572 573static void 574stub_posixsem_create(struct ucred *cred, struct ksem *ks, 575 struct label *kslabel) --- 1009 unchanged lines hidden (view full) --- 1585 .mpo_pipe_externalize_label = stub_externalize_label, 1586 .mpo_pipe_init_label = stub_init_label, 1587 .mpo_pipe_internalize_label = stub_internalize_label, 1588 .mpo_pipe_relabel = stub_pipe_relabel, 1589 1590 .mpo_posixsem_check_getvalue = stub_posixsem_check_getvalue, 1591 .mpo_posixsem_check_open = stub_posixsem_check_open, 1592 .mpo_posixsem_check_post = stub_posixsem_check_post, |
1593 .mpo_posixsem_check_stat = stub_posixsem_check_stat, |
|
1585 .mpo_posixsem_check_unlink = stub_posixsem_check_unlink, 1586 .mpo_posixsem_check_wait = stub_posixsem_check_wait, 1587 .mpo_posixsem_create = stub_posixsem_create, 1588 .mpo_posixsem_destroy_label = stub_destroy_label, 1589 .mpo_posixsem_init_label = stub_init_label, 1590 1591 .mpo_posixshm_check_mmap = stub_posixshm_check_mmap, 1592 .mpo_posixshm_check_open = stub_posixshm_check_open, --- 157 unchanged lines hidden --- | 1594 .mpo_posixsem_check_unlink = stub_posixsem_check_unlink, 1595 .mpo_posixsem_check_wait = stub_posixsem_check_wait, 1596 .mpo_posixsem_create = stub_posixsem_create, 1597 .mpo_posixsem_destroy_label = stub_destroy_label, 1598 .mpo_posixsem_init_label = stub_init_label, 1599 1600 .mpo_posixshm_check_mmap = stub_posixshm_check_mmap, 1601 .mpo_posixshm_check_open = stub_posixshm_check_open, --- 157 unchanged lines hidden --- |