Monthly Archives: April 2011

SELINUX local policy creation

Run the command audit2allow -m local -l > local.te < /var/log/audit.log This will generate a local.te file that will have the policy to allow the things denied int he current audit.log You’ll want to review closely to see if those … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Run subcommand and return output to variable in PHP

If you need to run a subcommand and pull the output you can use the proc_open like below. Kevin <?php   $descriptorspec = array( 0 => array(“pipe”, “r”),  // stdin is a pipe that the child will read from 1 … Continue reading

Posted in Uncategorized | Tagged | Leave a comment