Hi,
I am trying to change a file on remote machine, I get the following error. Selinux is set to be permissive.
msg: Aborting, target uses selinux but python bindings (python-selinux) aren’t installed!
Hi,
I am trying to change a file on remote machine, I get the following error. Selinux is set to be permissive.
msg: Aborting, target uses selinux but python bindings (python-selinux) aren’t installed!
You still need to install the appropriate python-selinux package on
the target machine even though SELinux is set to permissive. The
permissive mode still generates warnings on policy violations, it just
doesn't block whatever triggered it,
so files on your system still need their security contexts set. If you
want to avoid this you will have to disable selinux, but I do not
advise that -- better to install the appropriate package.
On CentOS/RHEL the pacakge you need is libselinux-python. Not sure
about other OS's
K
Kahlil (Kal) Hodgson GPG: C9A02289
Head of Technology (m) +61 (0) 4 2573 0382
DealMax Pty Ltd (w) +61 (0) 3 9008 5281
Suite 1415
401 Docklands Drive
Docklands VIC 3008 Australia
"All parts should go together without forcing. You must remember that
the parts you are reassembling were disassembled by you. Therefore,
if you can't get them together again, there must be a reason. By all
means, do not use a hammer." -- IBM maintenance manual, 1925
Thank you very much!
Slight correction:
“On CentOS/RHEL the pacakge you need is libselinux-python. Not sure
about other OS’s”
You will need this package (on any platform) only if SELinux is enabled.
This is desired and expected behavior.