How to enable Linux capabilities on Yocto image


  • Hi , 

    I have generated and instelled libcap-dev, licap-bin packages for your yocto image in order to use capabilities .

    I have also actived options kernel .config , however , it seems that the ext4 FS does not contain user_xattr extension. The commands getcat or setcap gives output :  Failed to set capabilities on file `usr/bin/app1' (Operation not supported)

    Do you how to active Extra attributes on Yocto rootfs ?



  • Hi JUD,

               Could you please share me what product you are using, it would be very helpfull to solve your problem, thanks!

    BR

    Anson 


  • Hi Anson ,

    I use the I-Pi SMARC IMX8M Plus 2G . 

    rgds


  • Hi JUD,

                 Thanks for sharing, I will reply you ASAP, thanks.

    BR

    Anson


  • @Anson Ruan ,  i found how to enable it : 

    I had to enable this in lec-imx8mp_defconfig

    CONFIG_EXT4_FS_SECURITY=y
    CONFIG_SECURITY_NETWORK=y
    CONFIG_SECURITY_PATH=y

Please login to reply this topic!