This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: how to enable selinux?

Part Number: TDA4VM

Dear TI,

I have a problem with DeviceTree Source.

I add selinux in kernel.
Bootargs are set in the dts/ti/k3-j7200-common-proc-board.dts file, "security=selinux" is added.

After startup, there is no "security=selinux" in the Kernel command line. selinux is not enabled.

  • Hello,

    We do not support selinux option by default. Is adding only the bootargs sufficient? don't we need to enable additional configs to enable in kernel?

    Best Regards,

    Keerthy 

  • We have configured selinux in the kernel.

    How to add bootargs to take effect in Kernel command line?

    Thank you.

  • Hi,

    Can you add in the following file:

    File: $PSDK_Linux/board-support/u-boot-2023.04*/include/environment/ti/mmc.env

    Original Variable: args_mmc=run finduuid;setenv bootargs console=${console}
            ${optargs}
            root=PARTUUID=${uuid} rw
            rootfstype=${mmcrootfstype}
    Once you add: args_mmc=run finduuid;setenv bootargs console=${console}
            ${optargs}
            root=PARTUUID=${uuid} rw
            rootfstype=${mmcrootfstype}security=selinux

    Try and let me know if this helps.

    Best Regards,
    Keerthy

  • There is no mmc.env file in our SDK, we modified mmc.h.
    It works!

    Thank you so much.

    Best Regards,

    Ni Hua