bluetooth: allow bluetoothd to create alg_socket

Fixes:
avc:  denied  { create } for  pid=268 comm="bluetoothd"
scontext=system_u:system_r:bluetooth_t:s0-s15:c0.c1023
tcontext=system_u:system_r:bluetooth_t:s0-s15:c0.c1023 tclass=alg_socket
permissive=0

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
This commit is contained in:
Yi Zhao 2020-06-23 08:54:20 +08:00
parent 51dca5c89a
commit 5eb43f0bca
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ allow bluetooth_t self:unix_stream_socket { accept connectto listen };
allow bluetooth_t self:tcp_socket { accept listen };
allow bluetooth_t self:netlink_kobject_uevent_socket create_socket_perms;
allow bluetooth_t self:bluetooth_socket create_stream_socket_perms;
allow bluetooth_t self:alg_socket create_stream_socket_perms;
read_files_pattern(bluetooth_t, bluetooth_conf_t, bluetooth_conf_t)