Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:php-next
php-GnuPlot
0003-Overcome-fact-that-distros-use-SystemD-san...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-Overcome-fact-that-distros-use-SystemD-sandboxing-fo.patch of Package php-GnuPlot
From 7c8bca9ba9507724066ed95ea179456e73011cf3 Mon Sep 17 00:00:00 2001 From: Tuukka Pasanen <tuukka.pasanen@ilmi.fi> Date: Fri, 14 Jul 2023 10:45:48 +0300 Subject: [PATCH 3/3] Overcome fact that distros use SystemD sandboxing for php-fpm As Sandboxing one can't run stuff from '/usr/bin' this can be changed to use with PATH but as it also error prone make one and allowed place to run gnuplot binary --- GnuPlot.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GnuPlot.php b/GnuPlot.php index dff9060..021c058 100644 --- a/GnuPlot.php +++ b/GnuPlot.php @@ -449,7 +449,11 @@ class GnuPlot { 2 => array('pipe', 'r') ); - $this->process = proc_open('gnuplot', $descriptorspec, $pipes); + // As most distros lauch php-fpm and other with SystemD and + // Mostly they are hardened as hell. They don't let you + // run stuff from /usr/bin so use link to this location and + // be happy.. + $this->process = proc_open('/var/lib/php-GnuPlot/gnuplot', $descriptorspec, $pipes); if (!is_resource($this->process)) { throw new \Exception('Unable to run GnuPlot'); -- 2.41.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor