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
3d5c35f6
Commit
3d5c35f6
authored
8 years ago
by
Sandeep Patil
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
sepolicy: explicitly label all sepolicy files am:
136caa1b
am:
7dcab748
Change-Id: I0a9e49071e191903eeba44f145dd2b1c947662d4
parents
3b42777b
7dcab748
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
private/file_contexts
+10
-4
10 additions, 4 deletions
private/file_contexts
public/file.te
+3
-0
3 additions, 0 deletions
public/file.te
public/init.te
+3
-0
3 additions, 0 deletions
public/init.te
with
16 additions
and
4 deletions
private/file_contexts
+
10
−
4
View file @
3d5c35f6
...
...
@@ -41,15 +41,15 @@
/file_contexts\.bin u:object_r:file_contexts_file:s0
/nonplat_file_contexts u:object_r:file_contexts_file:s0
/plat_file_contexts u:object_r:file_contexts_file:s0
/mapping_sepolicy\.cil u:object_r:
rootfs
:s0
/nonplat_sepolicy\.cil u:object_r:
rootfs
:s0
/plat_sepolicy\.cil u:object_r:
rootfs
:s0
/mapping_sepolicy\.cil u:object_r:
sepolicy_file
:s0
/nonplat_sepolicy\.cil u:object_r:
sepolicy_file
:s0
/plat_sepolicy\.cil u:object_r:
sepolicy_file
:s0
/plat_property_contexts u:object_r:property_contexts_file:s0
/nonplat_property_contexts u:object_r:property_contexts_file:s0
/seapp_contexts u:object_r:seapp_contexts_file:s0
/nonplat_seapp_contexts u:object_r:seapp_contexts_file:s0
/plat_seapp_contexts u:object_r:seapp_contexts_file:s0
/sepolicy u:object_r:
rootfs
:s0
/sepolicy u:object_r:
sepolicy_file
:s0
/plat_service_contexts u:object_r:service_contexts_file:s0
/nonplat_service_contexts u:object_r:service_contexts_file:s0
...
...
@@ -253,15 +253,21 @@
/system/etc/selinux/plat_service_contexts u:object_r:service_contexts_file:s0
/system/etc/selinux/plat_file_contexts u:object_r:file_contexts_file:s0
/system/etc/selinux/plat_seapp_contexts u:object_r:seapp_contexts_file:s0
/system/etc/selinux/plat_sepolicy.cil u:object_r:sepolicy_file:s0
/system/etc/selinux/plat_sepolicy.cil.sha256 u:object_r:sepolicy_file:s0
#############################
# Vendor files
#
/vendor(/.*)? u:object_r:system_file:s0
/vendor/etc/selinux/mapping_sepolicy.cil u:object_r:sepolicy_file:s0
/vendor/etc/selinux/nonplat_property_contexts u:object_r:property_contexts_file:s0
/vendor/etc/selinux/nonplat_service_contexts u:object_r:service_contexts_file:s0
/vendor/etc/selinux/nonplat_file_contexts u:object_r:file_contexts_file:s0
/vendor/etc/selinux/nonplat_seapp_contexts u:object_r:seapp_contexts_file:s0
/vendor/etc/selinux/nonplat_sepolicy.cil u:object_r:sepolicy_file:s0
/vendor/etc/selinux/precompiled_sepolicy u:object_r:sepolicy_file:s0
/vendor/etc/selinux/precompiled_sepolicy.plat.sha256 u:object_r:sepolicy_file:s0
#############################
# OEM and ODM files
...
...
This diff is collapsed.
Click to expand it.
public/file.te
+
3
−
0
View file @
3d5c35f6
...
...
@@ -265,6 +265,9 @@ type property_contexts_file, file_type;
# seapp_contexts file
type seapp_contexts_file, file_type;
# sepolicy files binary and others
type sepolicy_file, file_type;
# service_contexts file
type service_contexts_file, file_type;
...
...
This diff is collapsed.
Click to expand it.
public/init.te
+
3
−
0
View file @
3d5c35f6
...
...
@@ -302,6 +302,9 @@ allow init self:process { setexec setfscreate setsockcreate };
# Get file context
allow init file_contexts_file:file r_file_perms;
# sepolicy access
allow init sepolicy_file:file r_file_perms;
# Perform SELinux access checks on setting properties.
selinux_check_access(init)
...
...
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