Connections through PSMP are stuck after entering the vault password.

Connections through PSMP are stuck after entering the vault password.

165
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:58 PM


Symptom


When initiating a connection via PSMP, after entering the vault password the message of the day from the psmp server is displayed and the connection remains stuck at this point.

To have more insight into the issue:
  1. Enable PSMPShell debug logs by creating the file /etc/cyberark_psmpshell_debug and writing in it the line - "log-level=Debug". 
  2. Restart psmp service with: service psmpsrv restart
  3. Perform the session again
  4. Open the file created in /var/opt/CARKpsmp/logs/components. There will be some files with the format  xxx-xxx-xx-xxx.PSMPShell.log. Open one of the files and you should see a similar output with:
"25/03/2022 09:14:51.00000][I][PSGRPCEntityProtocolClient][PID(1574266)][TID(140165407653952)][80ce2515-4f5e-4842-b10f-a47994641637]: Executing get entity server details [25/03/2022 09:14:51.00000][I][PSGRPCEntityProtocolClient][PID(1574266)][TID(140165407653952)][80ce2515-4f5e-4842-b10f-a47994641637]: Executing get entity server details [25/03/2022 09:14:51.00000][I][psmpshell][PID(1574266)][TID(140165407653952)][PSFileSystemInvestigation]: reading /proc/1574266/stat in order to extract information about pid 1574266 [25/03/2022 09:14:51.00000][I][psmpshell][PID(1574266)][TID(140165407653952)][PSFileSystemInvestigation]: reading /proc/1574265/stat in order to extract information about pid 1574265 [25/03/2022 09:14:51.00000][W][psmpshell][PID(1574266)][TID(140165407653952)][PSFileSystemInvestigation]: Could not get parent pid of pid [1574265]. Error: vector::_M_range_check"


The focus will be on the last line, which indicates the issue.


Environment


12.0;12.1;12.2 Privileged Access Manager (PAM, self-hosted) PSMP PSMP Integrated mode

Cause


The issue occurs when the process 'psmpshell' - of PSMP, tries to investigate its Parents /proc/<Parent pid>/stat file.

The process 'psmpshell' - of PSMP, tries to investigate its parents /proc/<Parent pid>/stat file, this is blocked to him, on both RHEL 7.9 and RHEL 8.2.

There is an option to hide other processes pids by configuring hidepid parameter in /etc/fstab, as displayed here:

https://linux-audit.com/linux-system-hardening-adding-hidepid-to-proc/

Looking at the the /etc/fstab file the hidepid parameter is set to 2:
proc /proc proc defaults,hidepid=2,gid=xxx


Resolution


In order to allow the full flow in integrated mode, the local internal shell (psmpshell) requires access to the process information of its parent, in order to verify the origin of the session.

When hidepid is configured to be 2, Our PSMConnectUsers group id needs to be configured under the /etc/fstab, similar to how gid xxx is configured.

The group id is 50500 this can be verified by running 'getent group PSMConnectUsers'.

The other option is to set the hidepid value to 0 in fstab.

Note: Before making any changes in fstab, make a backup first. After making changes a reboot of the server is required in order to take effect.


Actions
  • Print
  • Copy Link

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