6d4e8591a336bb63ac406c7570d056fc92a5b826 |
|
24-Dec-2009 |
Caleb Case <ccase@tresys.com> |
libsemanage: semanage store migration script We created a migration script to ease the burden of transition from the old libsemanage store layout to the new. The script will detect all the stores in /etc/selinux using the old layout and convert them to the new layout in /var/lib/selinux. It also allows you to specify the default priority to use with -p and store to operate on with -s. After migration the script by default will leave the old store unchanged, but can be told to remove the old modules directory with -c. Reloading policy post migration can be disabled with the -n option. Examples: semanage_migrate_store Migrating from /etc/selinux/targeted/modules/active to /var/lib/selinux/targeted/active Attempting to rebuild policy from /var/lib/selinux semanage_migrate_store -s targeted Migrating from /etc/selinux/targeted/modules/active to /var/lib/selinux/targeted/active Attempting to rebuild policy from /var/lib/selinux semanage_migrate_store -p 150 Migrating from /etc/selinux/targeted/modules/active to /var/lib/selinux/targeted/active Attempting to rebuild policy from /var/lib/selinux Signed-off-by: Chad Sellers <csellers@tresys.com> Signed-off-by: Steve Lawrence <slawrence@tresys.com>
/external/selinux/libsemanage/utils/Makefile
|