Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
80ea1d23
Commit
80ea1d23
authored
12 years ago
by
William Roberts
Committed by
Stephen Smalley
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
sdcard policy and fuse device label.
parent
7fa2f9e0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
device.te
+1
-0
1 addition, 0 deletions
device.te
file_contexts
+2
-0
2 additions, 0 deletions
file_contexts
sdcardd.te
+13
-0
13 additions, 0 deletions
sdcardd.te
with
16 additions
and
0 deletions
device.te
+
1
−
0
View file @
80ea1d23
...
@@ -37,6 +37,7 @@ type urandom_device, dev_type;
...
@@ -37,6 +37,7 @@ 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;
type fuse_device, dev_type;
# All devices have a uart for the hci
# All devices have a uart for the hci
# attach service. The uart dev node
# attach service. The uart dev node
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
2
−
0
View file @
80ea1d23
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
/dev/device-mapper u:object_r:dm_device:s0
/dev/device-mapper u:object_r:dm_device:s0
/dev/eac u:object_r:audio_device:s0
/dev/eac u:object_r:audio_device:s0
/dev/full u:object_r:full_device:s0
/dev/full u:object_r:full_device:s0
/dev/fuse u:object_r:fuse_device:s0
/dev/graphics(/.*)? u:object_r:graphics_device:s0
/dev/graphics(/.*)? u:object_r:graphics_device:s0
/dev/input(/.*) u:object_r:input_device:s0
/dev/input(/.*) u:object_r:input_device:s0
/dev/kmem u:object_r:kmem_device:s0
/dev/kmem u:object_r:kmem_device:s0
...
@@ -96,6 +97,7 @@
...
@@ -96,6 +97,7 @@
/system/bin/bluetoothd u:object_r:bluetoothd_exec:s0
/system/bin/bluetoothd u:object_r:bluetoothd_exec:s0
/system/bin/wpa_supplicant u:object_r:wpa_exec:s0
/system/bin/wpa_supplicant u:object_r:wpa_exec:s0
/system/bin/qemud u:object_r:qemud_exec:s0
/system/bin/qemud u:object_r:qemud_exec:s0
/system/bin/sdcard u:object_r:sdcardd_exec:s0
/system/xbin/su u:object_r:su_exec:s0
/system/xbin/su u:object_r:su_exec:s0
/system/vendor/bin/gpsd u:object_r:gpsd_exec:s0
/system/vendor/bin/gpsd u:object_r:gpsd_exec:s0
#############################
#############################
...
...
This diff is collapsed.
Click to expand it.
sdcardd.te
0 → 100644
+
13
−
0
View file @
80ea1d23
type sdcardd, domain;
type sdcardd_exec, exec_type, file_type;
init_daemon_domain(sdcardd)
allow sdcardd cgroup:dir create_dir_perms;
allow sdcardd fuse_device:chr_file rw_file_perms;
allow sdcardd rootfs:dir mounton;
allow sdcardd sdcard:filesystem mount;
allow sdcardd self:capability { setuid setgid };
allow sdcardd system_data_file:dir create_dir_perms;
allow sdcardd system_data_file:file create_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