Skip to contentSkip to conversation

Latest bluetooth requires net_bind_service

PATCH Daniel J Walsh 2 participants 4 messages Feb 20, 2007 – Feb 26, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Also search inotify

policy/modules/services/bluetooth.te +2 -1
@@ -41,7 +41,7 @@
 # Bluetooth services local policy
 #
 
-allow bluetooth_t self:capability { net_admin net_raw sys_tty_config ipc_lock };
+allow bluetooth_t self:capability { net_bind_service net_admin net_raw sys_tty_config ipc_lock };
 dontaudit bluetooth_t self:capability sys_tty_config;
 allow bluetooth_t self:process { getsched signal_perms };
 allow bluetooth_t self:fifo_file rw_fifo_file_perms;
@@ -98,6 +98,7 @@
 
 fs_getattr_all_fs(bluetooth_t)
 fs_search_auto_mountpoints(bluetooth_t)
+fs_search_inotifyfs(bluetooth_t)
 
 term_dontaudit_use_console(bluetooth_t)
 #Handle bluetooth serial devices
#1 lore raw
Quoted 1 line · Daniel J Walsh

Also search inotify

I don't see any corenet tcp or udp binding rules, so the capability seems out of place.

Quoted 25 lines

--- nsaserefpolicy/policy/modules/services/bluetooth.te 2007-01-02 12:57:43.000000000 -0500
+++
serefpolicy-2.5.4/policy/modules/services/bluetooth.te 2007-02-19
16:01:52.000000000 -0500

policy/modules/services/bluetooth.te +1 -1
@@ -41,7 +41,7 @@
 # Bluetooth services local policy
 #
 
-allow bluetooth_t self:capability { net_admin net_raw sys_tty_config
 ipc_lock };
+allow bluetooth_t self:capability { net_bind_service net_admin
 net_raw sys_tty_config ipc_lock };
 dontaudit bluetooth_t self:capability sys_tty_config;

allow bluetooth_t self:process { getsched signal_perms }; allow bluetooth_t self:fifo_file rw_fifo_file_perms;

policy/modules/services/bluetooth.te +1 -0
@@ -98,6 +98,7 @@
 
 fs_getattr_all_fs(bluetooth_t)
 fs_search_auto_mountpoints(bluetooth_t)
+fs_search_inotifyfs(bluetooth_t)
 
 term_dontaudit_use_console(bluetooth_t)
 #Handle bluetooth serial devices
Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
Quoted 8 lines · Christopher J. PeBenito
Quoted 2 lines · Daniel J Walsh

Also search inotify

I don't see any corenet tcp or udp binding rules, so the capability seems out of place.

This was a kernel change. It has nothing to do with UDP/TCP networking, but net_bind_service is now required for hidd to listen.

Quoted 19 lines
Quoted 19 lines

--- nsaserefpolicy/policy/modules/services/bluetooth.te 2007-01-02 12:57:43.000000000 -0500
+++
serefpolicy-2.5.4/policy/modules/services/bluetooth.te 2007-02-19
16:01:52.000000000 -0500

policy/modules/services/bluetooth.te +1 -1
@@ -41,7 +41,7 @@
 # Bluetooth services local policy
 #
 
-allow bluetooth_t self:capability { net_admin net_raw sys_tty_config
 ipc_lock };
+allow bluetooth_t self:capability { net_bind_service net_admin
 net_raw sys_tty_config ipc_lock };
 dontaudit bluetooth_t self:capability sys_tty_config;

allow bluetooth_t self:process { getsched signal_perms }; allow bluetooth_t self:fifo_file rw_fifo_file_perms;

(quoted diff) +0 -0
@@ -98,6 +98,7 @@
 
Quoted 8 lines

policy/modules/services/bluetooth.te line 104

Quoted 8 lines
policy/modules/services/bluetooth.te +1 -0
 fs_getattr_all_fs(bluetooth_t)
 fs_search_auto_mountpoints(bluetooth_t)
+fs_search_inotifyfs(bluetooth_t)
 
 term_dontaudit_use_console(bluetooth_t)
 #Handle bluetooth serial devices

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#3 lore raw
In reply to Daniel J Walsh
Quoted 1 line · Daniel J Walsh

Also search inotify

Merged

Quoted 20 lines
policy/modules/services/bluetooth.te 2007-02-19 16:01:52.000000000 -0500 renamed from policy/modules/services/bluetooth.te 2007-01-02 12:57:43.000000000 -0500 +2 -1
@@ -41,7 +41,7 @@
 # Bluetooth services local policy
 #
 
-allow bluetooth_t self:capability { net_admin net_raw sys_tty_config ipc_lock };
+allow bluetooth_t self:capability { net_bind_service net_admin net_raw sys_tty_config ipc_lock };
 dontaudit bluetooth_t self:capability sys_tty_config;
 allow bluetooth_t self:process { getsched signal_perms };
 allow bluetooth_t self:fifo_file rw_fifo_file_perms;
@@ -98,6 +98,7 @@
 
 fs_getattr_all_fs(bluetooth_t)
 fs_search_auto_mountpoints(bluetooth_t)
+fs_search_inotifyfs(bluetooth_t)
 
 term_dontaudit_use_console(bluetooth_t)
 #Handle bluetooth serial devices
Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.