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
7daa05f1
Commit
7daa05f1
authored
7 years ago
by
Chenbo Feng
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
sepolicy: New sepolicy classes and rules about bpf object
am:
08f92f9c
Change-Id: Ibf75df4bfde087c80b9135819edf319673103eb5
parents
956e099e
08f92f9c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
private/access_vectors
+9
-0
9 additions, 0 deletions
private/access_vectors
private/security_classes
+1
-0
1 addition, 0 deletions
private/security_classes
public/netd.te
+3
-0
3 additions, 0 deletions
public/netd.te
with
13 additions
and
0 deletions
private/access_vectors
+
9
−
0
View file @
7daa05f1
...
@@ -282,6 +282,15 @@ inherits socket
...
@@ -282,6 +282,15 @@ inherits socket
class unix_dgram_socket
class unix_dgram_socket
inherits socket
inherits socket
class bpf
{
map_create
map_read
map_write
prog_load
prog_run
}
#
#
# Define the access vector interpretation for process-related objects
# Define the access vector interpretation for process-related objects
#
#
...
...
This diff is collapsed.
Click to expand it.
private/security_classes
+
1
−
0
View file @
7daa05f1
...
@@ -35,6 +35,7 @@ class packet_socket
...
@@ -35,6 +35,7 @@ class packet_socket
class key_socket
class key_socket
class unix_stream_socket
class unix_stream_socket
class unix_dgram_socket
class unix_dgram_socket
class bpf
# sysv-ipc-related classes
# sysv-ipc-related classes
class sem
class sem
...
...
This diff is collapsed.
Click to expand it.
public/netd.te
+
3
−
0
View file @
7daa05f1
...
@@ -107,6 +107,9 @@ allow netd netdomain:fd use;
...
@@ -107,6 +107,9 @@ allow netd netdomain:fd use;
# give netd permission to read and write netlink xfrm
# give netd permission to read and write netlink xfrm
allow netd self:netlink_xfrm_socket { create_socket_perms_no_ioctl nlmsg_write nlmsg_read };
allow netd self:netlink_xfrm_socket { create_socket_perms_no_ioctl nlmsg_write nlmsg_read };
# give netd permission to use eBPF functionalities
allow netd self:bpf { map_create map_read map_write prog_load prog_run };
# Allow netd to register as hal server.
# Allow netd to register as hal server.
add_hwservice(netd, system_net_netd_hwservice)
add_hwservice(netd, system_net_netd_hwservice)
hwbinder_use(netd)
hwbinder_use(netd)
...
...
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