Home | History | Annotate | Download | only in src
      1 /* captab.h --
      2  * Copyright 2009,2011-12 Red Hat Inc., Durham, North Carolina.
      3  * All Rights Reserved.
      4  *
      5  * This library is free software; you can redistribute it and/or
      6  * modify it under the terms of the GNU Lesser General Public
      7  * License as published by the Free Software Foundation; either
      8  * version 2.1 of the License, or (at your option) any later version.
      9  *
     10  * This library is distributed in the hope that it will be useful,
     11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13  * Lesser General Public License for more details.
     14  *
     15  * You should have received a copy of the GNU Lesser General Public
     16  * License along with this library; if not, write to the Free Software
     17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     18  *
     19  * Authors:
     20  *      Steve Grubb <sgrubb (at) redhat.com>
     21  */
     22 
     23 _S(CAP_CHOWN,			"chown"			)
     24 _S(CAP_DAC_OVERRIDE,		"dac_override"		)
     25 _S(CAP_DAC_READ_SEARCH,		"dac_read_search"	)
     26 _S(CAP_FOWNER,			"fowner"		)
     27 _S(CAP_FSETID,			"fsetid"		)
     28 _S(CAP_KILL,			"kill"			)
     29 _S(CAP_SETGID,			"setgid"		)
     30 _S(CAP_SETUID,			"setuid"		)
     31 _S(CAP_SETPCAP,			"setpcap"		)
     32 _S(CAP_LINUX_IMMUTABLE,		"linux_immutable"	)
     33 _S(CAP_NET_BIND_SERVICE,	"net_bind_service"	)
     34 _S(CAP_NET_BROADCAST,		"net_broadcast"		)
     35 _S(CAP_NET_ADMIN,		"net_admin"		)
     36 _S(CAP_NET_RAW,			"net_raw"		)
     37 _S(CAP_IPC_LOCK,		"ipc_lock"		)
     38 _S(CAP_IPC_OWNER,		"ipc_owner"		)
     39 _S(CAP_SYS_MODULE,		"sys_module"		)
     40 _S(CAP_SYS_RAWIO,		"sys_rawio"		)
     41 _S(CAP_SYS_CHROOT,		"sys_chroot"		)
     42 _S(CAP_SYS_PTRACE,		"sys_ptrace"		)
     43 _S(CAP_SYS_PACCT,		"sys_psacct"		)
     44 _S(CAP_SYS_ADMIN,		"sys_admin"		)
     45 _S(CAP_SYS_BOOT,		"sys_boot"		)
     46 _S(CAP_SYS_NICE,		"sys_nice"		)
     47 _S(CAP_SYS_RESOURCE,		"sys_resource"		)
     48 _S(CAP_SYS_TIME,		"sys_time"		)
     49 _S(CAP_SYS_TTY_CONFIG,		"sys_tty_config"	)
     50 _S(CAP_MKNOD,			"mknod"			)
     51 _S(CAP_LEASE,			"lease"			)
     52 _S(CAP_AUDIT_WRITE,		"audit_write"		)
     53 _S(CAP_AUDIT_CONTROL,		"audit_control"		)
     54 #ifdef CAP_SETFCAP
     55 _S(CAP_SETFCAP,			"setfcap"		)
     56 #endif
     57 #ifdef CAP_MAC_OVERRIDE
     58 _S(CAP_MAC_OVERRIDE,		"mac_override"		)
     59 #endif
     60 #ifdef CAP_MAC_ADMIN
     61 _S(CAP_MAC_ADMIN,		"mac_admin"		)
     62 #endif
     63 #ifdef CAP_SYSLOG
     64 _S(CAP_SYSLOG,			"syslog"		)
     65 #endif
     66 #ifdef CAP_WAKE_ALARM
     67 _S(CAP_WAKE_ALARM,		"wake_alarm"		)
     68 #endif
     69 #if defined(CAP_EPOLLWAKEUP) && defined(CAP_BLOCK_SUSPEND)
     70 #error "Both CAP_EPOLLWAKEUP and CAP_BLOCK_SUSPEND are defined"
     71 #endif
     72 #ifdef CAP_EPOLLWAKEUP
     73 _S(CAP_EPOLLWAKEUP,		"epollwakeup"		)
     74 #endif
     75 #ifdef CAP_BLOCK_SUSPEND
     76 _S(CAP_BLOCK_SUSPEND,		"block_suspend"		)
     77 #endif
     78 
     79