Deleted Added
full compact
mac_none.c (106469) mac_none.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_none/mac_none.c 106469 2002-11-05 17:52:42Z rwatson $
34 * $FreeBSD: head/sys/security/mac_none/mac_none.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>

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

412mac_none_create_cred(struct ucred *cred_parent, struct ucred *cred_child)
413{
414
415}
416
417static void
418mac_none_execve_transition(struct ucred *old, struct ucred *new,
419 struct vnode *vp, struct label *vnodelabel,
35 */
36
37/*
38 * Developed by the TrustedBSD Project.
39 * Generic mandatory access module that does nothing.
40 */
41
42#include <sys/types.h>

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

412mac_none_create_cred(struct ucred *cred_parent, struct ucred *cred_child)
413{
414
415}
416
417static void
418mac_none_execve_transition(struct ucred *old, struct ucred *new,
419 struct vnode *vp, struct label *vnodelabel,
420 struct label *interpvnodelabel, struct image_params *imgp)
420 struct label *interpvnodelabel, struct image_params *imgp,
421 struct label *execlabel)
421{
422
423}
424
425static int
426mac_none_execve_will_transition(struct ucred *old, struct vnode *vp,
427 struct label *vnodelabel, struct label *interpvnodelabel,
422{
423
424}
425
426static int
427mac_none_execve_will_transition(struct ucred *old, struct vnode *vp,
428 struct label *vnodelabel, struct label *interpvnodelabel,
428 struct image_params *imgp)
429 struct image_params *imgp, struct label *execlabel)
429{
430
431 return (0);
432}
433
434static void
435mac_none_create_proc0(struct ucred *cred)
436{

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

684 struct label *label, acl_type_t type)
685{
686
687 return (0);
688}
689
690static int
691mac_none_check_vnode_exec(struct ucred *cred, struct vnode *vp,
430{
431
432 return (0);
433}
434
435static void
436mac_none_create_proc0(struct ucred *cred)
437{

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

685 struct label *label, acl_type_t type)
686{
687
688 return (0);
689}
690
691static int
692mac_none_check_vnode_exec(struct ucred *cred, struct vnode *vp,
692 struct label *label, struct image_params *imgp)
693 struct label *label, struct image_params *imgp,
694 struct label *execlabel)
693{
694
695 return (0);
696}
697
698static int
699mac_none_check_vnode_getacl(struct ucred *cred, struct vnode *vp,
700 struct label *label, acl_type_t type)

--- 324 unchanged lines hidden ---
695{
696
697 return (0);
698}
699
700static int
701mac_none_check_vnode_getacl(struct ucred *cred, struct vnode *vp,
702 struct label *label, acl_type_t type)

--- 324 unchanged lines hidden ---