diff --git a/fs/vfs/fs_stat.c b/fs/vfs/fs_stat.c index 200e629dcf..b647b30b71 100644 --- a/fs/vfs/fs_stat.c +++ b/fs/vfs/fs_stat.c @@ -284,6 +284,7 @@ int inode_stat(FAR struct inode *inode, FAR struct stat *buf, int resolve) if (INODE_IS_SHM(inode)) { buf->st_mode = S_IFSHM; + buf->st_mode |= S_IRUSR | S_IWUSR; buf->st_size = inode->i_size; } else