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
2714e41a
Commit
2714e41a
authored
10 years ago
by
Nick Kralevich
Committed by
Android Git Automerger
10 years ago
Browse files
Options
Downloads
Plain Diff
am
b4876619
: Merge "bootchart: add policy rules for bootchart"
* commit '
b4876619
': bootchart: add policy rules for bootchart
parents
a02dbf4e
b4876619
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
adbd.te
+2
-0
2 additions, 0 deletions
adbd.te
file.te
+2
-0
2 additions, 0 deletions
file.te
file_contexts
+3
-0
3 additions, 0 deletions
file_contexts
init.te
+6
-1
6 additions, 1 deletion
init.te
shell.te
+6
-0
6 additions, 0 deletions
shell.te
with
19 additions
and
1 deletion
adbd.te
+
2
−
0
View file @
2714e41a
...
@@ -84,3 +84,5 @@ allow adbd system_file:file r_file_perms;
...
@@ -84,3 +84,5 @@ allow adbd system_file:file r_file_perms;
allow adbd kernel:security read_policy;
allow adbd kernel:security read_policy;
allow adbd surfaceflinger_service:service_manager find;
allow adbd surfaceflinger_service:service_manager find;
allow adbd bootchart_data_file:dir search;
allow adbd bootchart_data_file:file r_file_perms;
This diff is collapsed.
Click to expand it.
file.te
+
2
−
0
View file @
2714e41a
...
@@ -79,6 +79,8 @@ type shell_data_file, file_type, data_file_type, mlstrustedobject;
...
@@ -79,6 +79,8 @@ type shell_data_file, file_type, data_file_type, mlstrustedobject;
type gps_data_file, file_type, data_file_type;
type gps_data_file, file_type, data_file_type;
# /data/property
# /data/property
type property_data_file, file_type, data_file_type;
type property_data_file, file_type, data_file_type;
# /data/bootchart
type bootchart_data_file, file_type, data_file_type;
# /data/misc subdirectories
# /data/misc subdirectories
type adb_keys_file, file_type, data_file_type;
type adb_keys_file, file_type, data_file_type;
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
3
−
0
View file @
2714e41a
...
@@ -227,6 +227,9 @@
...
@@ -227,6 +227,9 @@
/data/misc/wifi/hostapd(/.*)? u:object_r:wpa_socket:s0
/data/misc/wifi/hostapd(/.*)? u:object_r:wpa_socket:s0
/data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0
/data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0
# Bootchart data
/data/bootchart(/.*)? u:object_r:bootchart_data_file:s0
# coredump directory for userdebug/eng devices
# coredump directory for userdebug/eng devices
/cores(/.*)? u:object_r:coredump_file:s0
/cores(/.*)? u:object_r:coredump_file:s0
...
...
This diff is collapsed.
Click to expand it.
init.te
+
6
−
1
View file @
2714e41a
# init switches to init domain (via init.rc).
# init switches to init domain (via init.rc).
type init, domain;
type init, domain
, mlstrustedsubject
;
permissive_or_unconfined(init)
permissive_or_unconfined(init)
tmpfs_domain(init)
tmpfs_domain(init)
...
@@ -164,6 +164,11 @@ allow init shell_data_file:file { getattr };
...
@@ -164,6 +164,11 @@ allow init shell_data_file:file { getattr };
# Set UID and GID for services.
# Set UID and GID for services.
allow init self:capability { setuid setgid };
allow init self:capability { setuid setgid };
# For bootchart to read the /proc/$pid/cmdline file of each process,
# we need to have following line to allow init to have access
# to different domains.
r_dir_file(init, domain)
# Use setexeccon(), setfscreatecon(), and setsockcreatecon().
# Use setexeccon(), setfscreatecon(), and setsockcreatecon().
# setexec is for services with seclabel options.
# setexec is for services with seclabel options.
# setfscreate is for labeling directories and socket files.
# setfscreate is for labeling directories and socket files.
...
...
This diff is collapsed.
Click to expand it.
shell.te
+
6
−
0
View file @
2714e41a
...
@@ -64,3 +64,9 @@ allow shell service_manager_type:service_manager find;
...
@@ -64,3 +64,9 @@ allow shell service_manager_type:service_manager find;
# allow shell to look through /proc/ for ps, top
# allow shell to look through /proc/ for ps, top
allow shell domain:dir { search open read getattr };
allow shell domain:dir { search open read getattr };
allow shell domain:{ file lnk_file } { open read getattr };
allow shell domain:{ file lnk_file } { open read getattr };
# enable shell domain to read/write files/dirs for bootchart data
# User will creates the start and stop file via adb shell
# and read other files created by init process under /data/bootchart
allow shell bootchart_data_file:dir rw_dir_perms;
allow shell bootchart_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