On Fri, Jan 13, 2023 at 6:32 AM Kamal Kishor <kamal.kishor@...> wrote:
Hi, I was trying to integrate meta-selinux layer with thud branch on our existing yocto build. I followed all the steps which are mentioned in README and SElinux-FAQ but I am facing an error in do_rootfs step. The error is shown below:
Does your distro policy inhibit GPL-3.0 ? if so then the error is right.
* * Solution 1: * - do not ask to install a package providing packagegroup-core-selinux
ERROR: custom-base-image-1.0-r0 do_rootfs: Function failed: do_rootfs ERROR: Logfile of failure stored in: /mnt/EVC-TI-06.03.00.106/tisdk/build/arago-tmp-external-arm-toolchain/work/am437x_hs_evm-linux-gnueabi/custom-base-image/1.0-r0/temp/log.do_rootfs.21704 ERROR: Task (/mnt/EVC-TI-06.03.00.106/tisdk/sources/meta-custom/recipes-core/images/custom-base-image.bb:do_rootfs) failed with exit code '1'
To avoid the error, I added RDEPENDS_packagegroup-core-selinux_remove = "coreutils" to local.conf. After that the build is successfull. But I am not sure if this will break selinux functionality. Please provide me with some insights on this.
If your distro does not want coreutils then you may have to look through other options to get selinux working. I am not sure if upstream meta-security tests this option by default.
Attached here is the log file for your reference. Please let me know if you need any information from me.