libselinux and sepolicy credit @CyanogenMod