mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 01:12:18 +00:00
cdeec6668e
xcatd.service started xcatd through /bin/sh to read /etc/profile.d/xcat.sh. systemd runs the shell in initrc_t, and xcatd inherited that domain. initrc_t moves rsync, useradd, groupadd, hwclock and setfiles into confined domains, so an enforcing management node denies syncfiles, updatenode -F and genimage. ExecStart now runs /usr/sbin/xcatd directly. systemd starts the bin_t binary in unconfined_service_t, which has none of these transitions. The unit sets XCATROOT, PATH and PERL_BADLANG with Environment=, and /etc/sysconfig/xcat can still override them. RPM and Debian packages ship the same unit. The SysV script for hosts without systemd still reads the profile. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>