mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-25 07:22:07 +00:00
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:
parent
1fbb15eb11
commit
b14294c01f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user