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
11c48d4c
Commit
11c48d4c
authored
11 years ago
by
Nick Kralevich
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Remove ping domain."
parents
a5066135
396015c3
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
app.te
+1
-2
1 addition, 2 deletions
app.te
file_contexts
+0
-1
0 additions, 1 deletion
file_contexts
ping.te
+0
-17
0 additions, 17 deletions
ping.te
shell.te
+3
-0
3 additions, 0 deletions
shell.te
shell_user.te
+3
-0
3 additions, 0 deletions
shell_user.te
with
7 additions
and
20 deletions
app.te
+
1
−
2
View file @
11c48d4c
...
@@ -67,7 +67,6 @@ allow appdomain system_data_file:file { execute execute_no_trans open };
...
@@ -67,7 +67,6 @@ allow appdomain system_data_file:file { execute execute_no_trans open };
# Execute the shell or other system executables.
# Execute the shell or other system executables.
allow appdomain shell_exec:file rx_file_perms;
allow appdomain shell_exec:file rx_file_perms;
allow appdomain system_file:file rx_file_perms;
allow appdomain system_file:file rx_file_perms;
allow appdomain ping_exec:file rx_file_perms;
# Read/write wallpaper file (opened by system).
# Read/write wallpaper file (opened by system).
allow appdomain wallpaper_file:file { read write };
allow appdomain wallpaper_file:file { read write };
...
@@ -268,7 +267,7 @@ neverallow { appdomain -unconfineddomain } { domain -appdomain }:process
...
@@ -268,7 +267,7 @@ neverallow { appdomain -unconfineddomain } { domain -appdomain }:process
{ sigkill sigstop signal };
{ sigkill sigstop signal };
# Transition to a non-app domain.
# Transition to a non-app domain.
# Exception for the shell domain, can transition to runas,
ping,
etc.
# Exception for the shell domain, can transition to runas, etc.
neverallow { appdomain -shell -unconfineddomain } ~appdomain:process
neverallow { appdomain -shell -unconfineddomain } ~appdomain:process
{ transition dyntransition };
{ transition dyntransition };
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
0
−
1
View file @
11c48d4c
...
@@ -142,7 +142,6 @@
...
@@ -142,7 +142,6 @@
/system/etc/dhcpcd(/.*)? u:object_r:dhcp_system_file:s0
/system/etc/dhcpcd(/.*)? u:object_r:dhcp_system_file: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
/system/bin/ping u:object_r:ping_exec:s0
/system/bin/dnsmasq u:object_r:dnsmasq_exec:s0
/system/bin/dnsmasq u:object_r:dnsmasq_exec:s0
/system/bin/hostapd u:object_r:hostapd_exec:s0
/system/bin/hostapd u:object_r:hostapd_exec:s0
/system/bin/clatd u:object_r:clatd_exec:s0
/system/bin/clatd u:object_r:clatd_exec:s0
...
...
This diff is collapsed.
Click to expand it.
ping.te
deleted
100644 → 0
+
0
−
17
View file @
a5066135
type ping, domain;
permissive ping;
type ping_exec, exec_type, file_type;
domain_auto_trans(shell, ping_exec, ping)
domain_auto_trans(dumpstate, ping_exec, ping)
allow ping self:capability net_raw;
allow ping self:rawip_socket create_socket_perms;
allow ping self:udp_socket create_socket_perms;
allow ping node:rawip_socket node_bind;
allow ping dnsproxyd_socket:sock_file write;
allow ping netd:unix_stream_socket connectto;
allow ping devpts:chr_file rw_file_perms;
allow ping shell:fd use;
allow ping dumpstate:fd use;
allow ping dumpstate:unix_stream_socket { read write };
This diff is collapsed.
Click to expand it.
shell.te
+
3
−
0
View file @
11c48d4c
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
type shell, domain, shelldomain, mlstrustedsubject;
type shell, domain, shelldomain, mlstrustedsubject;
type shell_exec, exec_type, file_type;
type shell_exec, exec_type, file_type;
# Create and use network sockets.
net_domain(shell)
# Run app_process.
# Run app_process.
# XXX Transition into its own domain?
# XXX Transition into its own domain?
app_domain(shell)
app_domain(shell)
...
...
This diff is collapsed.
Click to expand it.
shell_user.te
+
3
−
0
View file @
11c48d4c
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
type shell, domain, shelldomain, mlstrustedsubject;
type shell, domain, shelldomain, mlstrustedsubject;
type shell_exec, exec_type, file_type;
type shell_exec, exec_type, file_type;
# Create and use network sockets.
net_domain(shell)
# Run app_process.
# Run app_process.
# XXX Transition into its own domain?
# XXX Transition into its own domain?
app_domain(shell)
app_domain(shell)
...
...
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