Hello,
There is currently two modes when creating a squashfs image : files/directories keep UID/GID and mode as there are in the current filesystem or all is owned by root.
The attached patch add the ability to set uid/gid and mode for a specific file/path and its sub path. It's usefull to add a user owned directory and/or set suid bit when we're not root in our system.