SDP-350

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler created this job , modified by C. Thomas Tyler
Closed
Support SELinux ("Security Enhanced Linux)") in enforcing mode.

SELinux seems to prevent execution of code from temp files
in /tmp, which is what some SDP functions do, e.g. when calling
code on remote hosts.  To fix, scripts must use the $P4TMP
variable for a temp directory and not /tmp.
25239Replaced references to /tmp with P4TMP (e.g.
/p4/N/tmp) to avoid
issues with SELinux incompatibility.

For p4verify.sh, enhanced:
* Minor performance enhancement: Added '-m1' flag to egrep that
  determines whether to exit code with non-zero, as we only need
  to detect one occurence.
* Changed 'Warning:' to 'Error:' if verify errors are detected.
* Removed redundant check that SDP_INSTANCE is set.
* Added total time info.
* Adjusted to pass 'shellcheck.sh' check.
25238Replaced references to /tmp with P4TMP (e.g.
/p4/N/tmp) to avoid
issues with SELinux incompatibility.

For p4verify.sh, enhanced:
* Minor performance enhancement: Added '-m1' flag to egrep that
  determines whether to exit code with non-zero, as we only need
  to detect one occurence.
* Changed 'Warning:' to 'Error:' if verify errors are detected.
* Removed redundant check that SDP_INSTANCE is set.
* Added total time info.
* Adjusted to pass 'shellcheck.sh' check.

#review-25239
  • Details
  • Comments -
Status
Closed
Project
perforce-software-sdp
Severity
C
Reported By
C. Thomas Tyler
Reported Date
Modified By
C. Thomas Tyler
Modified Date
Owned By
tom_tyler
Component
core-unix
Type
Feature