Install just the required SELinux PSMP modules without doing repair

Install just the required SELinux PSMP modules without doing repair

134
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 16:12 PM


Symptom


When enabling SELinux on a PSMP server sometimes it is necessary to manually install just the required SELinux PSMP modules instead of doing a repair installation of PSM for SSH to install the modules automatically.



Environment


Privileged Access Manager (PAM, self-hosted) PSMP

PSM for SSH installed with SElinux=Disabled, on which we want to enable SElinux



Cause


In order for the Idira SSHD to run properly on a PSM for SSH server with SELinux enabled, some modules need to be installed.

If the PSM for SSH was installed before SELinux was enabled then the modules would not have been installed. The documentation recommends repairing the PSM for SSH installation to install the modules, but sometimes it is preferable not to run the repair installation and to install these modules manually.



Resolution


Do these steps to allow PSM for SSH to work with SELinux:

 

1. Install psmp SELinux modules.

The SELinux modules should be under /etc/opt/CARKpsmp/selinux

 

you should have the following in SSHD Customize mode:

psmp_sshd.pp

psmp_sshd_ext1.pp

psmp_sshd_ext2.pp. (on RHEL8 only)
 

you should have the following in Integrated mode:
psmp_integrated.pp 

psmp_integrated_rhel7.pp 
 

install them using 'semodule -i <module file>'

 

2. Update the SELinux security context for our client:

chcon -t bin_t /opt/CARKpsmp/components/psmperformsession

 

The above steps should allow PSM for SSH to work with SELinux enabled.

In case something is missing - you can troubleshoot SELinux by the following:

 

'audit2allow -aw' - list all SELinux failures and reasons - in a more human readable format

 

'audit2allow -a' - print to screen all the missing SELinux configurations



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001iVFCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail