You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting a file.managed.check_cmd on RedHat family on (presumably) all 6.x versions, if SELinux is enabled then the check will always fail with a "Permission denied".
I have the full details (and a fix with a compiled SELinux policy package, ready to go!) in saltstack-formulas/openssh-formula#147. I have also included an example state that will apply said module, though as the docs suggest it pulls in policycoreutils and policycoreutils-python as dependencies.
Setup
Tested on a CentOS 6.10 VM minion and a Centos 7.6 VM master.
Salt Version:
Salt: 2018.3.3Dependency Versions:
cffi: 1.11.5cherrypy: unknowndateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not Installedioflo: Not InstalledJinja2: 2.8libgit2: 0.26.8libnacl: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack-pure: Not Installedmsgpack-python: 0.5.6mysql-python: Not Installedpycparser: 2.17pycrypto: 2.6.1pycryptodome: Not Installedpygit2: 0.26.4Python: 3.4.9 (default, Aug 14 2018, 21:28:57)python-gnupg: Not InstalledPyYAML: 3.11PyZMQ: 15.3.0RAET: Not Installedsmmap: Not Installedtimelib: Not InstalledTornado: 4.4.2ZMQ: 4.1.4System Versions:
dist: centos 7.6.1810 Corelocale: UTF-8machine: x86_64release: 3.10.0-957.1.3.el7.x86_64system: Linuxversion: CentOS Linux 7.6.1810 Core
minion:
Salt Version:
Salt: 2018.3.3Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not Installedioflo: Not InstalledJinja2: 2.8.1libgit2: Not Installedlibnacl: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack-pure: Not Installedmsgpack-python: 0.4.6mysql-python: Not Installedpycparser: Not Installedpycrypto: 2.6.1pycryptodome: Not Installedpygit2: Not InstalledPython: 2.7.13 (default, Mar 30 2018, 15:31:59)python-gnupg: Not InstalledPyYAML: 3.11PyZMQ: 14.5.0RAET: Not Installedsmmap: Not Installedtimelib: Not InstalledTornado: 4.2.1ZMQ: 4.0.5System Versions:
dist: centos 6.10 Finallocale: UTF-8machine: x86_64release: 2.6.32-754.10.1.el6.x86_64system: Linuxversion: CentOS 6.10 Final
The text was updated successfully, but these errors were encountered:
johnnybubonic
changed the title
RedHat-family 6.x will fail file.managed.check_cmd if SELinux is enabled
RedHat-family 6.x will fail file.managed.check_cmd if SELinux is enabled (includes fix)
Jan 27, 2019
worth noting that this does not happen on CentOS 7.6 at the very least, presumably due to a revised default policy.
johnnybubonic
changed the title
RedHat-family 6.x will fail file.managed.check_cmd if SELinux is enabled (includes fix)
RedHat-family 6.x may fail file.managed.check_cmd if SELinux is enabled (includes fix)
Jan 27, 2019
Description of Issue/Question
When attempting a file.managed.check_cmd on RedHat family on (presumably) all 6.x versions, if SELinux is enabled then the check will always fail with a "Permission denied".
I have the full details (and a fix with a compiled SELinux policy package, ready to go!) in saltstack-formulas/openssh-formula#147. I have also included an example state that will apply said module, though as the docs suggest it pulls in policycoreutils and policycoreutils-python as dependencies.
Setup
Tested on a CentOS 6.10 VM minion and a Centos 7.6 VM master.
Steps to Reproduce Issue
See saltstack-formulas/openssh-formula#147 for more details.
Versions Report
master:
minion:
The text was updated successfully, but these errors were encountered: