diff options
| -rw-r--r-- | classes/selinux-image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/selinux-image.bbclass b/classes/selinux-image.bbclass index 90ead2f..5174dc5 100644 --- a/classes/selinux-image.bbclass +++ b/classes/selinux-image.bbclass | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | selinux_set_labels () { | 1 | selinux_set_labels () { |
| 2 | POL_TYPE=$(sed -n -e "s&^SELINUXTYPE[[:space:]]*=[[:space:]]*\([0-9A-Za-z_]\+\)&\1&p" ${IMAGE_ROOTFS}/${sysconfdir}/selinux/config) | 2 | POL_TYPE=$(sed -n -e "s&^SELINUXTYPE[[:space:]]*=[[:space:]]*\([0-9A-Za-z_]\+\)&\1&p" ${IMAGE_ROOTFS}/${sysconfdir}/selinux/config) |
| 3 | if ! setfiles -r ${IMAGE_ROOTFS} ${IMAGE_ROOTFS}/${sysconfdir}/selinux/${POL_TYPE}/contexts/files/file_contexts ${IMAGE_ROOTFS} | 3 | if ! setfiles -m -r ${IMAGE_ROOTFS} ${IMAGE_ROOTFS}/${sysconfdir}/selinux/${POL_TYPE}/contexts/files/file_contexts ${IMAGE_ROOTFS} |
| 4 | then | 4 | then |
| 5 | echo WARNING: Unable to set filesystem context, setfiles / restorecon must be run on the live image. | 5 | echo WARNING: Unable to set filesystem context, setfiles / restorecon must be run on the live image. |
| 6 | touch ${IMAGE_ROOTFS}/.autorelabel | 6 | touch ${IMAGE_ROOTFS}/.autorelabel |
