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
f4c76c5f
Commit
f4c76c5f
authored
8 years ago
by
Nick Kralevich
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
Revert "Restore system_server ioctl socket access." am:
58305da9
am:
b2245d64
Change-Id: Ib8ab9ee9051d405801857d30df0a37c43a24928e
parents
ff6715f3
b2245d64
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
public/domain.te
+1
-1
1 addition, 1 deletion
public/domain.te
public/system_server.te
+1
-1
1 addition, 1 deletion
public/system_server.te
with
2 additions
and
2 deletions
public/domain.te
+
1
−
1
View file @
f4c76c5f
...
...
@@ -177,7 +177,7 @@ allowxperm domain domain:{ unix_dgram_socket unix_stream_socket }
###
# All socket ioctls must be restricted to a whitelist.
neverallowxperm
{
domain
-system_server }
domain:socket_class_set ioctl { 0 };
neverallowxperm domain domain:socket_class_set ioctl { 0 };
# Do not allow any domain other than init or recovery to create unlabeled files.
neverallow { domain -init -recovery } unlabeled:dir_file_class_set create;
...
...
This diff is collapsed.
Click to expand it.
public/system_server.te
+
1
−
1
View file @
f4c76c5f
...
...
@@ -81,7 +81,7 @@ allow system_server self:netlink_generic_socket create_socket_perms_no_ioctl;
# to the kernel. The ioctl permission is specifically omitted here, but may
# be added to device specific policy along with the ioctl commands to be
# whitelisted.
allow system_server self:socket create_socket_perms;
allow system_server self:socket create_socket_perms
_no_ioctl
;
# Set and get routes directly via netlink.
allow system_server self:netlink_route_socket nlmsg_write;
...
...
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