Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
sepolicy: Resolve denials from setting swappiness
Browse files Browse the repository at this point in the history
Change-Id: I20c6e2b60ce3a7802992aa7dca767efbd7480f6f
  • Loading branch information
niclimcy authored and AdrianDC committed Aug 18, 2020
1 parent 4c7ff80 commit 768fef1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sepolicy/file.te
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# /proc
type proc_swap, fs_type;

# /sys
type sysfs_als, fs_type, sysfs_type;
type sysfs_block_iosched, fs_type, sysfs_type;
Expand Down
1 change: 1 addition & 0 deletions sepolicy/genfs_contexts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
genfscon proc /sys/vm/swappiness u:object_r:proc_swap:s0
2 changes: 2 additions & 0 deletions sepolicy/vendor_init.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#============= vendor_init ==============
allow vendor_init proc_swap:file write;

0 comments on commit 768fef1

Please sign in to comment.