1/*- 2 * Copyright (c) 1999, 2000, 2001, 2002 Robert N. M. Watson 3 * Copyright (c) 2001 Ilmar S. Habibulin 4 * Copyright (c) 2001, 2002 Networks Associates Technology, Inc. 5 * All rights reserved. 6 * 7 * This software was developed by Robert Watson and Ilmar Habibulin for the 8 * TrustedBSD Project. --- 22 unchanged lines hidden (view full) --- 31 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * |
39 * $FreeBSD: head/sys/security/mac/mac_vfs.c 104533 2002-10-05 18:40:10Z rwatson $ |
40 */ 41/* 42 * Developed by the TrustedBSD Project. 43 * 44 * Framework for extensible kernel access control. Kernel and userland 45 * interface to the framework, policy registration and composition. 46 */ 47 --- 466 unchanged lines hidden (view full) --- 514 case MAC_CREATE_DEVFS_DEVICE: 515 mpc->mpc_ops->mpo_create_devfs_device = 516 mpe->mpe_function; 517 break; 518 case MAC_CREATE_DEVFS_DIRECTORY: 519 mpc->mpc_ops->mpo_create_devfs_directory = 520 mpe->mpe_function; 521 break; |
522 case MAC_CREATE_DEVFS_SYMLINK: 523 mpc->mpc_ops->mpo_create_devfs_symlink = 524 mpe->mpe_function; 525 break; |
526 case MAC_CREATE_DEVFS_VNODE: 527 mpc->mpc_ops->mpo_create_devfs_vnode = 528 mpe->mpe_function; 529 break; 530 case MAC_STDCREATEVNODE_EA: 531 mpc->mpc_ops->mpo_stdcreatevnode_ea = 532 mpe->mpe_function; 533 break; --- 2411 unchanged lines hidden (view full) --- 2945 2946void 2947mac_create_devfs_device(dev_t dev, struct devfs_dirent *de) 2948{ 2949 2950 MAC_PERFORM(create_devfs_device, dev, de, &de->de_label); 2951} 2952 |
2953void 2954mac_create_devfs_symlink(struct ucred *cred, struct devfs_dirent *dd, 2955 struct devfs_dirent *de) 2956{ 2957 2958 MAC_PERFORM(create_devfs_symlink, cred, dd, &dd->de_label, de, 2959 &de->de_label); 2960} 2961 |
2962static int 2963mac_stdcreatevnode_ea(struct vnode *vp) 2964{ 2965 int error; 2966 2967 MAC_CHECK(stdcreatevnode_ea, vp, &vp->v_label); 2968 2969 return (error); --- 506 unchanged lines hidden --- |