[PATCH openEuler-1.0-LTS] selinux: improve error checking in sel_write_load()