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
143d04ce
Commit
143d04ce
authored
11 years ago
by
William Roberts
Committed by
Android Git Automerger
11 years ago
Browse files
Options
Downloads
Plain Diff
am
70479ab3
: am
85c5fc21
: Start confining ueventd
* commit '
70479ab3
': Start confining ueventd
parents
e6b44e8a
70479ab3
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
domain.te
+2
-2
2 additions, 2 deletions
domain.te
ueventd.te
+18
-1
18 additions, 1 deletion
ueventd.te
with
20 additions
and
3 deletions
domain.te
+
2
−
2
View file @
143d04ce
...
@@ -139,8 +139,8 @@ neverallow { domain -relabeltodomain } *:dir_file_class_set relabelto;
...
@@ -139,8 +139,8 @@ neverallow { domain -relabeltodomain } *:dir_file_class_set relabelto;
# Only init should be able to load SELinux policies
# Only init should be able to load SELinux policies
neverallow { domain -init } kernel:security load_policy;
neverallow { domain -init } kernel:security load_policy;
# Only init and system_server should be able to access HW RNG
# Only init
, ueventd
and system_server should be able to access HW RNG
neverallow { domain -init -system_server -unconfineddomain } hw_random_device:chr_file *;
neverallow { domain -init -system_server
-ueventd
-unconfineddomain } hw_random_device:chr_file *;
# Ensure that all entrypoint executables are in exec_type.
# Ensure that all entrypoint executables are in exec_type.
neverallow domain { file_type -exec_type }:file entrypoint;
neverallow domain { file_type -exec_type }:file entrypoint;
This diff is collapsed.
Click to expand it.
ueventd.te
+
18
−
1
View file @
143d04ce
...
@@ -3,5 +3,22 @@
...
@@ -3,5 +3,22 @@
type ueventd, domain;
type ueventd, domain;
permissive ueventd;
permissive ueventd;
tmpfs_domain(ueventd)
tmpfs_domain(ueventd)
unconfined_domain(ueventd)
write_klog(ueventd)
security_access_policy(ueventd)
relabelto_domain(ueventd)
allow ueventd rootfs:file entrypoint;
allow ueventd rootfs:file entrypoint;
allow ueventd init:process sigchld;
allow ueventd self:capability { chown mknod net_admin setgid fsetid sys_rawio dac_override fowner };
allow ueventd device:file create_file_perms;
allow ueventd device:chr_file rw_file_perms;
allow ueventd sysfs:file rw_file_perms;
allow ueventd sysfs:file setattr;
allow ueventd sysfs_type:file { relabelfrom relabelto };
allow ueventd tmpfs:chr_file rw_file_perms;
allow ueventd dev_type:dir create_dir_perms;
allow ueventd dev_type:lnk_file { create unlink };
allow ueventd dev_type:chr_file { create setattr unlink };
allow ueventd dev_type:blk_file { create setattr unlink };
allow ueventd self:netlink_kobject_uevent_socket *;
allow ueventd efs_file:dir search;
allow ueventd efs_file:file r_file_perms;
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