mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-23 22:02:45 +00:00
libsemanage: ensure migrated files have the correct types
All files in /var/lib/selinux/ are now labeled the same as those in /etc/selinux/<store>/modules/active, which in refpolicy is semanage_store_t. Signed-off-by: Steve Lawrence <slawrence@tresys.com> Reviewed-by: Yuli Khodorkovskiy <ykhodorkovskiy@tresys.com>
This commit is contained in:
parent
b9abc5c6e7
commit
f21b2e138c
@ -138,8 +138,8 @@ def migrate_store(store):
|
||||
print("Migrating from %s to %s" % (oldstore, newstore))
|
||||
|
||||
# Build up new directory structure
|
||||
create_dir_from(selinux.selinux_policy_root(), "%s/%s" % (newroot_path(), store), 0o755)
|
||||
create_dir_from(oldmodules, newstore, 0o700)
|
||||
create_dir_from(oldstore, "%s/%s" % (newroot_path(), store), 0o755)
|
||||
create_dir_from(oldstore, newstore, 0o700)
|
||||
create_dir_from(oldstore, newmodules, 0o700)
|
||||
create_dir_from(oldstore, bottomdir, 0o700)
|
||||
create_dir_from(oldstore, disabledmodules, 0o700)
|
||||
|
Loading…
Reference in New Issue
Block a user