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
2ad88481
Commit
2ad88481
authored
8 years ago
by
Sandeep Patil
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "add netutils_wrappers" into oc-dev am:
acb66317
am:
6a4b6c68
Change-Id: Ie9c93a313215652d22fa2bc93aeb2a468916e008
parents
33070fb9
6a4b6c68
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
private/file_contexts
+1
-0
1 addition, 0 deletions
private/file_contexts
private/netutils_wrapper.te
+28
-0
28 additions, 0 deletions
private/netutils_wrapper.te
public/domain.te
+1
-0
1 addition, 0 deletions
public/domain.te
public/netutils_wrapper.te
+4
-0
4 additions, 0 deletions
public/netutils_wrapper.te
with
34 additions
and
0 deletions
private/file_contexts
+
1
−
0
View file @
2ad88481
...
...
@@ -191,6 +191,7 @@
/system/bin/dumpstate u:object_r:dumpstate_exec:s0
/system/bin/incident u:object_r:incident_exec:s0
/system/bin/incidentd u:object_r:incidentd_exec:s0
/system/bin/netutils-wrapper-1\.0 u:object_r:netutils_wrapper_exec:s0
/system/bin/vold u:object_r:vold_exec:s0
/system/bin/netd u:object_r:netd_exec:s0
/system/bin/wificond u:object_r:wificond_exec:s0
...
...
This diff is collapsed.
Click to expand it.
private/netutils_wrapper.te
0 → 100644
+
28
−
0
View file @
2ad88481
typeattribute netutils_wrapper coredomain;
r_dir_file(netutils_wrapper, system_file);
# For netutils (ip, iptables, tc)
allow netutils_wrapper self:capability net_raw;
allow netutils_wrapper system_file:file { execute execute_no_trans };
allow netutils_wrapper proc_net:file { open read getattr };
allow netutils_wrapper self:rawip_socket create_socket_perms;
allow netutils_wrapper self:udp_socket create_socket_perms;
allow netutils_wrapper self:capability net_admin;
# ip utils need everything but ioctl
allow netutils_wrapper self:netlink_route_socket ~ioctl;
allow netutils_wrapper self:netlink_xfrm_socket ~ioctl;
# For netutils (ndc) to be able to talk to netd
allow netutils_wrapper netd_socket:sock_file { open getattr read write append };
allow netutils_wrapper netd:unix_stream_socket { read getattr connectto };
# For /data/misc/net access to ndc and ip
r_dir_file(netutils_wrapper, net_data_file)
domain_auto_trans({
domain
-coredomain
-appdomain
}, netutils_wrapper_exec, netutils_wrapper)
This diff is collapsed.
Click to expand it.
public/domain.te
+
1
−
0
View file @
2ad88481
...
...
@@ -691,6 +691,7 @@ full_treble_only(`
exec_type
-vendor_file_type
-crash_dump_exec
-netutils_wrapper_exec
}:file { entrypoint execute execute_no_trans };
')
')
...
...
This diff is collapsed.
Click to expand it.
public/netutils_wrapper.te
0 → 100644
+
4
−
0
View file @
2ad88481
type netutils_wrapper, domain;
type netutils_wrapper_exec, exec_type, file_type;
neverallow domain netutils_wrapper_exec:file execute_no_trans;
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