mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-12-04 08:07:04 +00:00
7431bdeafa
The case saves /etc/passwd, /etc/group and /etc/shadow on the compute
node to /tmp, and puts them back with mv -f. mv keeps the tmp_t label
of the copy in /tmp. On a node that runs SELinux enforcing, sshd then
cannot read /etc/shadow, so every later xdsh to the node fails. On the
el9 and el10 CI cells about sixty later cases failed for this reason.
Put the files back with cp -f, which keeps the label of the file in
/etc.
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
(cherry picked from commit 20903fce1c)
(cherry picked from commit 7d8af9ecc8a6b3701ff1b8ae482c57b9493d2b17)
Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>