Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

CSM FVT Test Case: PAM.d debug level #638

Open
fpizzano opened this issue Apr 8, 2019 · 1 comment
Open

CSM FVT Test Case: PAM.d debug level #638

fpizzano opened this issue Apr 8, 2019 · 1 comment

Comments

@fpizzano
Copy link
Contributor

fpizzano commented Apr 8, 2019

PAM.d debug level

How to recreate:

  1. yum install rsh rsh-server on the compute node
  2. Edit /etc/pam.d/remote and add the libcsmpam.so entries:
# cat /etc/pam.d/remote
#%PAM-1.0
auth       required     pam_securetty.so
auth       substack     password-auth
auth       include      postlogin
account    required     pam_nologin.so
account    include      password-auth
account    required     libcsmpam.so
password   include      password-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      password-auth
session    include      postlogin
session    required     libcsmpam.so
  1. systemctl restart rlogin.socket
  2. Create a none-root user allocation
  3. rsh into the compute node with none-root user:
-bash-4.2$ hostname
c650f02p07
-bash-4.2$ whoami
pizzano
-bash-4.2$ rsh c650f02p11
[csmapi]: The default log level: off...
[csmapi][debug]	Socket Name /run/csmd.sock
[csmapi][debug]	Log Level retrieved
[csmapi][debug]	Not initialized
[csmapi][debug]	Net inited
[csmapi][debug]	/u/pizzano/CSM/CAST/csmnet/src/C/csm_network_local.c-654: Sending connection message
[csmapi][trace]	Socket: 4 sending 5 @buffer: 0x4c625270 to /run/csmd.sock
[csmapi][trace]	timeout (CSM_CMD_STATUS): 30000; loops 7
[csmapi][debug]	starting CBThread on socket:
[csmapi][debug]	/u/pizzano/CSM/CAST/csmnet/src/C/csm_network_local.c-1289: Received msg: cmd=208, msgId=1, flags=18
[csmapi][debug]	/u/pizzano/CSM/CAST/csmnet/src/C/csm_network_local.c-688: Completing connect with rc=0...
[csmapi][debug]	Before hdl
[csmapi][trace]	csm_init_lib initialized (init_msg_id=811207610)
[csmapi][trace]	Socket: 4 sending 45 @buffer: 0x4c625270 to /run/csmd.sock
[csmapi][trace]	Unix::SendMsg id=811207611: Waiting for ACK
[csmapi][trace]	timeout (CSM_CMD_cgroup_login): 30000; loops 7
[csmapi][trace]	Received an ACK.
[csmapi][debug]	/u/pizzano/CSM/CAST/csmnet/src/C/csm_network_local.c-1289: Received msg: cmd=59, msgId=811207611, flags=1
[csmapi][trace]	/u/pizzano/CSM/CAST/csmi/src/common/src/csmi_common_utils.c-109: The msg for cmd 59 sent
[csmapi][trace]	timeout (CSM_CMD_cgroup_login): 30000; loops 7
[csmapi][trace]	Socket: 4 sending 0 @buffer: 0x4c625270 to /run/csmd.sock
[csmapi][debug]	/u/pizzano/CSM/CAST/csmnet/src/C/csm_network_local.c-1289: Received msg: cmd=59, msgId=811207611, flags=6
[csmapi][trace]	/u/pizzano/CSM/CAST/csmi/src/common/src/csmi_common_utils.c-123: Got response for cmd 59
[csmapi][info]	/u/pizzano/CSM/CAST/csmi/src/common/src/csmi_common_utils.c-132: Recieve Payload len = 86
[csmapi][debug]	/u/pizzano/CSM/CAST/csmi/src/common/src/csmi_common_utils.c-134: recvMsgId: 811207611 msgID: 811207611
[csmapi][warning]	/u/pizzano/CSM/CAST/csmi/src/common/src/csmi_common_utils.c-147: the Error Flag Set
[csmapi][error]	csmi_sendrecv_cmd failed: 36 - csm_cgroup_login[811207611]; User not authorized.
[csmapi][trace]	TIMING: 811207611,59,api,1554737541635119421,1554737541636553771,1434350
[csmapi][debug]	/u/pizzano/CSM/CAST/csmnet/src/C/csm_network_local.c-483: Sending disconnect message
[csmapi][trace]	Socket: 4 sending 10 @buffer: 0x4c625270 to /run/csmd.sock
[csmapi][trace]	Unix::SendMsg id=1558245471917122504: Waiting for ACK
[csmapi][trace]	timeout (CSM_CMD_STATUS): 30000; loops 7
[csmapi][trace]	Received an ACK.
[csmapi][debug]	/u/pizzano/CSM/CAST/csmnet/src/C/csm_network_local.c-1289: Received msg: cmd=208, msgId=846930888, flags=19
[csmapi][debug]	Executing callback thread cancellation handler
[csmapi][debug]	thread exited by cancellation (socket: )
[csmapi][trace]	csm_term_lib() done
Last login: Mon Apr  8 11:31:57 from c650f02p07
-bash-4.2$
@fpizzano
Copy link
Contributor Author

fpizzano commented Apr 8, 2019

PR #636

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants