SDP-99

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler created this job
Closed
Fix special case env insulation bug running init scripts as root.

When running init scripts as root in an environment where the
~perforce user source 'p4_vars' with a default instnace, this
impacts init scripts run as root, due to loss of SDP_INSTANCE
setting with the su/exec.
20491Fixed an environment insulation bug in init scripts.

More testing (and thinking) revealed that the only way to truly
provide a guarantee of insulation from user-set defaults in
~perforce/.bashrc (etc.) is to pass SDP_INSTANCE as a parameter to
the *_base scripts, so that the instance name is explicitly passed
into the su/exec call (when run as root).

This change also includes minor cleanup in init scripts and *_base
scripts.
  • Details
  • Comments -
Status
Closed
Project
perforce-software-sdp
Severity
C
Reported By
C. Thomas Tyler
Reported Date
Modified By
super-tom_tyler
Modified Date
Owned By
tom_tyler
Dev Notes
This job, SDP-99, was originally named job000589.
Type
Bug