ugidfw.c (101885) | ugidfw.c (104038) |
---|---|
1/*- 2 * Copyright (c) 2002 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by NAI Labs, the 6 * Security Research Division of Network Associates, Inc. under 7 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA 8 * CHATS research program. --- 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) 2002 Networks Associates Technology, Inc. 3 * All rights reserved. 4 * 5 * This software was developed for the FreeBSD Project by NAI Labs, the 6 * Security Research Division of Network Associates, Inc. under 7 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA 8 * CHATS research program. --- 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/lib/libugidfw/ugidfw.c 101885 2002-08-14 22:30:07Z rwatson $ | 34 * $FreeBSD: head/lib/libugidfw/ugidfw.c 104038 2002-09-27 16:35:19Z rwatson $ |
35 */ 36#include <sys/param.h> 37#include <sys/errno.h> 38#include <sys/time.h> 39#include <sys/sysctl.h> 40#include <sys/vnode.h> 41 42#include <security/mac_bsdextended/mac_bsdextended.h> --- 505 unchanged lines hidden (view full) --- 548 error = bsde_parse_rule(argc, argv, rule, buflen, errstr); 549 550 free(stringdup); 551 552 return (error); 553} 554 555int | 35 */ 36#include <sys/param.h> 37#include <sys/errno.h> 38#include <sys/time.h> 39#include <sys/sysctl.h> 40#include <sys/vnode.h> 41 42#include <security/mac_bsdextended/mac_bsdextended.h> --- 505 unchanged lines hidden (view full) --- 548 error = bsde_parse_rule(argc, argv, rule, buflen, errstr); 549 550 free(stringdup); 551 552 return (error); 553} 554 555int |
556bsde_get_mib(const char *string, int *name, int *namelen) | 556bsde_get_mib(const char *string, int *name, size_t *namelen) |
557{ | 557{ |
558 int error, len; | 558 size_t len; 559 int error; |
559 560 len = *namelen; 561 error = sysctlnametomib(string, name, &len); 562 if (error) 563 return (error); 564 565 *namelen = len; 566 return (0); --- 146 unchanged lines hidden --- | 560 561 len = *namelen; 562 error = sysctlnametomib(string, name, &len); 563 if (error) 564 return (error); 565 566 *namelen = len; 567 return (0); --- 146 unchanged lines hidden --- |