Reputation: 1587
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
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