Deleted Added
full compact
mac_framework.h (179963) mac_framework.h (180059)
1/*-
2 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson
3 * Copyright (c) 2001-2005 Networks Associates Technology, 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 Networks Associates Technology, 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/mac_framework.h 179963 2008-06-23 21:37:53Z jhb $
38 * $FreeBSD: head/sys/security/mac/mac_framework.h 180059 2008-06-27 05:39:04Z jhb $
39 */
40
41/*
42 * Kernel interface for Mandatory Access Control -- how kernel services
43 * interact with the TrustedBSD MAC Framework.
44 */
45
46#ifndef _SECURITY_MAC_MAC_FRAMEWORK_H_

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

184int mac_pipe_check_stat(struct ucred *cred, struct pipepair *pp);
185int mac_pipe_check_write(struct ucred *cred, struct pipepair *pp);
186void mac_pipe_create(struct ucred *cred, struct pipepair *pp);
187void mac_pipe_destroy(struct pipepair *);
188void mac_pipe_init(struct pipepair *);
189int mac_pipe_label_set(struct ucred *cred, struct pipepair *pp,
190 struct label *label);
191
39 */
40
41/*
42 * Kernel interface for Mandatory Access Control -- how kernel services
43 * interact with the TrustedBSD MAC Framework.
44 */
45
46#ifndef _SECURITY_MAC_MAC_FRAMEWORK_H_

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

184int mac_pipe_check_stat(struct ucred *cred, struct pipepair *pp);
185int mac_pipe_check_write(struct ucred *cred, struct pipepair *pp);
186void mac_pipe_create(struct ucred *cred, struct pipepair *pp);
187void mac_pipe_destroy(struct pipepair *);
188void mac_pipe_init(struct pipepair *);
189int mac_pipe_label_set(struct ucred *cred, struct pipepair *pp,
190 struct label *label);
191
192int mac_posixsem_check_getvalue(struct ucred *cred,struct ksem *ks);
192int mac_posixsem_check_getvalue(struct ucred *active_cred,
193 struct ucred *file_cred, struct ksem *ks);
193int mac_posixsem_check_open(struct ucred *cred, struct ksem *ks);
194int mac_posixsem_check_open(struct ucred *cred, struct ksem *ks);
194int mac_posixsem_check_post(struct ucred *cred, struct ksem *ks);
195int mac_posixsem_check_post(struct ucred *active_cred,
196 struct ucred *file_cred, struct ksem *ks);
197int mac_posixsem_check_stat(struct ucred *active_cred,
198 struct ucred *file_cred, struct ksem *ks);
195int mac_posixsem_check_unlink(struct ucred *cred, struct ksem *ks);
199int mac_posixsem_check_unlink(struct ucred *cred, struct ksem *ks);
196int mac_posixsem_check_wait(struct ucred *cred, struct ksem *ks);
200int mac_posixsem_check_wait(struct ucred *active_cred,
201 struct ucred *file_cred, struct ksem *ks);
197void mac_posixsem_create(struct ucred *cred, struct ksem *ks);
198void mac_posixsem_destroy(struct ksem *);
199void mac_posixsem_init(struct ksem *);
200
201int mac_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd,
202 int prot, int flags);
203int mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd);
204int mac_posixshm_check_stat(struct ucred *active_cred,

--- 229 unchanged lines hidden ---
202void mac_posixsem_create(struct ucred *cred, struct ksem *ks);
203void mac_posixsem_destroy(struct ksem *);
204void mac_posixsem_init(struct ksem *);
205
206int mac_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd,
207 int prot, int flags);
208int mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd);
209int mac_posixshm_check_stat(struct ucred *active_cred,

--- 229 unchanged lines hidden ---