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
|
2017-05-24 19:40:18 +00:00
|
|
|
map
|
2005-06-01 15:40:37 +00:00
|
|
|
unlink
|
|
|
|
link
|
|
|
|
rename
|
|
|
|
execute
|
|
|
|
quotaon
|
|
|
|
mounton
|
2019-10-25 19:45:31 +00:00
|
|
|
audit_access
|
2019-10-31 07:03:38 +00:00
|
|
|
open
|
2019-10-25 19:45:31 +00:00
|
|
|
execmod
|
2019-10-25 19:46:00 +00:00
|
|
|
watch
|
|
|
|
watch_mount
|
|
|
|
watch_sb
|
|
|
|
watch_with_perm
|
|
|
|
watch_reads
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define a common prefix for socket access vectors.
|
|
|
|
#
|
|
|
|
|
|
|
|
common socket
|
|
|
|
{
|
|
|
|
# inherited from file
|
|
|
|
ioctl
|
|
|
|
read
|
|
|
|
write
|
|
|
|
create
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
lock
|
|
|
|
relabelfrom
|
|
|
|
relabelto
|
|
|
|
append
|
2017-05-24 19:40:18 +00:00
|
|
|
map
|
2005-06-01 15:40:37 +00:00
|
|
|
# socket-specific
|
|
|
|
bind
|
|
|
|
connect
|
|
|
|
listen
|
|
|
|
accept
|
|
|
|
getopt
|
|
|
|
setopt
|
|
|
|
shutdown
|
|
|
|
recvfrom
|
|
|
|
sendto
|
|
|
|
name_bind
|
2016-12-06 12:28:10 +00:00
|
|
|
}
|
2005-06-01 15:40:37 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
}
|
|
|
|
|
2009-10-13 23:17:13 +00:00
|
|
|
#
|
|
|
|
# Define a common prefix for pointer and keyboard access vectors.
|
|
|
|
#
|
|
|
|
|
|
|
|
common x_device
|
|
|
|
{
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
use
|
|
|
|
read
|
|
|
|
write
|
|
|
|
getfocus
|
|
|
|
setfocus
|
|
|
|
bell
|
|
|
|
force_cursor
|
|
|
|
freeze
|
|
|
|
grab
|
|
|
|
manage
|
|
|
|
list_property
|
|
|
|
get_property
|
|
|
|
set_property
|
|
|
|
add
|
|
|
|
remove
|
|
|
|
create
|
|
|
|
destroy
|
|
|
|
}
|
|
|
|
|
2016-04-06 18:52:26 +00:00
|
|
|
#
|
|
|
|
# Define a common for capability access vectors.
|
|
|
|
#
|
|
|
|
common cap
|
|
|
|
{
|
2020-10-16 00:49:49 +00:00
|
|
|
# The capabilities are defined in include/uapi/linux/capability.h
|
2016-04-06 18:52:26 +00:00
|
|
|
# Capabilities >= 32 are defined in the cap2 common.
|
|
|
|
# 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
|
|
|
|
setfcap
|
|
|
|
}
|
|
|
|
|
|
|
|
common cap2
|
|
|
|
{
|
|
|
|
mac_override # unused by SELinux
|
2019-03-12 00:49:42 +00:00
|
|
|
mac_admin
|
2016-04-06 18:52:26 +00:00
|
|
|
syslog
|
|
|
|
wake_alarm
|
|
|
|
block_suspend
|
|
|
|
audit_read
|
2020-10-16 00:49:49 +00:00
|
|
|
perfmon
|
|
|
|
bpf
|
|
|
|
checkpoint_restore
|
2016-04-06 18:52:26 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
|
associate
|
|
|
|
quotamod
|
|
|
|
quotaget
|
2019-10-25 19:46:00 +00:00
|
|
|
watch
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class dir
|
|
|
|
inherits file
|
|
|
|
{
|
|
|
|
add_name
|
|
|
|
remove_name
|
|
|
|
reparent
|
|
|
|
search
|
|
|
|
rmdir
|
|
|
|
}
|
|
|
|
|
|
|
|
class file
|
|
|
|
inherits file
|
|
|
|
{
|
|
|
|
execute_no_trans
|
|
|
|
entrypoint
|
|
|
|
}
|
|
|
|
|
|
|
|
class lnk_file
|
|
|
|
inherits file
|
|
|
|
|
|
|
|
class chr_file
|
|
|
|
inherits file
|
|
|
|
|
|
|
|
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
|
|
|
|
{
|
|
|
|
node_bind
|
|
|
|
name_connect
|
|
|
|
}
|
|
|
|
|
|
|
|
class udp_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
node_bind
|
|
|
|
}
|
|
|
|
|
|
|
|
class rawip_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
node_bind
|
|
|
|
}
|
|
|
|
|
2016-12-06 12:28:10 +00:00
|
|
|
class node
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
2008-01-03 16:20:01 +00:00
|
|
|
recvfrom
|
|
|
|
sendto
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class netif
|
|
|
|
{
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2017-05-17 15:33:46 +00:00
|
|
|
getrlimit
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
2017-08-05 16:13:21 +00:00
|
|
|
class process2
|
|
|
|
{
|
|
|
|
nnp_transition
|
|
|
|
nosuid_transition
|
|
|
|
}
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
2016-12-06 12:28:10 +00:00
|
|
|
# Define the access vector interpretation for the security server.
|
2005-06-01 15:40:37 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
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
|
2011-03-28 15:45:46 +00:00
|
|
|
read_policy
|
2016-05-01 17:24:42 +00:00
|
|
|
validate_trans
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for system operations.
|
|
|
|
#
|
|
|
|
|
|
|
|
class system
|
|
|
|
{
|
|
|
|
ipc_info
|
2016-12-06 12:28:10 +00:00
|
|
|
syslog_read
|
2005-06-01 15:40:37 +00:00
|
|
|
syslog_mod
|
|
|
|
syslog_console
|
2009-11-19 13:52:06 +00:00
|
|
|
module_request
|
2016-08-07 21:07:52 +00:00
|
|
|
module_load
|
2015-10-20 15:29:11 +00:00
|
|
|
|
|
|
|
# these are overloaded userspace
|
|
|
|
# permissions from systemd
|
|
|
|
halt
|
|
|
|
reboot
|
|
|
|
status
|
|
|
|
start
|
|
|
|
stop
|
|
|
|
enable
|
|
|
|
disable
|
|
|
|
reload
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
2016-04-06 18:52:26 +00:00
|
|
|
# Define the access vector interpretation for controlling capabilities
|
2005-06-01 15:40:37 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
class capability
|
2016-04-06 18:52:26 +00:00
|
|
|
inherits cap
|
2005-06-01 15:40:37 +00:00
|
|
|
|
2016-04-06 18:52:26 +00:00
|
|
|
class capability2
|
|
|
|
inherits cap2
|
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
|
|
|
|
#
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_drawable
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
|
|
|
create
|
|
|
|
destroy
|
2008-04-01 20:23:23 +00:00
|
|
|
read
|
|
|
|
write
|
|
|
|
blend
|
2005-06-01 15:40:37 +00:00
|
|
|
getattr
|
2008-04-01 20:23:23 +00:00
|
|
|
setattr
|
|
|
|
list_child
|
|
|
|
add_child
|
|
|
|
remove_child
|
|
|
|
list_property
|
|
|
|
get_property
|
|
|
|
set_property
|
|
|
|
manage
|
|
|
|
override
|
|
|
|
show
|
|
|
|
hide
|
|
|
|
send
|
|
|
|
receive
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_screen
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
|
|
|
getattr
|
|
|
|
setattr
|
2008-04-01 20:23:23 +00:00
|
|
|
hide_cursor
|
|
|
|
show_cursor
|
|
|
|
saver_getattr
|
|
|
|
saver_setattr
|
|
|
|
saver_hide
|
|
|
|
saver_show
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_gc
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
|
|
|
create
|
|
|
|
destroy
|
|
|
|
getattr
|
|
|
|
setattr
|
2008-04-01 20:23:23 +00:00
|
|
|
use
|
|
|
|
}
|
|
|
|
|
|
|
|
class x_font
|
|
|
|
{
|
|
|
|
create
|
|
|
|
destroy
|
2005-06-01 15:40:37 +00:00
|
|
|
getattr
|
2008-04-01 20:23:23 +00:00
|
|
|
add_glyph
|
|
|
|
remove_glyph
|
2005-06-01 15:40:37 +00:00
|
|
|
use
|
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_colormap
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
|
|
|
create
|
2008-04-01 20:23:23 +00:00
|
|
|
destroy
|
|
|
|
read
|
|
|
|
write
|
|
|
|
getattr
|
|
|
|
add_color
|
|
|
|
remove_color
|
2005-06-01 15:40:37 +00:00
|
|
|
install
|
|
|
|
uninstall
|
2008-04-01 20:23:23 +00:00
|
|
|
use
|
|
|
|
}
|
|
|
|
|
|
|
|
class x_property
|
|
|
|
{
|
|
|
|
create
|
|
|
|
destroy
|
2005-06-01 15:40:37 +00:00
|
|
|
read
|
2008-04-01 20:23:23 +00:00
|
|
|
write
|
|
|
|
append
|
2005-06-01 15:40:37 +00:00
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_selection
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
|
|
|
read
|
|
|
|
write
|
2008-04-01 20:23:23 +00:00
|
|
|
getattr
|
|
|
|
setattr
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_cursor
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
|
|
|
create
|
2008-04-01 20:23:23 +00:00
|
|
|
destroy
|
|
|
|
read
|
|
|
|
write
|
|
|
|
getattr
|
2005-06-01 15:40:37 +00:00
|
|
|
setattr
|
2008-04-01 20:23:23 +00:00
|
|
|
use
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_client
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
2008-04-01 20:23:23 +00:00
|
|
|
destroy
|
|
|
|
getattr
|
|
|
|
setattr
|
|
|
|
manage
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_device
|
2009-10-13 23:17:13 +00:00
|
|
|
inherits x_device
|
2005-06-01 15:40:37 +00:00
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_server
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
|
|
|
getattr
|
2008-04-01 20:23:23 +00:00
|
|
|
setattr
|
|
|
|
record
|
|
|
|
debug
|
2005-06-01 15:40:37 +00:00
|
|
|
grab
|
2008-04-01 20:23:23 +00:00
|
|
|
manage
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_extension
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
|
|
|
query
|
|
|
|
use
|
|
|
|
}
|
|
|
|
|
2008-04-01 20:23:23 +00:00
|
|
|
class x_resource
|
|
|
|
{
|
|
|
|
read
|
|
|
|
write
|
|
|
|
}
|
|
|
|
|
|
|
|
class x_event
|
2005-06-01 15:40:37 +00:00
|
|
|
{
|
2008-04-01 20:23:23 +00:00
|
|
|
send
|
|
|
|
receive
|
|
|
|
}
|
|
|
|
|
|
|
|
class x_synthetic_event
|
|
|
|
{
|
|
|
|
send
|
|
|
|
receive
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Extended Netlink classes
|
|
|
|
#
|
|
|
|
class netlink_route_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
nlmsg_read
|
|
|
|
nlmsg_write
|
|
|
|
}
|
|
|
|
|
Rename obsolete netlink_firewall_socket and netlink_ip6fw_socket classes
The implementation for NETLINK_FIREWALL and NETLINK_IP6_FW protocols
was removed from the kernel in commit
d16cf20e2f2f13411eece7f7fb72c17d141c4a84 ("netfilter: remove ip_queue
support") circa Linux 3.5. Consequently, kernels >= 3.5 should never
perform permission checks on these classes although they remained
defined in the SELinux kernel classmap until the netlink classes
were updated by
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6c6d2e9bde1c1c87a7ead806f8f5e2181d41a652
circa Linux v4.2.
Removing these class definitions would break legacy userspace that relies
upon stable values for the userspace security class definitions since it
will perturb those values by removing classes that preceded them. dbus-daemon
in particular is known to break if its dbus class changes at runtime,
which could occur upon a policy reload that removes these classes.
Fixing this requires ensuring that dbus-daemon looks up the appropriate
class value on each use or upon policy reload, via userspace interfaces
such as selinux_check_access(), string_to_security_class(), and/or
selinux_set_callback(SELINUX_CB_POLICYLOAD, ...) with a callback function
that remaps the class value if needed. Other userspace policy enforcers
are believed to have been updated in recent versions but older versions
may break upon such a change.
Hence, this change renames these classes with obsolete_ prefixes and
removes all rules referencing them from refpolicy, thereby preserving
the class numbering for subsequent classes while making it clear that
these classses are no longer meaningful for modern kernels.
This change does however create a potential compatibility break for
kernels < 3.5, since the policy will cease to define the kernel class
names and therefore the kernel will handle permission checks on the
class based on the handle_unknown setting in policy. For most
Linux distributions, this will default to allow and therefore avoid
breaking userspace but will fail open. For kernels < 2.6.33 (i.e.
the dynamic class/perm discovery support), the presence of a class
in policy with the same number but a different name than the kernel
class will cause the policy load to fail entirely.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2020-01-14 15:31:00 +00:00
|
|
|
class obsolete_netlink_firewall_socket
|
2005-06-01 15:40:37 +00:00
|
|
|
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
|
2009-03-05 14:11:24 +00:00
|
|
|
nlmsg_tty_audit
|
2005-06-01 15:40:37 +00:00
|
|
|
}
|
|
|
|
|
Rename obsolete netlink_firewall_socket and netlink_ip6fw_socket classes
The implementation for NETLINK_FIREWALL and NETLINK_IP6_FW protocols
was removed from the kernel in commit
d16cf20e2f2f13411eece7f7fb72c17d141c4a84 ("netfilter: remove ip_queue
support") circa Linux 3.5. Consequently, kernels >= 3.5 should never
perform permission checks on these classes although they remained
defined in the SELinux kernel classmap until the netlink classes
were updated by
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6c6d2e9bde1c1c87a7ead806f8f5e2181d41a652
circa Linux v4.2.
Removing these class definitions would break legacy userspace that relies
upon stable values for the userspace security class definitions since it
will perturb those values by removing classes that preceded them. dbus-daemon
in particular is known to break if its dbus class changes at runtime,
which could occur upon a policy reload that removes these classes.
Fixing this requires ensuring that dbus-daemon looks up the appropriate
class value on each use or upon policy reload, via userspace interfaces
such as selinux_check_access(), string_to_security_class(), and/or
selinux_set_callback(SELINUX_CB_POLICYLOAD, ...) with a callback function
that remaps the class value if needed. Other userspace policy enforcers
are believed to have been updated in recent versions but older versions
may break upon such a change.
Hence, this change renames these classes with obsolete_ prefixes and
removes all rules referencing them from refpolicy, thereby preserving
the class numbering for subsequent classes while making it clear that
these classses are no longer meaningful for modern kernels.
This change does however create a potential compatibility break for
kernels < 3.5, since the policy will cease to define the kernel class
names and therefore the kernel will handle permission checks on the
class based on the handle_unknown setting in policy. For most
Linux distributions, this will default to allow and therefore avoid
breaking userspace but will fail open. For kernels < 2.6.33 (i.e.
the dynamic class/perm discovery support), the presence of a class
in policy with the same number but a different name than the kernel
class will cause the policy load to fail entirely.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2020-01-14 15:31:00 +00:00
|
|
|
class obsolete_netlink_ip6fw_socket
|
2005-06-01 15:40:37 +00:00
|
|
|
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
|
2008-02-12 14:46:29 +00:00
|
|
|
forward_in
|
|
|
|
forward_out
|
2006-05-19 17:45:46 +00:00
|
|
|
}
|
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
|
|
|
|
{
|
2018-10-08 17:46:05 +00:00
|
|
|
unused_perm
|
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
|
2009-05-07 12:35:32 +00:00
|
|
|
get_param # deprecated
|
|
|
|
set_param # deprecated
|
2007-08-09 13:15:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class db_table
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
select
|
|
|
|
update
|
|
|
|
insert
|
|
|
|
delete
|
|
|
|
lock
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_procedure
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
execute
|
|
|
|
entrypoint
|
2009-01-23 19:49:36 +00:00
|
|
|
install
|
2007-08-09 13:15:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class db_column
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
select
|
|
|
|
update
|
|
|
|
insert
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_tuple
|
|
|
|
{
|
|
|
|
relabelfrom
|
|
|
|
relabelto
|
2012-05-18 13:28:18 +00:00
|
|
|
use
|
2007-08-09 13:15:07 +00:00
|
|
|
select
|
|
|
|
update
|
|
|
|
insert
|
|
|
|
delete
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_blob
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
read
|
|
|
|
write
|
|
|
|
import
|
|
|
|
export
|
|
|
|
}
|
2008-01-03 16:20:01 +00:00
|
|
|
|
2014-06-24 10:34:10 +00:00
|
|
|
class db_exception
|
|
|
|
inherits database
|
2014-06-25 08:47:15 +00:00
|
|
|
{
|
|
|
|
use
|
|
|
|
}
|
2014-06-24 10:34:10 +00:00
|
|
|
|
2014-06-25 12:24:33 +00:00
|
|
|
class db_datatype
|
2014-06-24 10:34:10 +00:00
|
|
|
inherits database
|
2014-06-25 08:47:15 +00:00
|
|
|
{
|
|
|
|
use
|
|
|
|
}
|
2014-06-24 10:34:10 +00:00
|
|
|
|
2008-01-03 16:20:01 +00:00
|
|
|
# network peer labels
|
|
|
|
class peer
|
|
|
|
{
|
|
|
|
recv
|
|
|
|
}
|
2008-05-06 14:37:05 +00:00
|
|
|
|
|
|
|
class x_application_data
|
|
|
|
{
|
|
|
|
paste
|
|
|
|
paste_after_confirm
|
|
|
|
copy
|
|
|
|
}
|
2009-01-05 21:44:33 +00:00
|
|
|
|
|
|
|
class kernel_service
|
|
|
|
{
|
|
|
|
use_as_override
|
2016-12-06 12:28:10 +00:00
|
|
|
create_files_as
|
2009-01-05 21:44:33 +00:00
|
|
|
}
|
2009-08-31 12:44:11 +00:00
|
|
|
|
|
|
|
class tun_socket
|
|
|
|
inherits socket
|
2013-01-22 16:25:11 +00:00
|
|
|
{
|
|
|
|
attach_queue
|
|
|
|
}
|
2009-10-13 23:17:13 +00:00
|
|
|
|
2015-05-06 16:31:28 +00:00
|
|
|
class binder
|
|
|
|
{
|
|
|
|
impersonate
|
|
|
|
call
|
|
|
|
set_context_mgr
|
|
|
|
transfer
|
|
|
|
}
|
|
|
|
|
2015-05-21 17:38:09 +00:00
|
|
|
class netlink_iscsi_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_fib_lookup_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_connector_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_netfilter_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_generic_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_scsitransport_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_rdma_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netlink_crypto_socket
|
|
|
|
inherits socket
|
|
|
|
|
2009-10-13 23:17:13 +00:00
|
|
|
class x_pointer
|
|
|
|
inherits x_device
|
|
|
|
|
|
|
|
class x_keyboard
|
|
|
|
inherits x_device
|
New database object classes
The attached patch adds a few database object classes, as follows:
* db_schema
------------
A schema object performs as a namespace in database; similar to
directories in filesystem.
It seems some of (but not all) database objects are stored within
a certain schema logically. We can qualify these objects using
schema name. For example, a table: "my_tbl" within a schema: "my_scm"
is identified by "my_scm.my_tbl". This table is completely different
from "your_scm.my_tbl" that it a table within a schema: "your_scm".
Its characteristics is similar to a directory in filesystem, so
it has similar permissions.
The 'search' controls to resolve object name within a schema.
The 'add_name' and 'remove_name' controls to add/remove an object
to/from a schema.
See also,
http://developer.postgresql.org/pgdocs/postgres/sql-createschema.html
In the past discussion, a rubix folks concerned about no object
class definition for schema and catalog which is an upper level
namespace. Since I'm not certain whether we have a disadvantage
when 'db_schema' class is applied on catalog class, I don't add
this definition yet.
Default security context of 'db_table' and 'db_procedure' classes
get being computed using type_transition with 'db_schema' class,
instead of 'db_database' class. It reflects logical hierarchy of
database object more correctly.
* db_view
----------
A view object performs as a virtual table. We can run SELECT
statement on views, although it has no physical entities.
The definition of views are expanded in run-time, so it allows
us to describe complex queries with keeping readability.
This object class uniquely provides 'expand' permission that
controls whether user can expand this view, or not.
The default security context shall be computed by type transition
rule with a schema object that owning the view.
See also,
http://developer.postgresql.org/pgdocs/postgres/sql-createview.html
* db_sequence
--------------
A sequence object is a sequential number generator.
This object class uniquely provides 'get_value', 'next_value' and
'set_value' permissions. The 'get_value' controls to reference the
sequence object. The 'next_value' controls to fetch and increment
the value of sequence object. The 'set_value' controls to set
an arbitrary value.
The default security context shall be computed by type transition
rule with a schema object that owning the sequence.
See also,
http://developer.postgresql.org/pgdocs/postgres/sql-createsequence.html
* db_language
--------------
A language object is an installed engine to execute procedures.
PostgreSQL supports to define SQL procedures using regular script
languages; such as Perl, Tcl, not only SQL or binary modules.
In addition, v9.0 or later supports DO statement. It allows us to
execute a script statement on server side without defining a SQL
procedure. It requires to control whether user can execute DO
statement on this language, or not.
This object class uniquely provides 'implement' and 'execute'
permissions. The 'implement' controls whether a procedure can
be implemented with this language, or not. So, it takes security
context of the procedure as subject. The 'execute' controls to
execute code block using DO statement.
The default security context shall be computed by type transition
rule with a database object, because it is not owned by a certain
schema.
In the default policy, we provide two types: 'sepgsql_lang_t' and
'sepgsql_safe_lang_t' that allows unpriv users to execute DO
statement. The default is 'sepgsql_leng_t'.
We assume newly installed language may be harm, so DBA has to relabel
it explicitly, if he want user defined procedures using the language.
See also,
http://developer.postgresql.org/pgdocs/postgres/sql-createlanguage.html
http://developer.postgresql.org/pgdocs/postgres/sql-do.html
P.S)
I found a bug in MCS. It didn't constraint 'relabelfrom' permission
of 'db_procedure' class. IIRC, I fixed it before, but it might be
only MLS side. Sorry.
Thanks,
--
KaiGai Kohei <kaigai@ak.jp.nec.com>
policy/flask/access_vectors | 29 ++++++++
policy/flask/security_classes | 6 ++
policy/mcs | 16 ++++-
policy/mls | 58 ++++++++++++++-
policy/modules/kernel/kernel.if | 8 ++
policy/modules/services/postgresql.if | 125 +++++++++++++++++++++++++++++++--
policy/modules/services/postgresql.te | 116 +++++++++++++++++++++++++++++-
7 files changed, 342 insertions(+), 16 deletions(-)
2010-12-10 09:49:24 +00:00
|
|
|
|
|
|
|
class db_schema
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
search
|
|
|
|
add_name
|
|
|
|
remove_name
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_view
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
expand
|
|
|
|
}
|
|
|
|
|
|
|
|
class db_sequence
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
get_value
|
|
|
|
next_value
|
|
|
|
set_value
|
|
|
|
}
|
|
|
|
|
2017-05-24 14:14:59 +00:00
|
|
|
class infiniband_pkey
|
|
|
|
{
|
|
|
|
access
|
|
|
|
}
|
|
|
|
|
|
|
|
class infiniband_endport
|
|
|
|
{
|
|
|
|
manage_subnet
|
|
|
|
}
|
|
|
|
|
New database object classes
The attached patch adds a few database object classes, as follows:
* db_schema
------------
A schema object performs as a namespace in database; similar to
directories in filesystem.
It seems some of (but not all) database objects are stored within
a certain schema logically. We can qualify these objects using
schema name. For example, a table: "my_tbl" within a schema: "my_scm"
is identified by "my_scm.my_tbl". This table is completely different
from "your_scm.my_tbl" that it a table within a schema: "your_scm".
Its characteristics is similar to a directory in filesystem, so
it has similar permissions.
The 'search' controls to resolve object name within a schema.
The 'add_name' and 'remove_name' controls to add/remove an object
to/from a schema.
See also,
http://developer.postgresql.org/pgdocs/postgres/sql-createschema.html
In the past discussion, a rubix folks concerned about no object
class definition for schema and catalog which is an upper level
namespace. Since I'm not certain whether we have a disadvantage
when 'db_schema' class is applied on catalog class, I don't add
this definition yet.
Default security context of 'db_table' and 'db_procedure' classes
get being computed using type_transition with 'db_schema' class,
instead of 'db_database' class. It reflects logical hierarchy of
database object more correctly.
* db_view
----------
A view object performs as a virtual table. We can run SELECT
statement on views, although it has no physical entities.
The definition of views are expanded in run-time, so it allows
us to describe complex queries with keeping readability.
This object class uniquely provides 'expand' permission that
controls whether user can expand this view, or not.
The default security context shall be computed by type transition
rule with a schema object that owning the view.
See also,
http://developer.postgresql.org/pgdocs/postgres/sql-createview.html
* db_sequence
--------------
A sequence object is a sequential number generator.
This object class uniquely provides 'get_value', 'next_value' and
'set_value' permissions. The 'get_value' controls to reference the
sequence object. The 'next_value' controls to fetch and increment
the value of sequence object. The 'set_value' controls to set
an arbitrary value.
The default security context shall be computed by type transition
rule with a schema object that owning the sequence.
See also,
http://developer.postgresql.org/pgdocs/postgres/sql-createsequence.html
* db_language
--------------
A language object is an installed engine to execute procedures.
PostgreSQL supports to define SQL procedures using regular script
languages; such as Perl, Tcl, not only SQL or binary modules.
In addition, v9.0 or later supports DO statement. It allows us to
execute a script statement on server side without defining a SQL
procedure. It requires to control whether user can execute DO
statement on this language, or not.
This object class uniquely provides 'implement' and 'execute'
permissions. The 'implement' controls whether a procedure can
be implemented with this language, or not. So, it takes security
context of the procedure as subject. The 'execute' controls to
execute code block using DO statement.
The default security context shall be computed by type transition
rule with a database object, because it is not owned by a certain
schema.
In the default policy, we provide two types: 'sepgsql_lang_t' and
'sepgsql_safe_lang_t' that allows unpriv users to execute DO
statement. The default is 'sepgsql_leng_t'.
We assume newly installed language may be harm, so DBA has to relabel
it explicitly, if he want user defined procedures using the language.
See also,
http://developer.postgresql.org/pgdocs/postgres/sql-createlanguage.html
http://developer.postgresql.org/pgdocs/postgres/sql-do.html
P.S)
I found a bug in MCS. It didn't constraint 'relabelfrom' permission
of 'db_procedure' class. IIRC, I fixed it before, but it might be
only MLS side. Sorry.
Thanks,
--
KaiGai Kohei <kaigai@ak.jp.nec.com>
policy/flask/access_vectors | 29 ++++++++
policy/flask/security_classes | 6 ++
policy/mcs | 16 ++++-
policy/mls | 58 ++++++++++++++-
policy/modules/kernel/kernel.if | 8 ++
policy/modules/services/postgresql.if | 125 +++++++++++++++++++++++++++++++--
policy/modules/services/postgresql.te | 116 +++++++++++++++++++++++++++++-
7 files changed, 342 insertions(+), 16 deletions(-)
2010-12-10 09:49:24 +00:00
|
|
|
class db_language
|
|
|
|
inherits database
|
|
|
|
{
|
|
|
|
implement
|
|
|
|
execute
|
|
|
|
}
|
2015-10-20 15:29:11 +00:00
|
|
|
|
|
|
|
class service
|
|
|
|
{
|
|
|
|
start
|
|
|
|
stop
|
|
|
|
status
|
|
|
|
reload
|
|
|
|
enable
|
|
|
|
disable
|
|
|
|
}
|
2016-04-06 18:52:26 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for controlling capabilities
|
|
|
|
# in user namespaces
|
|
|
|
#
|
|
|
|
class cap_userns
|
|
|
|
inherits cap
|
|
|
|
|
|
|
|
class cap2_userns
|
|
|
|
inherits cap2
|
2016-12-08 18:35:27 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Define the access vector interpretation for the new socket classes
|
|
|
|
# enabled by the extended_socket_class policy capability.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# The next two classes were previously mapped to rawip_socket and therefore
|
|
|
|
# have the same definition as rawip_socket (until further permissions
|
|
|
|
# are defined).
|
|
|
|
#
|
|
|
|
class sctp_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
node_bind
|
2018-03-19 09:59:54 +00:00
|
|
|
name_connect
|
|
|
|
association
|
2016-12-08 18:35:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class icmp_socket
|
|
|
|
inherits socket
|
|
|
|
{
|
|
|
|
node_bind
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# The remaining network socket classes were previously
|
|
|
|
# mapped to the socket class and therefore have the
|
|
|
|
# same definition as socket.
|
|
|
|
#
|
|
|
|
|
|
|
|
class ax25_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class ipx_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class netrom_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class atmpvc_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class x25_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class rose_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class decnet_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class atmsvc_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class rds_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class irda_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class pppox_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class llc_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class can_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class tipc_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class bluetooth_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class iucv_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class rxrpc_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class isdn_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class phonet_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class ieee802154_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class caif_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class alg_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class nfc_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class vsock_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class kcm_socket
|
|
|
|
inherits socket
|
|
|
|
|
|
|
|
class qipcrtr_socket
|
|
|
|
inherits socket
|
2017-05-17 15:31:48 +00:00
|
|
|
|
|
|
|
class smc_socket
|
|
|
|
inherits socket
|
2018-03-21 10:57:45 +00:00
|
|
|
|
|
|
|
class bpf
|
|
|
|
{
|
|
|
|
map_create
|
|
|
|
map_read
|
|
|
|
map_write
|
|
|
|
prog_load
|
|
|
|
prog_run
|
|
|
|
}
|
2018-10-21 11:00:35 +00:00
|
|
|
|
|
|
|
class xdp_socket
|
|
|
|
inherits socket
|
2020-01-29 14:58:40 +00:00
|
|
|
|
|
|
|
class perf_event
|
|
|
|
{
|
|
|
|
open
|
|
|
|
cpu
|
|
|
|
kernel
|
|
|
|
tracepoint
|
|
|
|
read
|
|
|
|
write
|
|
|
|
}
|
2020-05-08 14:29:52 +00:00
|
|
|
|
|
|
|
class lockdown
|
|
|
|
{
|
|
|
|
integrity
|
|
|
|
confidentiality
|
|
|
|
}
|