[BACK]Return to capability.h CVS log [TXT][DIR] Up to [local] / prex-old / include / prex

Annotation of prex-old/include/prex/capability.h, Revision 1.1

1.1     ! nbrk        1: /*
        !             2:  * Copyright (c) 2007, Kohsuke Ohtani
        !             3:  * All rights reserved.
        !             4:  *
        !             5:  * Redistribution and use in source and binary forms, with or without
        !             6:  * modification, are permitted provided that the following conditions
        !             7:  * are met:
        !             8:  * 1. Redistributions of source code must retain the above copyright
        !             9:  *    notice, this list of conditions and the following disclaimer.
        !            10:  * 2. Redistributions in binary form must reproduce the above copyright
        !            11:  *    notice, this list of conditions and the following disclaimer in the
        !            12:  *    documentation and/or other materials provided with the distribution.
        !            13:  * 3. Neither the name of the author nor the names of any co-contributors
        !            14:  *    may be used to endorse or promote products derived from this software
        !            15:  *    without specific prior written permission.
        !            16:  *
        !            17:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
        !            18:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
        !            19:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
        !            20:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
        !            21:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
        !            22:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
        !            23:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
        !            24:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
        !            25:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
        !            26:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
        !            27:  * SUCH DAMAGE.
        !            28:  */
        !            29:
        !            30: #ifndef _PREX_CAPABILITY_H
        !            31: #define _PREX_CAPABILITY_H
        !            32:
        !            33: /*
        !            34:  * Task capabilities
        !            35:  *
        !            36:  * Bit 0:  Allow setting capability
        !            37:  * Bit 1:  Allow controlling another task's execution
        !            38:  * Bit 2:  Allow touching another task's memory
        !            39:  * Bit 3:  Allow raising exception to another task
        !            40:  * Bit 4:  Allow accessing another task's semaphore
        !            41:  * Bit 5:  Allow changing scheduling parameter
        !            42:  * Bit 6:  Allow accessing another task's IPC object
        !            43:  * Bit 7:  Allow device I/O operation
        !            44:  * Bit 8:  Allow power control including shutdown
        !            45:  * Bit 9:  Allow setting system time
        !            46:  * Bit 10: Allow direct I/O access
        !            47:  * Bit 11: Allow debugging requests
        !            48:  *
        !            49:  * Bit 16: Allow mount,umount,sethostname,setdomainname,etc
        !            50:  * Bit 17: Allow executing any file
        !            51:  * Bit 18: Allow reading any file
        !            52:  * Bit 19: Allow writing any file
        !            53:  */
        !            54: #define CAP_SETPCAP    0x00000001
        !            55: #define CAP_TASK       0x00000002
        !            56: #define CAP_MEMORY     0x00000004
        !            57: #define CAP_KILL       0x00000008
        !            58: #define CAP_SEMAPHORE  0x00000010
        !            59: #define CAP_NICE       0x00000020
        !            60: #define CAP_IPC                0x00000040
        !            61: #define CAP_DEVIO      0x00000080
        !            62: #define CAP_POWER      0x00000100
        !            63: #define CAP_TIME       0x00000200
        !            64: #define CAP_RAWIO      0x00000400
        !            65: #define CAP_DEBUG      0x00000800
        !            66:
        !            67: #define CAP_ADMIN      0x00010000
        !            68: #define CAP_EXEC       0x00020000
        !            69: #define CAP_FS_READ    0x00040000
        !            70: #define CAP_FS_WRITE   0x00080000
        !            71:
        !            72: #endif /* !_PREX_CAPABILITY_H */

CVSweb