A quick way to find SEPolicy issues is this -

export USE_NINJA=false;
mmm -B -j4 ./system/sepolicy/;
export USE_NINJA=;

CyanogenMod-14.X has been a little bitch while compiling until I found this. You could comment out the required contexts or fix them manually. All thanks to Adrian for teaching me this!