• 1

Re: PHP to list all processes with ps -aux

Cut and paste:

#===========================================cut =========================================
policy_module(mytest, 1.0.0)
gen_require(`
type httpd_t;
')
domain_read_all_domains_state(httpd_t)
#========================================== cut =========================================

cat > mytest.te
^v
^d

# make -f /usr/share/selinux/devel/Makefile
# semodule -i mytest.pp



Re: PHP to list all processes with ps -aux

This is some hardcore stuff man!

I got it in there ok but it still doesn't want to allow me to list all processes with php. :P

I made the file with that text in it, make ran with no errors and the module installed fine too.

I'm still stuck where setenforce 0 lets me do it and 1 turns it right back off. :(

I also rebooted the whole thing just to make sure.

Thank you very much for your help Sir!

If you have any other insight that would be awesome! But I guess I have some other issue.


Re: PHP to list all processes with ps -aux

Send me your current avc's, dwalsh@redhat.com, when ps fails.

ausearch -m avc -ts recent

Re: PHP to list all processes with ps -aux

Ok, there's a lot all from the same time stamp so I put it in a file for you here: http://resistdesign.com/files/temp/AVCs.txt

Re: PHP to list all processes with ps -aux

This just means you are doing it with a separate process or a cgi process

#===========================================cut =========================================
policy_module(mytest, 1.0.0)
gen_require(`
type httpd_sys_script_t;
')
domain_read_all_domains_state(httpd_sys_script_t)
#========================================== cut =========================================

cat > mytest.te
^v
^d

# make -f /usr/share/selinux/devel/Makefile
# semodule -i mytest.pp

  • 1
?

Log in