mac_framework.h (104541) | mac_framework.h (104546) |
---|---|
1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001, 2002 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 NAI Labs, --- 20 unchanged lines hidden (view full) --- 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * | 1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001, 2002 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 NAI Labs, --- 20 unchanged lines hidden (view full) --- 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * |
37 * $FreeBSD: head/sys/security/mac/mac_framework.h 104541 2002-10-05 21:23:47Z rwatson $ | 37 * $FreeBSD: head/sys/security/mac/mac_framework.h 104546 2002-10-06 02:46:26Z rwatson $ |
38 */ 39/* 40 * Userland/kernel interface for Mandatory Access Control. 41 * 42 * The POSIX.1e implementation page may be reached at: 43 * http://www.trustedbsd.org/ 44 */ 45#ifndef _SYS_MAC_H --- 288 unchanged lines hidden (view full) --- 334int mac_check_vnode_getacl(struct ucred *cred, struct vnode *vp, 335 acl_type_t type); 336int mac_check_vnode_getextattr(struct ucred *cred, struct vnode *vp, 337 int attrnamespace, const char *name, struct uio *uio); 338int mac_check_vnode_link(struct ucred *cred, struct vnode *dvp, 339 struct vnode *vp, struct componentname *cnp); 340int mac_check_vnode_lookup(struct ucred *cred, struct vnode *dvp, 341 struct componentname *cnp); | 38 */ 39/* 40 * Userland/kernel interface for Mandatory Access Control. 41 * 42 * The POSIX.1e implementation page may be reached at: 43 * http://www.trustedbsd.org/ 44 */ 45#ifndef _SYS_MAC_H --- 288 unchanged lines hidden (view full) --- 334int mac_check_vnode_getacl(struct ucred *cred, struct vnode *vp, 335 acl_type_t type); 336int mac_check_vnode_getextattr(struct ucred *cred, struct vnode *vp, 337 int attrnamespace, const char *name, struct uio *uio); 338int mac_check_vnode_link(struct ucred *cred, struct vnode *dvp, 339 struct vnode *vp, struct componentname *cnp); 340int mac_check_vnode_lookup(struct ucred *cred, struct vnode *dvp, 341 struct componentname *cnp); |
342/* XXX This u_char should be vm_prot_t! */ 343u_char mac_check_vnode_mmap_prot(struct ucred *cred, struct vnode *vp, 344 int newmapping); | 342int mac_check_vnode_mmap(struct ucred *cred, struct vnode *vp, 343 int prot); 344int mac_check_vnode_mprotect(struct ucred *cred, struct vnode *vp, 345 int prot); |
345int mac_check_vnode_open(struct ucred *cred, struct vnode *vp, 346 mode_t acc_mode); 347int mac_check_vnode_poll(struct ucred *active_cred, 348 struct ucred *file_cred, struct vnode *vp); 349int mac_check_vnode_read(struct ucred *active_cred, 350 struct ucred *file_cred, struct vnode *vp); 351int mac_check_vnode_readdir(struct ucred *cred, struct vnode *vp); 352int mac_check_vnode_readlink(struct ucred *cred, struct vnode *vp); --- 46 unchanged lines hidden --- | 346int mac_check_vnode_open(struct ucred *cred, struct vnode *vp, 347 mode_t acc_mode); 348int mac_check_vnode_poll(struct ucred *active_cred, 349 struct ucred *file_cred, struct vnode *vp); 350int mac_check_vnode_read(struct ucred *active_cred, 351 struct ucred *file_cred, struct vnode *vp); 352int mac_check_vnode_readdir(struct ucred *cred, struct vnode *vp); 353int mac_check_vnode_readlink(struct ucred *cred, struct vnode *vp); --- 46 unchanged lines hidden --- |