Deleted Added
full compact
mac_test.c (106469) mac_test.c (106648)
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 Network

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

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
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 Network

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

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * $FreeBSD: head/sys/security/mac_test/mac_test.c 106469 2002-11-05 17:52:42Z rwatson $
34 * $FreeBSD: head/sys/security/mac_test/mac_test.c 106648 2002-11-08 18:04:36Z rwatson $
35 */
36
37/*
38 * Developed by the TrustedBSD Project.
39 * Generic mandatory access module that does nothing.
40 */
41
42#include <sys/types.h>

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

762mac_test_create_cred(struct ucred *cred_parent, struct ucred *cred_child)
763{
764
765}
766
767static void
768mac_test_execve_transition(struct ucred *old, struct ucred *new,
769 struct vnode *vp, struct label *filelabel,
35 */
36
37/*
38 * Developed by the TrustedBSD Project.
39 * Generic mandatory access module that does nothing.
40 */
41
42#include <sys/types.h>

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

762mac_test_create_cred(struct ucred *cred_parent, struct ucred *cred_child)
763{
764
765}
766
767static void
768mac_test_execve_transition(struct ucred *old, struct ucred *new,
769 struct vnode *vp, struct label *filelabel,
770 struct label *interpvnodelabel, struct image_params *imgp)
770 struct label *interpvnodelabel, struct image_params *imgp,
771 struct label *execlabel)
771{
772
773}
774
775static int
776mac_test_execve_will_transition(struct ucred *old, struct vnode *vp,
777 struct label *filelabel, struct label *interpvnodelabel,
772{
773
774}
775
776static int
777mac_test_execve_will_transition(struct ucred *old, struct vnode *vp,
778 struct label *filelabel, struct label *interpvnodelabel,
778 struct image_params *imgp)
779 struct image_params *imgp, struct label *execlabel)
779{
780
781 return (0);
782}
783
784static void
785mac_test_create_proc0(struct ucred *cred)
786{

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

1011 struct label *label, acl_type_t type)
1012{
1013
1014 return (0);
1015}
1016
1017static int
1018mac_test_check_vnode_exec(struct ucred *cred, struct vnode *vp,
780{
781
782 return (0);
783}
784
785static void
786mac_test_create_proc0(struct ucred *cred)
787{

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

1012 struct label *label, acl_type_t type)
1013{
1014
1015 return (0);
1016}
1017
1018static int
1019mac_test_check_vnode_exec(struct ucred *cred, struct vnode *vp,
1019 struct label *label, struct image_params *imgp)
1020 struct label *label, struct image_params *imgp,
1021 struct label *execlabel)
1020{
1021
1022 return (0);
1023}
1024
1025static int
1026mac_test_check_vnode_getacl(struct ucred *cred, struct vnode *vp,
1027 struct label *label, acl_type_t type)

--- 320 unchanged lines hidden ---
1022{
1023
1024 return (0);
1025}
1026
1027static int
1028mac_test_check_vnode_getacl(struct ucred *cred, struct vnode *vp,
1029 struct label *label, acl_type_t type)

--- 320 unchanged lines hidden ---