ugidfw_vnode.c (166843) | ugidfw_vnode.c (166905) |
---|---|
1/*- 2 * Copyright (c) 2005 Tom Rhodes | 1/*- 2 * Copyright (c) 2005 Tom Rhodes |
3 * Copyright (c) 1999-2002 Robert N. M. Watson | 3 * Copyright (c) 1999-2002, 2007 Robert N. M. Watson |
4 * Copyright (c) 2001-2005 Networks Associates Technology, Inc. 5 * All rights reserved. 6 * 7 * This software was developed by Robert Watson for the TrustedBSD Project. 8 * It was later enhanced by Tom Rhodes for the TrustedBSD Project. 9 * 10 * This software was developed for the FreeBSD Project in part by Network 11 * Associates Laboratories, the Security Research Division of Network --- 16 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * | 4 * Copyright (c) 2001-2005 Networks Associates Technology, Inc. 5 * All rights reserved. 6 * 7 * This software was developed by Robert Watson for the TrustedBSD Project. 8 * It was later enhanced by Tom Rhodes for the TrustedBSD Project. 9 * 10 * This software was developed for the FreeBSD Project in part by Network 11 * Associates Laboratories, the Security Research Division of Network --- 16 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * |
36 * $FreeBSD: head/sys/security/mac_bsdextended/mac_bsdextended.c 166843 2007-02-20 10:21:27Z rwatson $ | 36 * $FreeBSD: head/sys/security/mac_bsdextended/mac_bsdextended.c 166905 2007-02-23 14:39:04Z rwatson $ |
37 */ 38 39/* 40 * Developed by the TrustedBSD Project. 41 * "BSD Extended" MAC policy, allowing the administrator to impose 42 * mandatory rules regarding users and some system objects. 43 */ 44 | 37 */ 38 39/* 40 * Developed by the TrustedBSD Project. 41 * "BSD Extended" MAC policy, allowing the administrator to impose 42 * mandatory rules regarding users and some system objects. 43 */ 44 |
45#include <sys/types.h> | |
46#include <sys/param.h> 47#include <sys/acl.h> | 45#include <sys/param.h> 46#include <sys/acl.h> |
48#include <sys/conf.h> | |
49#include <sys/kernel.h> 50#include <sys/jail.h> 51#include <sys/lock.h> 52#include <sys/malloc.h> | 47#include <sys/kernel.h> 48#include <sys/jail.h> 49#include <sys/lock.h> 50#include <sys/malloc.h> |
51#include <sys/module.h> |
|
53#include <sys/mount.h> 54#include <sys/mutex.h> | 52#include <sys/mount.h> 53#include <sys/mutex.h> |
55#include <sys/proc.h> | |
56#include <sys/systm.h> | 54#include <sys/systm.h> |
57#include <sys/sysproto.h> 58#include <sys/sysent.h> | |
59#include <sys/vnode.h> | 55#include <sys/vnode.h> |
60#include <sys/file.h> 61#include <sys/socket.h> 62#include <sys/socketvar.h> | |
63#include <sys/sysctl.h> 64#include <sys/syslog.h> | 56#include <sys/sysctl.h> 57#include <sys/syslog.h> |
65#include <sys/ucred.h> | |
66 | 58 |
67#include <net/bpfdesc.h> 68#include <net/if.h> 69#include <net/if_types.h> 70#include <net/if_var.h> 71 72#include <vm/vm.h> 73 | |
74#include <security/mac/mac_policy.h> 75#include <security/mac_bsdextended/mac_bsdextended.h> 76 77static struct mtx mac_bsdextended_mtx; 78 79SYSCTL_DECL(_security_mac); 80 81SYSCTL_NODE(_security_mac, OID_AUTO, bsdextended, CTLFLAG_RW, 0, --- 706 unchanged lines hidden --- | 59#include <security/mac/mac_policy.h> 60#include <security/mac_bsdextended/mac_bsdextended.h> 61 62static struct mtx mac_bsdextended_mtx; 63 64SYSCTL_DECL(_security_mac); 65 66SYSCTL_NODE(_security_mac, OID_AUTO, bsdextended, CTLFLAG_RW, 0, --- 706 unchanged lines hidden --- |