In Unix-like systems, a program can run with different UID and GID from its 
parent. Essential, the program runs with elevated or restricted privileges. A 
change in UID or PID requires a separate AS.

-- 
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
עַם יִשְׂרָאֵל חַי
נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר



________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of 
Colin Paice <[email protected]>
Sent: Tuesday, February 25, 2025 11:14 AM
To: [email protected]
Subject: Question about _BPX_SHAREAS=YES.

External Message: Use Caution


I'm a it fuzzy about _BPX_SHAREAS=YES and if it is working (or not)

I have a shell script(s2) which prints out the pid, and parent pid.
I call this from another script  s1.
The output from
_BPX_SHAREAS=YES sh s1
_BPX_SHAREAS=NO sh s1
Both print the same parent, so it looks like it is having no effect.

On the other hand when Zowe is started, I can see several address spaces
start, run, and quickly end, and I want to make them run as shared and
avoid this overhead.  Can I find out why a different address space was used?

The doc for BPX1SPN gives reasons why  _BPX_SHAREAS=YES is not honoured,
including *If the program to be run is a set-user-ID or set-group-ID
program that would cause the effective user-ID or group-ID of the child
process to be different from that of the parent process.  *What is a
"*set-user-ID
program" *... and how does spawn know!

Am I missing something?

Colin

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to