Deleted Added
full compact
mac_policy.h (119198) mac_policy.h (119244)
1/*-
2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson
3 * Copyright (c) 2001, 2002, 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, 2000, 2001, 2002 Robert N. M. Watson
3 * Copyright (c) 2001, 2002, 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/mac_policy.h 119198 2003-08-21 13:53:01Z rwatson $
34 * $FreeBSD: head/sys/security/mac/mac_policy.h 119244 2003-08-21 18:21:22Z rwatson $
35 */
36/*
37 * Kernel interface for MAC policy modules.
38 */
39#ifndef _SYS_MAC_POLICY_H
40#define _SYS_MAC_POLICY_H
41
42/*-

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

236 struct label *ifnetlabel, struct mbuf *newmbuf,
237 struct label *newmbuflabel);
238 void (*mpo_create_mbuf_netlayer)(struct mbuf *oldmbuf,
239 struct label *oldmbuflabel, struct mbuf *newmbuf,
240 struct label *newmbuflabel);
241 int (*mpo_fragment_match)(struct mbuf *fragment,
242 struct label *fragmentlabel, struct ipq *ipq,
243 struct label *ipqlabel);
35 */
36/*
37 * Kernel interface for MAC policy modules.
38 */
39#ifndef _SYS_MAC_POLICY_H
40#define _SYS_MAC_POLICY_H
41
42/*-

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

236 struct label *ifnetlabel, struct mbuf *newmbuf,
237 struct label *newmbuflabel);
238 void (*mpo_create_mbuf_netlayer)(struct mbuf *oldmbuf,
239 struct label *oldmbuflabel, struct mbuf *newmbuf,
240 struct label *newmbuflabel);
241 int (*mpo_fragment_match)(struct mbuf *fragment,
242 struct label *fragmentlabel, struct ipq *ipq,
243 struct label *ipqlabel);
244 void (*mpo_reflect_mbuf_icmp)(struct mbuf *m,
245 struct label *mlabel);
246 void (*mpo_reflect_mbuf_tcp)(struct mbuf *m, struct label *mlabel);
244 void (*mpo_relabel_ifnet)(struct ucred *cred, struct ifnet *ifnet,
245 struct label *ifnetlabel, struct label *newlabel);
246 void (*mpo_update_ipq)(struct mbuf *fragment,
247 struct label *fragmentlabel, struct ipq *ipq,
248 struct label *ipqlabel);
249
250 /*
251 * Labeling event operations: processes.

--- 224 unchanged lines hidden ---
247 void (*mpo_relabel_ifnet)(struct ucred *cred, struct ifnet *ifnet,
248 struct label *ifnetlabel, struct label *newlabel);
249 void (*mpo_update_ipq)(struct mbuf *fragment,
250 struct label *fragmentlabel, struct ipq *ipq,
251 struct label *ipqlabel);
252
253 /*
254 * Labeling event operations: processes.

--- 224 unchanged lines hidden ---