Remove the policy.kern after policy is build and replace with symbolic link.

We want to shink the space required by selinux-policy for small cloud images.
This file has no purpose after policy is built.
This commit is contained in:
Dan Walsh 2013-10-09 16:42:04 -04:00 committed by Stephen Smalley
parent 1fbb15eb11
commit b14294c01f

View File

@ -1234,6 +1234,10 @@ static int semanage_install_active(semanage_handle_t * sh)
retval = 0;
cleanup:
(void) unlink(active_kernel);
if (symlink(store_pol, active_kernel) < 0) {
ERR(sh, "Unable to create sybolic link from %s to %s error code %d.", active_kernel, store_pol, r);
}
free(storepath);
return retval;
}