fixfiles and load_policy moved from /sbin to /usr/sbin
Hello,
While packaging policycoreutils 2.8 I've seen that the fixfiles and load_policy executables were moved from /sbin to /usr/sbin
Any reasons for this? This seems to me like an involuntary side effect of the cleanup for DESTDIR and PREFIX in the build system.
For distribution with usr-merge that will not change anything, but for others that could prevent early boot scripts to load the policy
Shouldn't that be reverted?
Kind regards,
Laurent Bigonville
Quoted 9 lines · Laurent Bigonville
Hello,
While packaging policycoreutils 2.8 I've seen that the fixfiles and
load_policyexecutables were moved from /sbin to/usr/sbinAny reasons for this? This seems to me like an involuntary side effect of the cleanup for DESTDIR and PREFIX in the build system.
For distribution with usr-merge that will not change anything, but for others that could prevent early boot scripts to load the policy
Shouldn't that be reverted?
Yes, I think that was an oversight. However, generally policy loading is handled directly by init (both sysvinit and systemd) via libselinux w/o executing the load_policy executable, and libsemanage checks both locations for it, so I wouldn't expect policy loading to be broken. fixfiles invocation from init scripts may be a different matter. Likely should revert the location change for both (but not the rest of DESTDIR/PREFIX fixes).
Quoted 5 lines · Stephen Smalley
Quoted 4 lines · Laurent Bigonville
Hello,
While packaging policycoreutils 2.8 I've seen that the fixfiles and
load_policyexecutables were moved from /sbin to/usr/sbin
Quoted 7 lines
Quoted 5 lines
Any reasons for this? This seems to me like an involuntary side effect of the cleanup for DESTDIR and PREFIX in the build system.
For distribution with usr-merge that will not change anything, but for others that could prevent early boot scripts to load the policy
Shouldn't that be reverted?
Yes, I think that was an oversight. However, generally policy loading is handled directly by init (both sysvinit and systemd) via libselinux w/o executing the
load_policyexecutable, and libsemanage checks both locations for it, so I wouldn't expect policy loading to be broken. fixfiles invocation from init scripts may be a different matter. Likely should revert the location change for both (but not the rest of DESTDIR/PREFIX fixes).
I guess the change might break systems calling load_policy from dracut initramfs scripts to load policy instead of calling libselinux from init, e.g. RHEL 6. I'm not sure though that any distro other than RHEL 6 ever did that.