OCPBUGS:105601: Fix output directories collision. - #89
Conversation
Output directories were created with 0o777 permissions and named using only subsec_nanos (0–999999999), risking collisions when two scans start in the same fractional second. - Add mode parameter to create_dir with named constants (SCAN_DIR_MODE 0o700, CONTAINER_DIR_MODE 0o770) instead of hardcoded 0o777 - Use as_nanos() (full u128 timestamp) instead of subsec_nanos() for the scan directory name - chown per-container output dirs to the target UID so the child process can still write after seteuid JIRA: https://redhat.atlassian.net/browse/OCPBUGS-105601 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jmesnil The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@jmesnil: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Output directories were created with 0o777 permissions and named using only subsec_nanos (0–999999999), risking collisions when two scans start in the same fractional second.
JIRA: https://redhat.atlassian.net/browse/OCPBUGS-105601