2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-12-04 08:07:04 +00:00
Files
xcat-core/xCAT-test/autotest
Daniel Hilst 7431bdeafa fix(xcat-test): updatenode_syncfile_MERGE locks every login out of an enforcing node
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>
2026-11-12 23:42:49 -03:00
..
2018-09-21 18:02:46 +08:00
2018-04-26 15:15:47 -04:00