17bc82500SRobert Watson /*- 27bc82500SRobert Watson * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 37bc82500SRobert Watson * Copyright (c) 2001 Ilmar S. Habibulin 47bc82500SRobert Watson * Copyright (c) 2001, 2002 Networks Associates Technology, Inc. 57bc82500SRobert Watson * All rights reserved. 67bc82500SRobert Watson * 77bc82500SRobert Watson * This software was developed by Robert Watson and Ilmar Habibulin for the 87bc82500SRobert Watson * TrustedBSD Project. 97bc82500SRobert Watson * 107bc82500SRobert Watson * This software was developed for the FreeBSD Project in part by NAI Labs, 117bc82500SRobert Watson * the Security Research Division of Network Associates, Inc. under 127bc82500SRobert Watson * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA 137bc82500SRobert Watson * CHATS research program. 147bc82500SRobert Watson * 157bc82500SRobert Watson * Redistribution and use in source and binary forms, with or without 167bc82500SRobert Watson * modification, are permitted provided that the following conditions 177bc82500SRobert Watson * are met: 187bc82500SRobert Watson * 1. Redistributions of source code must retain the above copyright 197bc82500SRobert Watson * notice, this list of conditions and the following disclaimer. 207bc82500SRobert Watson * 2. Redistributions in binary form must reproduce the above copyright 217bc82500SRobert Watson * notice, this list of conditions and the following disclaimer in the 227bc82500SRobert Watson * documentation and/or other materials provided with the distribution. 237bc82500SRobert Watson * 3. The names of the authors may not be used to endorse or promote 247bc82500SRobert Watson * products derived from this software without specific prior written 257bc82500SRobert Watson * permission. 267bc82500SRobert Watson * 277bc82500SRobert Watson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 287bc82500SRobert Watson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 297bc82500SRobert Watson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 307bc82500SRobert Watson * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 317bc82500SRobert Watson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 327bc82500SRobert Watson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 337bc82500SRobert Watson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 347bc82500SRobert Watson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 357bc82500SRobert Watson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 367bc82500SRobert Watson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 377bc82500SRobert Watson * SUCH DAMAGE. 387bc82500SRobert Watson * 397bc82500SRobert Watson * $FreeBSD$ 407bc82500SRobert Watson */ 417bc82500SRobert Watson /* 427bc82500SRobert Watson * Developed by the TrustedBSD Project. 437bc82500SRobert Watson * 447bc82500SRobert Watson * Framework for extensible kernel access control. Kernel and userland 457bc82500SRobert Watson * interface to the framework, policy registration and composition. 467bc82500SRobert Watson */ 477bc82500SRobert Watson 487bc82500SRobert Watson #include "opt_mac.h" 497bc82500SRobert Watson #include <sys/param.h> 507bc82500SRobert Watson #include <sys/sysproto.h> 517bc82500SRobert Watson #include <sys/sysent.h> 527bc82500SRobert Watson 537bc82500SRobert Watson int 547bc82500SRobert Watson __mac_get_proc(struct thread *td, struct __mac_get_proc_args *uap) 557bc82500SRobert Watson { 567bc82500SRobert Watson 577bc82500SRobert Watson return (ENOSYS); 587bc82500SRobert Watson } 597bc82500SRobert Watson 607bc82500SRobert Watson int 617bc82500SRobert Watson __mac_set_proc(struct thread *td, struct __mac_set_proc_args *uap) 627bc82500SRobert Watson { 637bc82500SRobert Watson 647bc82500SRobert Watson return (ENOSYS); 657bc82500SRobert Watson } 667bc82500SRobert Watson 677bc82500SRobert Watson int 687bc82500SRobert Watson __mac_get_fd(struct thread *td, struct __mac_get_fd_args *uap) 697bc82500SRobert Watson { 707bc82500SRobert Watson 717bc82500SRobert Watson return (ENOSYS); 727bc82500SRobert Watson } 737bc82500SRobert Watson 747bc82500SRobert Watson int 757bc82500SRobert Watson __mac_get_file(struct thread *td, struct __mac_get_file_args *uap) 767bc82500SRobert Watson { 777bc82500SRobert Watson 787bc82500SRobert Watson return (ENOSYS); 797bc82500SRobert Watson } 807bc82500SRobert Watson 817bc82500SRobert Watson int 827bc82500SRobert Watson __mac_set_fd(struct thread *td, struct __mac_set_fd_args *uap) 837bc82500SRobert Watson { 847bc82500SRobert Watson 857bc82500SRobert Watson return (ENOSYS); 867bc82500SRobert Watson } 877bc82500SRobert Watson 887bc82500SRobert Watson int 897bc82500SRobert Watson __mac_set_file(struct thread *td, struct __mac_set_file_args *uap) 907bc82500SRobert Watson { 917bc82500SRobert Watson 927bc82500SRobert Watson return (ENOSYS); 937bc82500SRobert Watson } 94