mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-10-17 17:20:31 +00:00
c2c1c730c8fabb0a4e1bb9f03f847c10a206c819
mockbuild-all.pl builds a perl package with mockbuild-perl-packages.pl when the native catalog declares it an owner. That script runs as root and creates the directories it gives mock as --resultdir. mock 6.8 reloads its uid manager from chrootuid and opens state.log, build.log and root.log in --resultdir as that uid, so each directory must be writable by it. No test reads the owner or the mode of those directories. The test checks the uid read from a mock configuration, then writes a state.log in each result directory as that uid. The write runs in a forked child that exits 2 when setuid fails, so a write made as root cannot read as a pass. The result-directory checks need root, so the workflow runs the file under sudo. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
Description
No description provided
Languages
Perl
80.2%
JavaScript
7.4%
Shell
3.7%
SQLPL
2.4%
CSS
2.1%
Other
4.2%