mac_set.c revision 101242
197403Sobrien/* 297403Sobrien * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3169691Skan * All rights reserved. 497403Sobrien * 597403Sobrien * This software was developed by Robert Watson for the TrustedBSD Project. 697403Sobrien * 797403Sobrien * Redistribution and use in source and binary forms, with or without 897403Sobrien * modification, are permitted provided that the following conditions 997403Sobrien * are met: 1097403Sobrien * 1. Redistributions of source code must retain the above copyright 1197403Sobrien * notice, this list of conditions and the following disclaimer. 1297403Sobrien * 2. Redistributions in binary form must reproduce the above copyright 1397403Sobrien * notice, this list of conditions and the following disclaimer in the 1497403Sobrien * documentation and/or other materials provided with the distribution. 1597403Sobrien * 3. The names of the authors may not be used to endorse or promote 1697403Sobrien * products derived from this software without specific prior written 1797403Sobrien * permission. 18169691Skan * 1997403Sobrien * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2097403Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2197403Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2297403Sobrien * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2397403Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2497403Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2597403Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2697403Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2797403Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2897403Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2997403Sobrien * SUCH DAMAGE. 3097403Sobrien * 3197403Sobrien * $FreeBSD: head/lib/libc/posix1e/mac_set.c 101242 2002-08-02 21:14:42Z rwatson $ 3297403Sobrien */ 3397403Sobrien 3497403Sobrien#include <sys/types.h> 3597403Sobrien#include <sys/mac.h> 3697403Sobrien 3797403Sobrienint 3897403Sobrienmac_set_file(const char *path_p, mac_t label) 3997403Sobrien{ 4097403Sobrien 4197403Sobrien return (__mac_set_file(path_p, label)); 4297403Sobrien} 4397403Sobrien 4497403Sobrienint 4597403Sobrienmac_set_fd(int fd, mac_t label) 4697403Sobrien{ 4797403Sobrien 4897403Sobrien return (__mac_set_fd(fd, label)); 4997403Sobrien} 5097403Sobrien 5197403Sobrienint 5297403Sobrienmac_set_proc(mac_t label) 5397403Sobrien{ 5497403Sobrien 5597403Sobrien return (__mac_set_proc(label)); 5697403Sobrien} 5797403Sobrien