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
162319d0
Commit
162319d0
authored
7 years ago
by
Neil Fuller
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Allow the shell user to run tzdatacheck am:
5684f61f
am:
072f3865
Change-Id: Id583a952f22f4f70d9d9c27572ce0da692ec2688
parents
24409c36
072f3865
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/shell.te
+1
-0
1 addition, 0 deletions
public/shell.te
public/tzdatacheck.te
+12
-0
12 additions, 0 deletions
public/tzdatacheck.te
with
13 additions
and
0 deletions
public/shell.te
+
1
−
0
View file @
162319d0
...
@@ -46,6 +46,7 @@ allow shell input_device:chr_file rw_file_perms;
...
@@ -46,6 +46,7 @@ allow shell input_device:chr_file rw_file_perms;
r_dir_file(shell, system_file)
r_dir_file(shell, system_file)
allow shell system_file:file x_file_perms;
allow shell system_file:file x_file_perms;
allow shell toolbox_exec:file rx_file_perms;
allow shell toolbox_exec:file rx_file_perms;
allow shell tzdatacheck_exec:file rx_file_perms;
allow shell shell_exec:file rx_file_perms;
allow shell shell_exec:file rx_file_perms;
allow shell zygote_exec:file rx_file_perms;
allow shell zygote_exec:file rx_file_perms;
...
...
This diff is collapsed.
Click to expand it.
public/tzdatacheck.te
+
12
−
0
View file @
162319d0
...
@@ -4,3 +4,15 @@ type tzdatacheck_exec, exec_type, file_type;
...
@@ -4,3 +4,15 @@ type tzdatacheck_exec, exec_type, file_type;
allow tzdatacheck zoneinfo_data_file:dir create_dir_perms;
allow tzdatacheck zoneinfo_data_file:dir create_dir_perms;
allow tzdatacheck zoneinfo_data_file:file unlink;
allow tzdatacheck zoneinfo_data_file:file unlink;
# Below are strong assertion that only init, system_server and tzdatacheck
# can modify the /data time zone rules directories. This is to make it very
# clear that only these domains should modify the actual time zone rules data.
# The tzdatacheck binary itself may be executed by shell for tests but it must
# not be able to modify the real rules.
# If other users / binaries could modify time zone rules on device this might
# have negative implications for users (who may get incorrect local times)
# or break assumptions made / invalidate data held by the components actually
# responsible for updating time zone rules.
neverallow { domain -system_server -init -tzdatacheck } zoneinfo_data_file:file no_w_file_perms;
neverallow { domain -system_server -init -tzdatacheck } zoneinfo_data_file:dir no_w_dir_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