Skip to content
Snippets Groups Projects
Commit aef68b77 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep
Browse files

Move some perms back to domain

libselinux stats selinuxfs, as does every process that links against
libselinux such as toolbox. grant:
   allow domain selinuxfs:filesystem getattr;

domain is already granted:
   allow domain self:dir r_dir_perms;
   allow domain self:lnk_file r_file_perms;
   allow domain self:{ fifo_file file } rw_file_perms;
To make these possible, also grant:
   allow domain proc:dir search;

Change-Id: Ife6cfa2124c9d61bf908ac89a8444676acdb4259
parent 29a1e43e
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ allow domain self:process {
setrlimit
};
allow domain self:fd use;
allow domain proc:dir search;
allow domain self:dir r_dir_perms;
allow domain self:lnk_file r_file_perms;
allow domain self:{ fifo_file file } rw_file_perms;
......@@ -96,6 +97,7 @@ allow domain proc:lnk_file read;
# toybox loads libselinux which stats /sys/fs/selinux/
allow domain selinuxfs:file getattr;
allow domain sysfs:dir search;
allow domain selinuxfs:filesystem getattr;
###
### neverallow rules
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment