Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
7fa2f9e0
Commit
7fa2f9e0
authored
12 years ago
by
William Roberts
Committed by
Stephen Smalley
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Policy for hci_attach service.
parent
efd6d6e0
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
device.te
+6
-0
6 additions, 0 deletions
device.te
file.te
+5
-0
5 additions, 0 deletions
file.te
hci_attach.te
+9
-0
9 additions, 0 deletions
hci_attach.te
rild.te
+1
-0
1 addition, 0 deletions
rild.te
with
21 additions
and
0 deletions
device.te
+
6
−
0
View file @
7fa2f9e0
...
@@ -37,3 +37,9 @@ type urandom_device, dev_type;
...
@@ -37,3 +37,9 @@ type urandom_device, dev_type;
type video_device, dev_type;
type video_device, dev_type;
type vcs_device, dev_type;
type vcs_device, dev_type;
type zero_device, dev_type;
type zero_device, dev_type;
# All devices have a uart for the hci
# attach service. The uart dev node
# varies per device. This type
# is used in per device policy
type hci_attach_dev, dev_type;
This diff is collapsed.
Click to expand it.
file.te
+
5
−
0
View file @
7fa2f9e0
...
@@ -56,6 +56,11 @@ type efs_file, file_type;
...
@@ -56,6 +56,11 @@ type efs_file, file_type;
# Type for wallpaper file.
# Type for wallpaper file.
type wallpaper_file, file_type;
type wallpaper_file, file_type;
# All devices have bluetooth efs files. But they
# vary per device, so this type is used in per
# defice policy
type bluetooth_efs_file, file_type;
# Socket types
# Socket types
type bluetooth_socket, file_type;
type bluetooth_socket, file_type;
type dbus_socket, file_type;
type dbus_socket, file_type;
...
...
This diff is collapsed.
Click to expand it.
hci_attach.te
0 → 100644
+
9
−
0
View file @
7fa2f9e0
type hci_attach, domain;
type hci_attach_exec, exec_type, file_type;
init_daemon_domain(hci_attach)
allow hci_attach kernel:system module_request;
allow hci_attach hci_attach_dev:chr_file rw_file_perms;
allow hci_attach bluetooth_efs_file:dir r_dir_perms;
allow hci_attach bluetooth_efs_file:file r_file_perms;
This diff is collapsed.
Click to expand it.
rild.te
+
1
−
0
View file @
7fa2f9e0
...
@@ -17,6 +17,7 @@ allow rild mtd_device:dir search;
...
@@ -17,6 +17,7 @@ allow rild mtd_device:dir search;
allow rild efs_file:dir create_dir_perms;
allow rild efs_file:dir create_dir_perms;
allow rild efs_file:file create_file_perms;
allow rild efs_file:file create_file_perms;
allow rild shell_exec:file rx_file_perms;
allow rild shell_exec:file rx_file_perms;
allow rild bluetooth_efs_file:file r_file_perms;
dontaudit rild self:capability sys_admin;
dontaudit rild self:capability sys_admin;
# XXX Label sysfs files with a specific type?
# XXX Label sysfs files with a specific type?
allow rild sysfs:file rw_file_perms;
allow rild sysfs:file rw_file_perms;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment