mac_framework.h (173108) | mac_framework.h (175164) |
---|---|
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 173108 2007-10-28 17:55:57Z rwatson $ | 38 * $FreeBSD: head/sys/security/mac/mac_framework.h 175164 2008-01-08 21:58:16Z 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 _SYS_SECURITY_MAC_MAC_FRAMEWORK_H_ --- 19 unchanged lines hidden (view full) --- 66struct m_tag; 67struct mac; 68struct mbuf; 69struct mount; 70struct msg; 71struct msqid_kernel; 72struct proc; 73struct semid_kernel; | 39 */ 40 41/* 42 * Kernel interface for Mandatory Access Control -- how kernel services 43 * interact with the TrustedBSD MAC Framework. 44 */ 45 46#ifndef _SYS_SECURITY_MAC_MAC_FRAMEWORK_H_ --- 19 unchanged lines hidden (view full) --- 66struct m_tag; 67struct mac; 68struct mbuf; 69struct mount; 70struct msg; 71struct msqid_kernel; 72struct proc; 73struct semid_kernel; |
74struct shmfd; |
|
74struct shmid_kernel; 75struct sockaddr; 76struct socket; 77struct sysctl_oid; 78struct sysctl_req; 79struct pipepair; 80struct thread; 81struct timespec; --- 111 unchanged lines hidden (view full) --- 193int 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_unlink(struct ucred *cred, struct ksem *ks); 196int mac_posixsem_check_wait(struct ucred *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 | 75struct shmid_kernel; 76struct sockaddr; 77struct socket; 78struct sysctl_oid; 79struct sysctl_req; 80struct pipepair; 81struct thread; 82struct timespec; --- 111 unchanged lines hidden (view full) --- 194int mac_posixsem_check_open(struct ucred *cred, struct ksem *ks); 195int mac_posixsem_check_post(struct ucred *cred, struct ksem *ks); 196int mac_posixsem_check_unlink(struct ucred *cred, struct ksem *ks); 197int mac_posixsem_check_wait(struct ucred *cred, struct ksem *ks); 198void mac_posixsem_create(struct ucred *cred, struct ksem *ks); 199void mac_posixsem_destroy(struct ksem *); 200void mac_posixsem_init(struct ksem *); 201 |
202int mac_posixshm_check_mmap(struct ucred *cred, struct shmfd *shmfd, 203 int prot, int flags); 204int mac_posixshm_check_open(struct ucred *cred, struct shmfd *shmfd); 205int mac_posixshm_check_stat(struct ucred *active_cred, 206 struct ucred *file_cred, struct shmfd *shmfd); 207int mac_posixshm_check_truncate(struct ucred *active_cred, 208 struct ucred *file_cred, struct shmfd *shmfd); 209int mac_posixshm_check_unlink(struct ucred *cred, struct shmfd *shmfd); 210void mac_posixshm_create(struct ucred *cred, struct shmfd *shmfd); 211void mac_posixshm_destroy(struct shmfd *); 212void mac_posixshm_init(struct shmfd *); 213 |
|
201int mac_priv_check(struct ucred *cred, int priv); 202int mac_priv_grant(struct ucred *cred, int priv); 203 204void mac_proc_associate_nfsd(struct ucred *cred); 205int mac_proc_check_debug(struct ucred *cred, struct proc *p); 206int mac_proc_check_sched(struct ucred *cred, struct proc *p); 207int mac_proc_check_setaudit(struct ucred *cred, struct auditinfo *ai); 208int mac_proc_check_setaudit_addr(struct ucred *cred, --- 213 unchanged lines hidden --- | 214int mac_priv_check(struct ucred *cred, int priv); 215int mac_priv_grant(struct ucred *cred, int priv); 216 217void mac_proc_associate_nfsd(struct ucred *cred); 218int mac_proc_check_debug(struct ucred *cred, struct proc *p); 219int mac_proc_check_sched(struct ucred *cred, struct proc *p); 220int mac_proc_check_setaudit(struct ucred *cred, struct auditinfo *ai); 221int mac_proc_check_setaudit_addr(struct ucred *cred, --- 213 unchanged lines hidden --- |