preetam
preetam

Reputation: 1587

Change default rootfs file permissions to 750 instead of 755 in yocto

How do I change the yocto rootfs files having 755 permissions to 750. I don't want other to have access to rootfs. Where is the default file / directory permissions set in yocto?

Upvotes: 2

Views: 1913

Answers (1)

Peter Buelow
Peter Buelow

Reputation: 568

Best way to do this is to create a small function in your image recipe, and then call that function from ROOTFS_POSTPROCESS_COMMAND to do what you're asking about.

ROOTFS_POSTPROCESS_COMMAND += "chmod_rootfs;"

chmod_rootfs()
{
    chmod 0750 ${IMAGE_ROOTFS}/<files to change>
}

That should fix up the specifics.

Upvotes: 2

Related Questions