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
f74d7811
Commit
f74d7811
authored
10 years ago
by
Sreeram Ramachandran
Committed by
Lorenzo Colitti
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Introduce fwmarkd: a service to set the fwmark of sockets.
Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9
parent
f1f467f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
file.te
+1
-0
1 addition, 0 deletions
file.te
file_contexts
+1
-0
1 addition, 0 deletions
file_contexts
net.te
+3
-0
3 additions, 0 deletions
net.te
netd.te
+4
-0
4 additions, 0 deletions
netd.te
su.te
+3
-0
3 additions, 0 deletions
su.te
with
12 additions
and
0 deletions
file.te
+
1
−
0
View file @
f74d7811
...
...
@@ -118,6 +118,7 @@ type adbd_socket, file_type;
type bluetooth_socket, file_type;
type dnsproxyd_socket, file_type, mlstrustedobject;
type dumpstate_socket, file_type;
type fwmarkd_socket, file_type, mlstrustedobject;
type gps_socket, file_type;
type installd_socket, file_type;
type lmkd_socket, file_type;
...
...
This diff is collapsed.
Click to expand it.
file_contexts
+
1
−
0
View file @
f74d7811
...
...
@@ -79,6 +79,7 @@
/dev/socket/adbd u:object_r:adbd_socket:s0
/dev/socket/dnsproxyd u:object_r:dnsproxyd_socket:s0
/dev/socket/dumpstate u:object_r:dumpstate_socket:s0
/dev/socket/fwmarkd u:object_r:fwmarkd_socket:s0
/dev/socket/gps u:object_r:gps_socket:s0
/dev/socket/installd u:object_r:installd_socket:s0
/dev/socket/lmkd u:object_r:lmkd_socket:s0
...
...
This diff is collapsed.
Click to expand it.
net.te
+
3
−
0
View file @
f74d7811
...
...
@@ -18,5 +18,8 @@ allow netdomain self:netlink_route_socket { create_socket_perms nlmsg_read };
# Talks to netd via dnsproxyd socket.
unix_socket_connect(netdomain, dnsproxyd, netd)
# Talks to netd via fwmarkd socket.
unix_socket_connect(netdomain, fwmarkd, netd)
# Connect to mdnsd via mdnsd socket.
unix_socket_connect(netdomain, mdnsd, mdnsd)
This diff is collapsed.
Click to expand it.
netd.te
+
4
−
0
View file @
f74d7811
...
...
@@ -58,6 +58,10 @@ allow netd clatd:process signal;
allow netd ctl_mdnsd_prop:property_service set;
# Allow netd to operate on sockets that are passed to it.
allow netd netdomain:{tcp_socket udp_socket rawip_socket dccp_socket tun_socket} {read write getattr setattr getopt setopt};
allow netd netdomain:fd use;
###
### Neverallow rules
###
...
...
This diff is collapsed.
Click to expand it.
su.te
+
3
−
0
View file @
f74d7811
...
...
@@ -21,6 +21,9 @@ userdebug_or_eng(`
allow su su_tmpfs:file execute;
allow su debuggerd_prop:property_service set;
# Make su a net domain.
net_domain(su)
# su is also permissive to permit setenforce.
permissive su;
...
...
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