mac_test.c (102115) | mac_test.c (102129) |
---|---|
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_test/mac_test.c 102115 2002-08-19 16:59:37Z rwatson $ | 37 * $FreeBSD: head/sys/security/mac_test/mac_test.c 102129 2002-08-19 19:04:53Z rwatson $ |
38 */ 39 40/* 41 * Developed by the TrustedBSD Project. 42 * Generic mandatory access module that does nothing. 43 */ 44 45#include <sys/types.h> --- 956 unchanged lines hidden (view full) --- 1002mac_test_check_vnode_open(struct ucred *cred, struct vnode *vp, 1003 struct label *filelabel, mode_t acc_mode) 1004{ 1005 1006 return (0); 1007} 1008 1009static int | 38 */ 39 40/* 41 * Developed by the TrustedBSD Project. 42 * Generic mandatory access module that does nothing. 43 */ 44 45#include <sys/types.h> --- 956 unchanged lines hidden (view full) --- 1002mac_test_check_vnode_open(struct ucred *cred, struct vnode *vp, 1003 struct label *filelabel, mode_t acc_mode) 1004{ 1005 1006 return (0); 1007} 1008 1009static int |
1010mac_test_check_vnode_poll(struct ucred *cred, struct vnode *vp, 1011 struct label *label) | 1010mac_test_check_vnode_poll(struct ucred *active_cred, struct ucred *file_cred, 1011 struct vnode *vp, struct label *label) |
1012{ 1013 1014 return (0); 1015} 1016 1017static int | 1012{ 1013 1014 return (0); 1015} 1016 1017static int |
1018mac_test_check_vnode_read(struct ucred *cred, struct vnode *vp, 1019 struct label *label) | 1018mac_test_check_vnode_read(struct ucred *active_cred, struct ucred *file_cred, 1019 struct vnode *vp, struct label *label) |
1020{ 1021 1022 return (0); 1023} 1024 1025static int 1026mac_test_check_vnode_readdir(struct ucred *cred, struct vnode *dvp, 1027 struct label *dlabel) --- 88 unchanged lines hidden (view full) --- 1116mac_test_check_vnode_setutimes(struct ucred *cred, struct vnode *vp, 1117 struct label *label, struct timespec atime, struct timespec mtime) 1118{ 1119 1120 return (0); 1121} 1122 1123static int | 1020{ 1021 1022 return (0); 1023} 1024 1025static int 1026mac_test_check_vnode_readdir(struct ucred *cred, struct vnode *dvp, 1027 struct label *dlabel) --- 88 unchanged lines hidden (view full) --- 1116mac_test_check_vnode_setutimes(struct ucred *cred, struct vnode *vp, 1117 struct label *label, struct timespec atime, struct timespec mtime) 1118{ 1119 1120 return (0); 1121} 1122 1123static int |
1124mac_test_check_vnode_stat(struct ucred *cred, struct vnode *vp, 1125 struct label *label) | 1124mac_test_check_vnode_stat(struct ucred *active_cred, struct ucred *file_cred, 1125 struct vnode *vp, struct label *label) |
1126{ 1127 1128 return (0); 1129} 1130 1131static int | 1126{ 1127 1128 return (0); 1129} 1130 1131static int |
1132mac_test_check_vnode_write(struct ucred *cred, struct vnode *vp, 1133 struct label *label) | 1132mac_test_check_vnode_write(struct ucred *active_cred, 1133 struct ucred *file_cred, struct vnode *vp, struct label *label) |
1134{ 1135 1136 return (0); 1137} 1138 1139static struct mac_policy_op_entry mac_test_ops[] = 1140{ 1141 { MAC_DESTROY, --- 230 unchanged lines hidden --- | 1134{ 1135 1136 return (0); 1137} 1138 1139static struct mac_policy_op_entry mac_test_ops[] = 1140{ 1141 { MAC_DESTROY, --- 230 unchanged lines hidden --- |