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
4e036181
Commit
4e036181
authored
9 years ago
by
Nick Kralevich
Committed by
android-build-merger
9 years ago
Browse files
Options
Downloads
Plain Diff
undeprecate /proc/cpuinfo, more shell permissions
am:
f8f937a1
* commit '
f8f937a1
': undeprecate /proc/cpuinfo, more shell permissions
parents
654e9129
f8f937a1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bootanim.te
+0
-2
0 additions, 2 deletions
bootanim.te
domain.te
+3
-0
3 additions, 0 deletions
domain.te
domain_deprecated.te
+0
-1
0 additions, 1 deletion
domain_deprecated.te
shell.te
+7
-0
7 additions, 0 deletions
shell.te
with
10 additions
and
3 deletions
bootanim.te
+
0
−
2
View file @
4e036181
...
...
@@ -28,9 +28,7 @@ allow bootanim ion_device:chr_file rw_file_perms;
# Read access to pseudo filesystems.
r_dir_file(bootanim, proc)
r_dir_file(bootanim, sysfs)
r_dir_file(bootanim, sysfs_devices_system_cpu)
r_dir_file(bootanim, cgroup)
allow bootanim proc_cpuinfo:file r_file_perms;
# System file accesses.
allow bootanim system_file:dir r_dir_perms;
This diff is collapsed.
Click to expand it.
domain.te
+
3
−
0
View file @
4e036181
...
...
@@ -109,6 +109,9 @@ allow domain system_data_file:lnk_file read;
# required by the dynamic linker
allow domain proc:lnk_file read;
# /proc/cpuinfo
allow domain proc_cpuinfo:file r_file_perms;
# toybox loads libselinux which stats /sys/fs/selinux/
allow domain selinuxfs:file getattr;
allow domain sysfs:dir search;
...
...
This diff is collapsed.
Click to expand it.
domain_deprecated.te
+
0
−
1
View file @
4e036181
...
...
@@ -66,7 +66,6 @@ r_dir_file(domain_deprecated, sysfs)
r_dir_file(domain_deprecated, inotify)
r_dir_file(domain_deprecated, cgroup)
r_dir_file(domain_deprecated, proc_net)
allow domain_deprecated proc_cpuinfo:file r_file_perms;
# Get SELinux enforcing status.
allow domain_deprecated selinuxfs:dir r_dir_perms;
...
...
This diff is collapsed.
Click to expand it.
shell.te
+
7
−
0
View file @
4e036181
...
...
@@ -96,6 +96,13 @@ r_dir_file(shell, cgroup)
allow shell domain:dir { search open read getattr };
allow shell domain:{ file lnk_file } { open read getattr };
# statvfs() of /proc and other labeled filesystems
# (yaffs2, jffs2, ext2, ext3, ext4, xfs, btrfs, f2fs, squashfs)
allow shell { proc labeledfs }:filesystem getattr;
# stat() of /dev
allow shell device:dir getattr;
# allow shell to read /proc/pid/attr/current for ps -Z
allow shell domain:process getattr;
...
...
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