mac_set.c (105698) | mac_set.c (111618) |
---|---|
1/* 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * | 1/* 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * All rights reserved. 4 * 5 * This software was developed by Robert Watson for the TrustedBSD Project. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 14 unchanged lines hidden (view full) --- 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * SUCH DAMAGE. 30 * |
31 * $FreeBSD: head/lib/libc/posix1e/mac_set.c 105698 2002-10-22 14:36:11Z rwatson $ | 31 * $FreeBSD: head/lib/libc/posix1e/mac_set.c 111618 2003-02-27 13:40:01Z nectar $ |
32 */ 33 34#include <sys/types.h> 35#include <sys/mac.h> 36 | 32 */ 33 34#include <sys/types.h> 35#include <sys/mac.h> 36 |
37extern int __mac_set_fd(int fd, struct mac *mac_p); 38extern int __mac_set_file(const char *path_p, struct mac *mac_p); 39extern int __mac_set_link(const char *path_p, struct mac *mac_p); 40extern int __mac_set_proc(struct mac *mac_p); 41 |
|
37int 38mac_set_fd(int fd, struct mac *label) 39{ 40 41 return (__mac_set_fd(fd, label)); 42} 43 44int --- 19 unchanged lines hidden --- | 42int 43mac_set_fd(int fd, struct mac *label) 44{ 45 46 return (__mac_set_fd(fd, label)); 47} 48 49int --- 19 unchanged lines hidden --- |