GNOME Bugzilla – Bug 761620
SELinux policy handling
Last modified: 2017-07-21 15:36:20 UTC
OSTree basically encourages systems to move away from %post for systems management tasks. However, SELinux policy is very special as it gets loaded in the initramfs. We need to recompile the policy after creating a new deployment. This will actually need to involve using e.g. systemd-nspawn -D /path/to/new-deployment semodule.
Need to work out: - Can we detect "is the policy changed"? Probably cmp /{usr/,}etc/selinux/targeted/policy/policy.29 - but is there an API for that? - Can we efficiently detect the case where on upgrade, the base policy version didn't change, so we don't need to recompile, and just propagate forward our modified policy from /etc?
http://marc.info/?l=selinux&m=145677940526857&w=2
Migrating to https://github.com/ostreedev/ostree/issues/1026