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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
42c7357e
Commit
42c7357e
authored
Sep 27, 2013
by
Geremy Condra
Committed by
Gerrit Code Review
Sep 27, 2013
Browse files
Options
Downloads
Plain Diff
Merge "Isolate untrusted app ptys from other domains."
parents
b0712c1e
2dc4acf3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
te_macros
+14
-0
14 additions, 0 deletions
te_macros
untrusted_app.te
+1
-1
1 addition, 1 deletion
untrusted_app.te
with
15 additions
and
1 deletion
te_macros
+
14
−
0
View file @
42c7357e
...
...
@@ -306,6 +306,20 @@ allow $1 klog_device:chr_file { create open write unlink };
allow $1 device:dir { write add_name remove_name };
')
#####################################
# create_pty(domain)
# Allow domain to create and use a pty, isolated from any other domain ptys.
define(`create_pty', `
# Each domain gets a unique devpts type.
type $1_devpts, fs_type;
# Label the pty with the unique type when created.
type_transition $1 devpts:chr_file $1_devpts;
# Allow use of the pty after creation.
allow $1 $1_devpts:chr_file { open getattr read write ioctl };
# Note: devpts:dir search and ptmx_device:chr_file rw_file_perms
# allowed to everyone via domain.te.
')
#####################################
# Non system_app application set
#
...
...
This diff is collapsed.
Click to expand it.
untrusted_app.te
+
1
−
1
View file @
42c7357e
...
...
@@ -38,7 +38,7 @@ allow untrusted_app port:{ tcp_socket udp_socket } name_bind;
# Allow the allocation and use of ptys
# Used by: https://play.google.com/store/apps/details?id=jackpal.androidterm
allow
untrusted_app
devpts:chr_file rw_file_perms;
create_pty(
untrusted_app
)
# Used by Finsky / Android "Verify Apps" functionality when
# running "adb install foo.apk".
...
...
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