View Issue Details

IDProjectCategoryView StatusLast Update
0016800CentOS-8selinux-policypublic2019-12-04 12:59
ReporterWSairus 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.0.1905 
Target VersionFixed in Version 
Summary0016800: Allow php-fpm write access to /var/run/redis/redis.sock
Descriptionphp-fpm can't write/read to/from the redis socket /var/run/redis/redis.sock

Version number of component:
selinux-policy-3.14.1

Steps To ReproduceHow reproducible:
First, install and configure redis to use a socket at /var/run/redis/redis.sock (where the PID is by default).
Then, try to use redis from php:

<?php

ini_set( 'display_errors', 'On' );
$redis = new Redis();

$redis->pconnect( '/var/run/redis/redis.sock' );

echo 'sending ping... ';
echo $redis->ping() . "\n";

echo 'setting name ... ' . "\n";
$redis->set( 'Name', 'Test' );

echo 'getting name. The name is: ';
echo $redis->get( 'Name' ) . "\n";
Additional InformationOriginal problem was found in RHEL 6, then it was fixed. In RHEL/CentOS 7 php-fpm works fine with Redis socket. In version 8 problem still actual. Original discussion: https://bugzilla.redhat.com/show_bug.cgi?id=1178210
Tagsselinux

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-12-04 12:59 WSairus New Issue
2019-12-04 12:59 WSairus Tag Attached: selinux