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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
1527f4f7
Commit
1527f4f7
authored
May 10, 2017
by
TreeHugger Robot
Committed by
Android (Google) Code Review
May 10, 2017
Browse files
Options
Downloads
Plain Diff
Merge "allow init to run mke2fs tools to format partitions"
parents
8c79670e
5f573ab2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
private/e2fs.te
+14
-0
14 additions, 0 deletions
private/e2fs.te
private/file_contexts
+3
-0
3 additions, 0 deletions
private/file_contexts
private/init.te
+1
-0
1 addition, 0 deletions
private/init.te
public/e2fs.te
+1
-0
1 addition, 0 deletions
public/e2fs.te
public/file.te
+1
-0
1 addition, 0 deletions
public/file.te
with
20 additions
and
0 deletions
private/e2fs.te
0 → 100644
+
14
−
0
View file @
1527f4f7
type e2fs, domain, coredomain;
allow e2fs block_device:blk_file getattr;
allow e2fs block_device:dir search;
allow e2fs userdata_block_device:blk_file rw_file_perms;
# access /proc/filesystems
allow e2fs proc:file r_file_perms;
# access /sys/fs/ext4/features
allow e2fs sysfs_fs_ext4_features:file r_file_perms;
# access sselinux context files
allow e2fs file_contexts_file:file { getattr open read };
This diff is collapsed.
Click to expand it.
private/file_contexts
+
3
−
0
View file @
1527f4f7
...
...
@@ -17,6 +17,8 @@
/charger u:object_r:rootfs:s0
/init u:object_r:init_exec:s0
/sbin(/.*)? u:object_r:rootfs:s0
/sbin/e2fsdroid u:object_r:e2fs_exec:s0
/sbin/mke2fs u:object_r:e2fs_exec:s0
# For kernel modules
/lib(/.*)? u:object_r:rootfs:s0
...
...
@@ -450,6 +452,7 @@
/sys/devices/virtual/block/zram\d+(/.*)? u:object_r:sysfs_zram:s0
/sys/devices/virtual/block/zram\d+/uevent u:object_r:sysfs_zram_uevent:s0
/sys/devices/virtual/misc/hw_random(/.*)? u:object_r:sysfs_hwrandom:s0
/sys/fs/ext4/features(/.*)? u:object_r:sysfs_fs_ext4_features:s0
/sys/power/wake_lock -- u:object_r:sysfs_wake_lock:s0
/sys/power/wake_unlock -- u:object_r:sysfs_wake_lock:s0
/sys/kernel/uevent_helper -- u:object_r:usermodehelper:s0
...
...
This diff is collapsed.
Click to expand it.
private/init.te
+
1
−
0
View file @
1527f4f7
...
...
@@ -7,6 +7,7 @@ domain_trans(init, rootfs, adbd)
domain_trans(init, rootfs, charger)
domain_trans(init, rootfs, healthd)
domain_trans(init, rootfs, slideshow)
domain_auto_trans(init, e2fs_exec, e2fs)
recovery_only(`
domain_trans(init, rootfs, recovery)
')
...
...
This diff is collapsed.
Click to expand it.
public/e2fs.te
0 → 100644
+
1
−
0
View file @
1527f4f7
type e2fs_exec, exec_type, file_type;
This diff is collapsed.
Click to expand it.
public/file.te
+
1
−
0
View file @
1527f4f7
...
...
@@ -41,6 +41,7 @@ type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject;
type sysfs_wake_lock, fs_type, sysfs_type;
type sysfs_mac_address, fs_type, sysfs_type;
type sysfs_usb, sysfs_type, file_type, mlstrustedobject;
type sysfs_fs_ext4_features, sysfs_type, fs_type;
type configfs, fs_type;
# /sys/devices/system/cpu
type sysfs_devices_system_cpu, fs_type, sysfs_type;
...
...
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