Deleted Added
full compact
mac_stub.c (175164) mac_stub.c (179781)
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 175164 2008-01-08 21:58:16Z jhb $
38 * $FreeBSD: head/sys/security/mac_stub/mac_stub.c 179781 2008-06-13 22:14:15Z 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 */

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

302static void
303stub_inpcb_sosetlabel(struct socket *so, struct label *solabel,
304 struct inpcb *inp, struct label *inplabel)
305{
306
307}
308
309static 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 */

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

302static void
303stub_inpcb_sosetlabel(struct socket *so, struct label *solabel,
304 struct inpcb *inp, struct label *inplabel)
305{
306
307}
308
309static void
310stub_ipq_create(struct mbuf *m, struct label *mlabel, struct ipq *ipq,
311 struct label *ipqlabel)
310stub_ipq_create(struct mbuf *m, struct label *mlabel, struct ipq *q,
311 struct label *qlabel)
312{
313
314}
315
316static int
312{
313
314}
315
316static int
317stub_ipq_match(struct mbuf *m, struct label *mlabel, struct ipq *ipq,
318 struct label *ipqlabel)
317stub_ipq_match(struct mbuf *m, struct label *mlabel, struct ipq *q,
318 struct label *qlabel)
319{
320
321 return (1);
322}
323
324static void
319{
320
321 return (1);
322}
323
324static void
325stub_ipq_reassemble(struct ipq *ipq, struct label *ipqlabel,
326 struct mbuf *m, struct label *mlabel)
325stub_ipq_reassemble(struct ipq *q, struct label *qlabel, struct mbuf *m,
326 struct label *mlabel)
327{
328
329}
330
331static void
327{
328
329}
330
331static void
332stub_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *ipq,
333 struct label *ipqlabel)
332stub_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *q,
333 struct label *qlabel)
334{
335
336}
337
338static int
339stub_kenv_check_dump(struct ucred *cred)
340{
341

--- 1417 unchanged lines hidden ---
334{
335
336}
337
338static int
339stub_kenv_check_dump(struct ucred *cred)
340{
341

--- 1417 unchanged lines hidden ---