Deleted Added
full compact
mac_stub.c (172955) mac_stub.c (172957)
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 172955 2007-10-25 11:31:11Z rwatson $
38 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 172957 2007-10-25 12:34:14Z rwatson $
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 */

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

181static void
182stub_vnode_associate_singlelabel(struct mount *mp, struct label *mplabel,
183 struct vnode *vp, struct label *vplabel)
184{
185
186}
187
188static void
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 */

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

181static void
182stub_vnode_associate_singlelabel(struct mount *mp, struct label *mplabel,
183 struct vnode *vp, struct label *vplabel)
184{
185
186}
187
188static void
189stub_associate_nfsd_label(struct ucred *cred)
190{
191
192}
193
194static void
195stub_devfs_create_device(struct ucred *cred, struct mount *mp,
196 struct cdev *dev, struct devfs_dirent *de, struct label *delabel)
197{
198
199}
200
201static void
202stub_devfs_create_directory(struct mount *mp, char *dirname,

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

521
522static void
523stub_proc_create_init(struct ucred *cred)
524{
525
526}
527
528static void
189stub_devfs_create_device(struct ucred *cred, struct mount *mp,
190 struct cdev *dev, struct devfs_dirent *de, struct label *delabel)
191{
192
193}
194
195static void
196stub_devfs_create_directory(struct mount *mp, char *dirname,

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

515
516static void
517stub_proc_create_init(struct ucred *cred)
518{
519
520}
521
522static void
523stub_proc_associate_nfsd(struct ucred *cred)
524{
525
526}
527
528static void
529stub_cred_relabel(struct ucred *cred, struct label *newlabel)
530{
531
532}
533
534static void
535stub_thread_userret(struct thread *td)
536{

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

1487 .mpo_vnode_externalize_label = stub_externalize_label,
1488 .mpo_cred_internalize_label = stub_internalize_label,
1489 .mpo_ifnet_internalize_label = stub_internalize_label,
1490 .mpo_pipe_internalize_label = stub_internalize_label,
1491 .mpo_socket_internalize_label = stub_internalize_label,
1492 .mpo_vnode_internalize_label = stub_internalize_label,
1493 .mpo_devfs_vnode_associate = stub_devfs_vnode_associate,
1494 .mpo_vnode_associate_extattr = stub_vnode_associate_extattr,
529stub_cred_relabel(struct ucred *cred, struct label *newlabel)
530{
531
532}
533
534static void
535stub_thread_userret(struct thread *td)
536{

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

1487 .mpo_vnode_externalize_label = stub_externalize_label,
1488 .mpo_cred_internalize_label = stub_internalize_label,
1489 .mpo_ifnet_internalize_label = stub_internalize_label,
1490 .mpo_pipe_internalize_label = stub_internalize_label,
1491 .mpo_socket_internalize_label = stub_internalize_label,
1492 .mpo_vnode_internalize_label = stub_internalize_label,
1493 .mpo_devfs_vnode_associate = stub_devfs_vnode_associate,
1494 .mpo_vnode_associate_extattr = stub_vnode_associate_extattr,
1495 .mpo_associate_nfsd_label = stub_associate_nfsd_label,
1496 .mpo_vnode_associate_singlelabel = stub_vnode_associate_singlelabel,
1497 .mpo_devfs_create_device = stub_devfs_create_device,
1498 .mpo_devfs_create_directory = stub_devfs_create_directory,
1499 .mpo_devfs_create_symlink = stub_devfs_create_symlink,
1500 .mpo_sysvmsg_create = stub_sysvmsg_create,
1501 .mpo_sysvmsq_create = stub_sysvmsq_create,
1502 .mpo_sysvsem_create = stub_sysvsem_create,
1503 .mpo_sysvshm_create = stub_sysvshm_create,

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

1533 .mpo_netinet_tcp_reply = stub_netinet_tcp_reply,
1534 .mpo_ifnet_relabel = stub_ifnet_relabel,
1535 .mpo_ipq_update = stub_ipq_update,
1536 .mpo_inpcb_sosetlabel = stub_inpcb_sosetlabel,
1537 .mpo_vnode_execve_transition = stub_vnode_execve_transition,
1538 .mpo_vnode_execve_will_transition = stub_vnode_execve_will_transition,
1539 .mpo_proc_create_swapper = stub_proc_create_swapper,
1540 .mpo_proc_create_init = stub_proc_create_init,
1495 .mpo_vnode_associate_singlelabel = stub_vnode_associate_singlelabel,
1496 .mpo_devfs_create_device = stub_devfs_create_device,
1497 .mpo_devfs_create_directory = stub_devfs_create_directory,
1498 .mpo_devfs_create_symlink = stub_devfs_create_symlink,
1499 .mpo_sysvmsg_create = stub_sysvmsg_create,
1500 .mpo_sysvmsq_create = stub_sysvmsq_create,
1501 .mpo_sysvsem_create = stub_sysvsem_create,
1502 .mpo_sysvshm_create = stub_sysvshm_create,

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

1532 .mpo_netinet_tcp_reply = stub_netinet_tcp_reply,
1533 .mpo_ifnet_relabel = stub_ifnet_relabel,
1534 .mpo_ipq_update = stub_ipq_update,
1535 .mpo_inpcb_sosetlabel = stub_inpcb_sosetlabel,
1536 .mpo_vnode_execve_transition = stub_vnode_execve_transition,
1537 .mpo_vnode_execve_will_transition = stub_vnode_execve_will_transition,
1538 .mpo_proc_create_swapper = stub_proc_create_swapper,
1539 .mpo_proc_create_init = stub_proc_create_init,
1540 .mpo_proc_associate_nfsd = stub_proc_associate_nfsd,
1541 .mpo_cred_relabel= stub_cred_relabel,
1542 .mpo_thread_userret = stub_thread_userret,
1543 .mpo_sysvmsg_cleanup = stub_sysvmsg_cleanup,
1544 .mpo_sysvmsq_cleanup = stub_sysvmsq_cleanup,
1545 .mpo_sysvsem_cleanup = stub_sysvsem_cleanup,
1546 .mpo_sysvshm_cleanup = stub_sysvshm_cleanup,
1547 .mpo_bpfdesc_check_receive = stub_bpfdesc_check_receive,
1548 .mpo_cred_check_relabel = stub_cred_check_relabel,

--- 116 unchanged lines hidden ---
1541 .mpo_cred_relabel= stub_cred_relabel,
1542 .mpo_thread_userret = stub_thread_userret,
1543 .mpo_sysvmsg_cleanup = stub_sysvmsg_cleanup,
1544 .mpo_sysvmsq_cleanup = stub_sysvmsq_cleanup,
1545 .mpo_sysvsem_cleanup = stub_sysvsem_cleanup,
1546 .mpo_sysvshm_cleanup = stub_sysvshm_cleanup,
1547 .mpo_bpfdesc_check_receive = stub_bpfdesc_check_receive,
1548 .mpo_cred_check_relabel = stub_cred_check_relabel,

--- 116 unchanged lines hidden ---