pThreadSecurity failed
Message
ERROR class com.ibm.etools.zos.server.ZosSystemService:
java.lang.RuntimeException: pThreadSecurity failed, rc=7
at com.ibm.etools.zos.server.ZosSystemService.setThreadSecurity
Explanation
If unsuccessful, pthread_security_np()
sets errno
to one the
following values.
- The case of
/usr/lib/libIRRRacf.so
not being program-controlled results in RC=7, case 1a in the following table. - The case of the client user not having read access to the FEKAPPL profile in the APPL class results in RC=6.
RC | Errno | Explanation |
---|---|---|
1 |
EACCES |
The password or PassTicket, or the password phrase provided is not valid for the passed userid. |
2 |
EINVAL |
A parameter is not valid. |
3 |
EMVSERR |
An MVS™ environmental error or internal error occurred. |
4 |
EMVSEXPIRE |
The password or PassTicket, or the password phrase provided has expired. |
5 |
EMVSSAF2ERR |
The SAF call to the security product incurred an error. |
6 |
EMVSSAFEXTRERR |
The SAF call to the security product incurred an error. |
7 |
EPERM |
1a. The process does not have appropriate privileges to set a thread-level security environment. Note: /usr/lib/libIRRRacf.so not being program controlled will result in case 1a. 1b. The caller is not permitted to the BPX.SERVER FACILITY class profile or BPX.SERVER is not defined and the caller is not a superuser. 1c. No password or PassTicket, or password phrase is provided and the caller is not defined as a surrogate of the passed user ID. 2. The caller is not a superuser and permitted to the BPX.DAEMON FACILITY class profile or BPX.DAEMON is not defined and the caller is not a superuser. |
8 |
ESRCH |
The user ID provided as input is not defined to the security product or does not have an OMVS segment defined. |
10 |
ENOSYS |
The function is not implemented. |
100 |
? |
new error, not mapped, see C/C++ Run-Time Library Reference (SA22-7821) |
Additional information
See C/C++ Run-Time Library Reference (SA22-7821), section discussing
pthread_security_np()
Location:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/EDCLB190/3.740
(z/OS® 1.10)
pthread_security_np()
is a wrapper for z/OS
UNIX service BPX1TLS/BPX4TLS. See
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB1B0/2.142
(z/OS 1.12).