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
c7927b8d
Commit
c7927b8d
authored
8 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "ueventd: allow getattr on blk and chr types."
parents
68d67a0f
cd109d44
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
domain.te
+2
-1
2 additions, 1 deletion
domain.te
ueventd.te
+8
-2
8 additions, 2 deletions
ueventd.te
with
10 additions
and
3 deletions
domain.te
+
2
−
1
View file @
c7927b8d
...
@@ -216,7 +216,7 @@ neverallow {
...
@@ -216,7 +216,7 @@ neverallow {
-init
-init
-kernel
-kernel
-shell # For CTS and is restricted to getattr in shell.te
-shell # For CTS and is restricted to getattr in shell.te
-ueventd
-ueventd
# Further restricted in ueventd.te
} kmem_device:chr_file *;
} kmem_device:chr_file *;
neverallow * kmem_device:chr_file ~{ create relabelto unlink setattr getattr };
neverallow * kmem_device:chr_file ~{ create relabelto unlink setattr getattr };
...
@@ -330,6 +330,7 @@ neverallow {
...
@@ -330,6 +330,7 @@ neverallow {
-recovery
-recovery
-system_server
-system_server
-shell # Shell is further restricted in shell.te
-shell # Shell is further restricted in shell.te
-ueventd # Further restricted in ueventd.te
} frp_block_device:blk_file rw_file_perms;
} frp_block_device:blk_file rw_file_perms;
# No domain other than recovery and update_engine can write to system partition(s).
# No domain other than recovery and update_engine can write to system partition(s).
...
...
This diff is collapsed.
Click to expand it.
ueventd.te
+
8
−
2
View file @
c7927b8d
...
@@ -20,8 +20,8 @@ allow ueventd sysfs_devices_system_cpu:file rw_file_perms;
...
@@ -20,8 +20,8 @@ allow ueventd sysfs_devices_system_cpu:file rw_file_perms;
allow ueventd tmpfs:chr_file rw_file_perms;
allow ueventd tmpfs:chr_file rw_file_perms;
allow ueventd dev_type:dir create_dir_perms;
allow ueventd dev_type:dir create_dir_perms;
allow ueventd dev_type:lnk_file { create unlink };
allow ueventd dev_type:lnk_file { create unlink };
allow ueventd dev_type:chr_file { create setattr unlink };
allow ueventd dev_type:chr_file {
getattr
create setattr unlink };
allow ueventd dev_type:blk_file { relabelfrom relabelto create setattr unlink };
allow ueventd dev_type:blk_file {
getattr
relabelfrom relabelto create setattr unlink };
allow ueventd self:netlink_kobject_uevent_socket create_socket_perms;
allow ueventd self:netlink_kobject_uevent_socket create_socket_perms;
allow ueventd efs_file:dir search;
allow ueventd efs_file:dir search;
allow ueventd efs_file:file r_file_perms;
allow ueventd efs_file:file r_file_perms;
...
@@ -39,3 +39,9 @@ allow ueventd self:process setfscreate;
...
@@ -39,3 +39,9 @@ allow ueventd self:process setfscreate;
neverallow ueventd property_socket:sock_file write;
neverallow ueventd property_socket:sock_file write;
neverallow ueventd init:unix_stream_socket connectto;
neverallow ueventd init:unix_stream_socket connectto;
neverallow ueventd property_type:property_service set;
neverallow ueventd property_type:property_service set;
# Restrict ueventd access on block devices to maintenence operations.
neverallow ueventd dev_type:blk_file ~{ getattr relabelfrom relabelto create setattr unlink };
# Only relabelto as we would never want to relabelfrom kmem_device
neverallow ueventd kmem_device:chr_file ~{ getattr create setattr unlink relabelto };
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