Skip to contentSkip to conversation

libsemanage: ensure migrated files have the correct types

PATCH New Steve Lawrence 1 participant 1 message Dec 2, 2014 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 libsemanage/utils/semanage_migrate_store | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
libsemanage/utils/semanage_migrate_store +2 -2
index 0371e49..03b492e 100755
@@ -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)
Signature · 1 line
1.9.3