2005-06-01 15:40:37 +00:00
|
|
|
#
|
|
|
|
# Define common prefixes for access vectors
|
|
|
|
#
|
|
|
|
# common common_name { permission_name ... }
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define a common prefix for file access vectors.
|
|
|
|
#
|
|
|
|
|
|
|
|
common file
|
|
|
|
{
|
|
|
|
ioctl
|
|
|
|
read
|
|
|
|
write
|
|
|
|
create
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
lock
|
|
|
|
relabelfrom
|
|
|
|
relabelto
|
|
|
|
append
|
|
|
|
unlink
|
|
|
|
link
|
|
|
|
rename
|
|
|
|
execute
|
|
|
|
swapon
|
|
|
|
quotaon
|
|
|
|
mounton
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define a common prefix for socket access vectors.
|
|
|
|
#
|
|
|
|
|
|
|
|
common socket
|
|
|
|
{
|
|
|
|
# inherited from file
|
|
|
|
ioctl
|
|
|
|
read
|
|
|
|
write
|
|
|
|
create
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
lock
|
|
|
|
relabelfrom
|
|
|
|
relabelto
|
|
|
|
append
|
|
|
|
# socket-specific
|
|
|
|
bind
|
|
|
|
connect
|
|
|
|
listen
|
|
|
|
accept
|
|
|
|
getopt
|
|
|
|
setopt
|
|
|
|
shutdown
|
|
|
|
recvfrom
|
|
|
|
sendto
|
|
|
|
recv_msg
|
|
|
|
send_msg
|
|
|
|
name_bind
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define a common prefix for ipc access vectors.
|
|
|
|
#
|
|
|
|
|
|
|
|
common ipc
|
|
|
|
{
|
|
|
|
create
|
|
|
|
destroy
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
read
|
|
|
|
write
|
|
|
|
associate
|
|
|
|
unix_read
|
|
|
|
unix_write
|
|
|
|
}
|
|
|
|
|
2007-08-09 13:15:07 +00:00
|
|
|
#
|
|
|
|
# Define a common prefix for userspace database object access vectors.
|
|
|
|
#
|
|
|
|
|
|
|
|
common database
|
|
|
|
{
|
|
|
|
create
|
|
|
|
drop
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
relabelfrom
|
|
|
|
relabelto
|
|
|
|
}
|
|
|
|
|
2005-06-01 15:40:37 +00:00
|
|
|
#
|
|
|
|
# Define the access vectors.
|
|
|
|
#
|
|
|
|
# class class_name [ inherits common_name ] { permission_name ... }
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for file-related objects.
|
|
|
|
#
|
|
|
|
|
|
|
|
class filesystem
|
|
|
|
{
|
|
|
|
mount
|
|
|
|
remount
|
|
|
|
unmount
|
|
|
|
getattr
|
|
|
|
relabelfrom
|
|
|
|
relabelto
|
|
|
|
transition
|
|
|
|
associate
|
|
|
|
quotamod
|
|
|
|
quotaget
|
|
|
|
}
|
|
|
|
|
|
|
|
class dir
|
|
|
|
inherits file
|
|
|
|
{
|
|
|
|
add_name
|
|
|
|
remove_name
|
|
|
|
reparent
|
|
|
|
search
|
|
|
|
rmdir
|
|
|
|
}
|
|
|
|
|
|
|
|
class file
|
|
|
|
inherits file
|
|
|
|
{
|
|
|
|
execute_no_trans
|
|
|
|
entrypoint
|
|
|
|
execmod
|
|
|
|
}
|
|
|
|
|
|
|
|
class lnk_file
|
|
|
|
inherits file
|
|
|
|
|
|
|
|
class chr_file
|
|
|
|
inherits file
|
|
|
|
{
|
|
|
|
execute_no_trans
|
|
|
|
entrypoint
|
|
|
|
execmod
|
|
|
|
}
|
|
|
|
|
|
|
|
class blk_file
|
|
|
|
inherits file
|
|
|
|
|
|
|
|
class sock_file
|
|
|
|
inherits file
|
|
|
|
|
|
|
|
class fifo_file
|
|
|
|
inherits file
|
|
|
|
|
|
|
|
class fd
|
|
|
|
{
|
|
|
|
use
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for network-related objects.
|
|
|
|
#
|
|
|
|
|
|
|
|
class socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class tcp_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
connectto
|
|
|
|
newconn
|
|
|
|
acceptfrom
|
|
|
|
node_bind
|
|
|
|
name_connect
|
|
|
|
}
|
|
|
|
|
|
|
|
class udp_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
node_bind
|
|
|
|
}
|
|
|
|
|
|
|
|
class rawip_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
node_bind
|
|
|
|
}
|
|
|
|
|
|
|
|
class node
|
|
|
|
{
|
|
|
|
tcp_recv
|
|
|
|
tcp_send
|
|
|
|
udp_recv
|
|
|
|
udp_send
|
|
|
|
rawip_recv
|
|
|
|
rawip_send
|
|
|
|
enforce_dest
|
2007-02-26 15:39:59 +00:00
|
|
|
dccp_recv
|
|
|
|
dccp_send
|
2008-01-03 16:20:01 +00:00
|
|
|
recvfrom
|
|
|
|
sendto
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class netif
|
|
|
|
{
|
|
|
|
tcp_recv
|
|
|
|
tcp_send
|
|
|
|
udp_recv
|
|
|
|
udp_send
|
|
|
|
rawip_recv
|
|
|
|
rawip_send
|
2007-02-26 15:39:59 +00:00
|
|
|
dccp_recv
|
|
|
|
dccp_send
|
2008-01-03 16:20:01 +00:00
|
|
|
ingress
|
|
|
|
egress
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class netlink_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class packet_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class key_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class unix_stream_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
connectto
|
|
|
|
newconn
|
|
|
|
acceptfrom
|
|
|
|
}
|
|
|
|
|
|
|
|
class unix_dgram_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for process-related objects
|
|
|
|
#
|
|
|
|
|
|
|
|
class process
|
|
|
|
{
|
|
|
|
fork
|
|
|
|
transition
|
|
|
|
sigchld # commonly granted from child to parent
|
|
|
|
sigkill # cannot be caught or ignored
|
|
|
|
sigstop # cannot be caught or ignored
|
|
|
|
signull # for kill(pid, 0)
|
|
|
|
signal # all other signals
|
|
|
|
ptrace
|
|
|
|
getsched
|
|
|
|
setsched
|
|
|
|
getsession
|
|
|
|
getpgid
|
|
|
|
setpgid
|
|
|
|
getcap
|
|
|
|
setcap
|
|
|
|
share
|
|
|
|
getattr
|
|
|
|
setexec
|
|
|
|
setfscreate
|
|
|
|
noatsecure
|
|
|
|
siginh
|
|
|
|
setrlimit
|
|
|
|
rlimitinh
|
|
|
|
dyntransition
|
|
|
|
setcurrent
|
|
|
|
execmem
|
|
|
|
execstack
|
|
|
|
execheap
|
2006-06-21 21:02:49 +00:00
|
|
|
setkeycreate
|
2006-10-20 14:44:23 +00:00
|
|
|
setsockcreate
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for ipc-related objects
|
|
|
|
#
|
|
|
|
|
|
|
|
class ipc
|
|
|
|
inherits ipc
|
|
|
|
|
|
|
|
class sem
|
|
|
|
inherits ipc
|
|
|
|
|
|
|
|
class msgq
|
|
|
|
inherits ipc
|
|
|
|
{
|
|
|
|
enqueue
|
|
|
|
}
|
|
|
|
|
|
|
|
class msg
|
|
|
|
{
|
|
|
|
send
|
|
|
|
receive
|
|
|
|
}
|
|
|
|
|
|
|
|
class shm
|
|
|
|
inherits ipc
|
|
|
|
{
|
|
|
|
lock
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for the security server.
|
|
|
|
#
|
|
|
|
|
|
|
|
class security
|
|
|
|
{
|
|
|
|
compute_av
|
|
|
|
compute_create
|
|
|
|
compute_member
|
|
|
|
check_context
|
|
|
|
load_policy
|
|
|
|
compute_relabel
|
|
|
|
compute_user
|
|
|
|
setenforce # was avc_toggle in system class
|
|
|
|
setbool
|
|
|
|
setsecparam
|
|
|
|
setcheckreqprot
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for system operations.
|
|
|
|
#
|
|
|
|
|
|
|
|
class system
|
|
|
|
{
|
|
|
|
ipc_info
|
|
|
|
syslog_read
|
|
|
|
syslog_mod
|
|
|
|
syslog_console
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for controling capabilies
|
|
|
|
#
|
|
|
|
|
|
|
|
class capability
|
|
|
|
{
|
|
|
|
# The capabilities are defined in include/linux/capability.h
|
2008-02-07 17:51:59 +00:00
|
|
|
# Capabilities >= 32 are defined in the capability2 class.
|
2005-06-01 15:40:37 +00:00
|
|
|
# Care should be taken to ensure that these are consistent with
|
|
|
|
# those definitions. (Order matters)
|
|
|
|
|
|
|
|
chown
|
|
|
|
dac_override
|
|
|
|
dac_read_search
|
|
|
|
fowner
|
|
|
|
fsetid
|
|
|
|
kill
|
|
|
|
setgid
|
|
|
|
setuid
|
|
|
|
setpcap
|
|
|
|
linux_immutable
|
|
|
|
net_bind_service
|
|
|
|
net_broadcast
|
|
|
|
net_admin
|
|
|
|
net_raw
|
|
|
|
ipc_lock
|
|
|
|
ipc_owner
|
|
|
|
sys_module
|
|
|
|
sys_rawio
|
|
|
|
sys_chroot
|
|
|
|
sys_ptrace
|
|
|
|
sys_pacct
|
|
|
|
sys_admin
|
|
|
|
sys_boot
|
|
|
|
sys_nice
|
|
|
|
sys_resource
|
|
|
|
sys_time
|
|
|
|
sys_tty_config
|
|
|
|
mknod
|
|
|
|
lease
|
|
|
|
audit_write
|
|
|
|
audit_control
|
2008-01-11 14:08:02 +00:00
|
|
|
setfcap
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
2008-02-07 17:51:59 +00:00
|
|
|
class capability2
|
|
|
|
{
|
|
|
|
mac_override # unused by SELinux
|
|
|
|
mac_admin # unused by SELinux
|
|
|
|
}
|
2005-06-01 15:40:37 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for controlling
|
|
|
|
# changes to passwd information.
|
|
|
|
#
|
|
|
|
class passwd
|
|
|
|
{
|
|
|
|
passwd # change another user passwd
|
|
|
|
chfn # change another user finger info
|
|
|
|
chsh # change another user shell
|
|
|
|
rootok # pam_rootok check (skip auth)
|
|
|
|
crontab # crontab on another user
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# SE-X Windows stuff
|
|
|
|
#
|
|
|
|
class drawable
|
|
|
|
{
|
|
|
|
create
|
|
|
|
destroy
|
|
|
|
draw
|
|
|
|
copy
|
|
|
|
getattr
|
|
|
|
}
|
|
|
|
|
|
|
|
class gc
|
|
|
|
{
|
|
|
|
create
|
|
|
|
free
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
}
|
|
|
|
|
|
|
|
class window
|
|
|
|
{
|
|
|
|
addchild
|
|
|
|
create
|
|
|
|
destroy
|
|
|
|
map
|
|
|
|
unmap
|
|
|
|
chstack
|
|
|
|
chproplist
|
|
|
|
chprop
|
|
|
|
listprop
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
setfocus
|
|
|
|
move
|
|
|
|
chselection
|
|
|
|
chparent
|
|
|
|
ctrllife
|
|
|
|
enumerate
|
|
|
|
transparent
|
|
|
|
mousemotion
|
|
|
|
clientcomevent
|
|
|
|
inputevent
|
|
|
|
drawevent
|
|
|
|
windowchangeevent
|
|
|
|
windowchangerequest
|
|
|
|
serverchangeevent
|
|
|
|
extensionevent
|
|
|
|
}
|
|
|
|
|
|
|
|
class font
|
|
|
|
{
|
|
|
|
load
|
|
|
|
free
|
|
|
|
getattr
|
|
|
|
use
|
|
|
|
}
|
|
|
|
|
|
|
|
class colormap
|
|
|
|
{
|
|
|
|
create
|
|
|
|
free
|
|
|
|
install
|
|
|
|
uninstall
|
|
|
|
list
|
|
|
|
read
|
|
|
|
store
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
}
|
|
|
|
|
|
|
|
class property
|
|
|
|
{
|
|
|
|
create
|
|
|
|
free
|
|
|
|
read
|
|
|
|
write
|
|
|
|
}
|
|
|
|
|
|
|
|
class cursor
|
|
|
|
{
|
|
|
|
create
|
|
|
|
createglyph
|
|
|
|
free
|
|
|
|
assign
|
|
|
|
setattr
|
|
|
|
}
|
|
|
|
|
|
|
|
class xclient
|
|
|
|
{
|
|
|
|
kill
|
|
|
|
}
|
|
|
|
|
|
|
|
class xinput
|
|
|
|
{
|
|
|
|
lookup
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
setfocus
|
|
|
|
warppointer
|
|
|
|
activegrab
|
|
|
|
passivegrab
|
|
|
|
ungrab
|
|
|
|
bell
|
|
|
|
mousemotion
|
|
|
|
relabelinput
|
|
|
|
}
|
|
|
|
|
|
|
|
class xserver
|
|
|
|
{
|
|
|
|
screensaver
|
|
|
|
gethostlist
|
|
|
|
sethostlist
|
|
|
|
getfontpath
|
|
|
|
setfontpath
|
|
|
|
getattr
|
|
|
|
grab
|
|
|
|
ungrab
|
|
|
|
}
|
|
|
|
|
|
|
|
class xextension
|
|
|
|
{
|
|
|
|
query
|
|
|
|
use
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for controlling
|
|
|
|
# PaX flags
|
|
|
|
#
|
|
|
|
class pax
|
|
|
|
{
|
|
|
|
pageexec # Paging based non-executable pages
|
|
|
|
emutramp # Emulate trampolines
|
|
|
|
mprotect # Restrict mprotect()
|
|
|
|
randmmap # Randomize mmap() base
|
|
|
|
randexec # Randomize ET_EXEC base
|
|
|
|
segmexec # Segmentation based non-executable pages
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Extended Netlink classes
|
|
|
|
#
|
|
|
|
class netlink_route_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
nlmsg_read
|
|
|
|
nlmsg_write
|
|
|
|
}
|
|
|
|
|
|
|
|
class netlink_firewall_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
nlmsg_read
|
|
|
|
nlmsg_write
|
|
|
|
}
|
|
|
|
|
|
|
|
class netlink_tcpdiag_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
nlmsg_read
|
|
|
|
nlmsg_write
|
|
|
|
}
|
|
|
|
|
|
|
|
class netlink_nflog_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_xfrm_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
nlmsg_read
|
|
|
|
nlmsg_write
|
|
|
|
}
|
|
|
|
|
|
|
|
class netlink_selinux_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_audit_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
nlmsg_read
|
|
|
|
nlmsg_write
|
|
|
|
nlmsg_relay
|
|
|
|
nlmsg_readpriv
|
|
|
|
}
|
|
|
|
|
|
|
|
class netlink_ip6fw_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
nlmsg_read
|
|
|
|
nlmsg_write
|
|
|
|
}
|
|
|
|
|
|
|
|
class netlink_dnrt_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
# Define the access vector interpretation for controlling
|
|
|
|
# access and communication through the D-BUS messaging
|
|
|
|
# system.
|
|
|
|
#
|
|
|
|
class dbus
|
|
|
|
{
|
|
|
|
acquire_svc
|
|
|
|
send_msg
|
|
|
|
}
|
|
|
|
|
|
|
|
# Define the access vector interpretation for controlling
|
|
|
|
# access through the name service cache daemon (nscd).
|
|
|
|
#
|
|
|
|
class nscd
|
|
|
|
{
|
|
|
|
getpwd
|
|
|
|
getgrp
|
|
|
|
gethost
|
|
|
|
getstat
|
|
|
|
admin
|
2005-07-08 19:44:12 +00:00
|
|
|
shmempwd
|
|
|
|
shmemgrp
|
|
|
|
shmemhost
|
2007-07-24 19:52:18 +00:00
|
|
|
getserv
|
|
|
|
shmemserv
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Define the access vector interpretation for controlling
|
|
|
|
# access to IPSec network data by association
|
|
|
|
#
|
|
|
|
class association
|
|
|
|
{
|
2005-07-08 19:44:12 +00:00
|
|
|
sendto
|
|
|
|
recvfrom
|
2006-01-06 16:01:30 +00:00
|
|
|
setcontext
|
2006-09-01 17:06:53 +00:00
|
|
|
polmatch
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Updated Netlink class for KOBJECT_UEVENT family.
|
|
|
|
class netlink_kobject_uevent_socket
|
|
|
|
inherits socket
|
2006-05-04 20:40:49 +00:00
|
|
|
|
|
|
|
class appletalk_socket
|
|
|
|
inherits socket
|
2006-05-19 17:45:46 +00:00
|
|
|
|
|
|
|
class packet
|
|
|
|
{
|
|
|
|
send
|
|
|
|
recv
|
|
|
|
relabelto
|
|
|
|
}
|
2006-06-21 21:02:49 +00:00
|
|
|
|
|
|
|
class key
|
|
|
|
{
|
|
|
|
view
|
|
|
|
read
|
|
|
|
write
|
|
|
|
search
|
|
|
|
link
|
|
|
|
setattr
|
|
|
|
create
|
|
|
|
}
|
2006-10-20 14:44:23 +00:00
|
|
|
|
|
|
|
class context
|
|
|
|
{
|
|
|
|
translate
|
2006-11-14 13:38:52 +00:00
|
|
|
contains
|
2006-10-20 14:44:23 +00:00
|
|
|
}
|
2007-02-26 15:39:59 +00:00
|
|
|
|
|
|
|
class dccp_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
node_bind
|
|
|
|
name_connect
|
|
|
|
}
|
2007-06-19 13:02:26 +00:00
|
|
|
|
|
|
|
class memprotect
|
|
|
|
{
|
|
|
|
mmap_zero
|
|
|
|
}
|
2007-08-09 13:15:07 +00:00
|
|
|
|
|
|
|
class db_database
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
access
|
|
|
|
install_module
|
|
|
|
load_module
|
|
|
|
get_param
|
|
|
|
set_param
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_table
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
use
|
|
|
|
select
|
|
|
|
update
|
|
|
|
insert
|
|
|
|
delete
|
|
|
|
lock
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_procedure
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
execute
|
|
|
|
entrypoint
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_column
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
use
|
|
|
|
select
|
|
|
|
update
|
|
|
|
insert
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_tuple
|
|
|
|
{
|
|
|
|
relabelfrom
|
|
|
|
relabelto
|
|
|
|
use
|
|
|
|
select
|
|
|
|
update
|
|
|
|
insert
|
|
|
|
delete
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_blob
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
read
|
|
|
|
write
|
|
|
|
import
|
|
|
|
export
|
|
|
|
}
|
2008-01-03 16:20:01 +00:00
|
|
|
|
|
|
|
# network peer labels
|
|
|
|
class peer
|
|
|
|
{
|
|
|
|
recv
|
|
|
|
}
|