[BACK]Return to linux_mount.c CVS log [TXT][DIR] Up to [local] / sys / compat / linux

Annotation of sys/compat/linux/linux_mount.c, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: linux_mount.c,v 1.4 1996/10/16 12:25:26 deraadt Exp $ */
        !             2:
        !             3: /*
        !             4:  * Copyright (c) 1996 Erik Theisen
        !             5:  * All rights reserved.
        !             6:  *
        !             7:  * Redistribution and use in source and binary forms, with or without
        !             8:  * modification, are permitted provided that the following conditions
        !             9:  * are met:
        !            10:  * 1. Redistributions of source code must retain the above copyright
        !            11:  *    notice, this list of conditions and the following disclaimer.
        !            12:  * 2. Redistributions in binary form must reproduce the above copyright
        !            13:  *    notice, this list of conditions and the following disclaimer in the
        !            14:  *    documentation and/or other materials provided with the distribution.
        !            15:  * 3. The name of the author may not be used to endorse or promote products
        !            16:  *    derived from this software without specific prior written permission
        !            17:  *
        !            18:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            19:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
        !            20:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
        !            21:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
        !            22:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
        !            23:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            24:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            25:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !            26:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
        !            27:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !            28:  */
        !            29: #include <sys/param.h>
        !            30: #include <sys/kernel.h>
        !            31: #include <sys/systm.h>
        !            32: #include <sys/buf.h>
        !            33: #include <sys/malloc.h>
        !            34: #include <sys/ioctl.h>
        !            35: #include <sys/tty.h>
        !            36: #include <sys/file.h>
        !            37: #include <sys/mount.h>
        !            38: #include <sys/filedesc.h>
        !            39:
        !            40: #include <sys/syscallargs.h>
        !            41:
        !            42: #include <compat/linux/linux_types.h>
        !            43: #include <compat/linux/linux_errno.h>
        !            44: #include <compat/linux/linux_signal.h>
        !            45: #include <compat/linux/linux_syscallargs.h>
        !            46:
        !            47: /*
        !            48:  * These are just dummy mount/umount functions
        !            49:  * who's purpose is to satisfy brain dead code
        !            50:  * that bindly calls mount().  They always
        !            51:  * return EPERM.
        !            52:  *
        !            53:  * You really shouldn't be running code via
        !            54:  * emulation that mounts FSs.
        !            55:  */
        !            56: int
        !            57: linux_sys_mount(p, v, retval)
        !            58:        struct proc *p;
        !            59:        void *v;
        !            60:        register_t *retval;
        !            61: {
        !            62:        struct linux_sys_mount_args /* {
        !            63:                syscallarg(char *) specialfile;
        !            64:                syscallarg(char *) dir;
        !            65:                syscallarg(char *) filesystemtype;
        !            66:                syscallarg(long) rwflag;
        !            67:                syscallarg(void *) data;
        !            68:        } *uap = v */ ;
        !            69:         return EPERM;
        !            70: }
        !            71:
        !            72: int
        !            73: linux_sys_umount(p, v, retval)
        !            74:        struct proc *p;
        !            75:        void *v;
        !            76:        register_t *retval;
        !            77: {
        !            78:        struct linux_sys_umount_args /* {
        !            79:                syscallarg(char *) specialfile;
        !            80:        } *uap = v */ ;
        !            81:         return EPERM;
        !            82: }

CVSweb