2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-10-18 09:40:32 +00:00
Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Hilst 1d742828e9 test(xcat-dep): the mock result owner ignores sudo and fresh parents
mock loads its configuration as the user that sudo names, so a
configuration without chrootuid builds as SUDO_UID. mock_chroot_uid
runs the loader as root and reports uid 0, and mock_result_dirs then
gives the result directories to root.

Under umask 077, mock_result_dirs creates the work and package
directories as 0700. The build user cannot reach the result
directories below them.

Add a sudo-caller case to the native mock test, and a fresh-tree case
under umask 077 to the result-directory test. Move writable_as into
t/lib so both tests share it.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-14 05:39:36 -03:00
Vinícius Ferrão 300724af28 test(genesis): cover s390x publication 2026-09-04 13:59:46 -03:00
Vinícius Ferrão 4d46b8f7ca test(build): cover repository fallback safeguards 2026-08-22 23:45:22 -03:00
Vinícius Ferrão ffbf576a5f test(genesis): reuse build helpers 2026-08-22 19:26:03 -03:00
Vinícius Ferrão 98ee9edbfe test(genesis): cover dirty release sources 2026-08-21 09:38:57 -03:00
Vinícius Ferrão acc972d524 test(build): cover Genesis release consumers 2026-08-21 09:25:49 -03:00