Category: process

SymfonyComponentProcessProcess unable to run audit2allow

I’m trying to execute audit2allow using SymfonyComponentProcessProcess. When I run exec(“audit2allow -a -M a2a”); in PHP, it works just fine, a2a.pp and a2a.te is produced. $process = new Process([‘audit2allow’, ‘-a’, ‘-M’, ‘a2a’]); $process->run(); if (!$process->isSuccessful()) { throw new ProcessFailedException($process); }…

Tailing a log within Laravel never executes Symfony Process callback

I’m trying to tail a log file using a console command to detect specific errors. However, the call back in the run(…) portion of my script is never called in the Symfony Process: use IlluminateConsoleCommand; use SymfonyComponentProcessProcess; class MonitorLogs extends…