Article 508NG SELinux: How to allow access to /proc

SELinux: How to allow access to /proc

by
blueh2o
from LinuxQuestions.org on (#508NG)
I have a process that uses pgrep to look in /proc for various processes. SELinux blocks this access. I want to allow it but there are too many types:

allow svc_start_t auditd_t:dir getattr;
allow svc_start_t crond_t:dir getattr;
allow svc_start_t dhcpc_t:dir getattr;
allow svc_start_t firewalld_t:dir getattr;
allow svc_start_t getty_t:dir getattr;
allow svc_start_t httpd_rotatelogs_t:dir getattr;
allow svc_start_t httpd_t:dir getattr;
allow svc_start_t irqbalance_t:dir getattr;
allow svc_start_t kernel_t:dir getattr;

etc etc etc

I want to do something like:

allow svc_start_t *:dir getattr search;

But it tells me "ERROR '* not allowed in this type of rule'"

What is the correct syntax?latest?d=yIl2AUoC8zA latest?i=pFRq5KXv2O4:RzSfDlidJEY:F7zBnMy latest?i=pFRq5KXv2O4:RzSfDlidJEY:V_sGLiP latest?d=qj6IDK7rITs latest?i=pFRq5KXv2O4:RzSfDlidJEY:gIN9vFwpFRq5KXv2O4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments