Re: unsquashfs not preserving file capabilities

2015-10-07 Thread Prasad Koya
Hi Debugged this with traces enabled. Turns out that unsquashfs *is* setting xattrs with lsetxattr() but soon after returning from write_xattr(), it calls chown() and that is removing the xattrs on file. Please take a look at this patch below, which calls chown() only if uid/gid of file is differ

unsquashfs not preserving file capabilities

2015-10-07 Thread Prasad Koya
Hi Not sure if there is a mailing list for squashfs-tools. I'm not seeing xattrs after unsquashing. This is how we are using: 1. Install all of our RPMs with some root dir (rpm --root xyz) 2. mksquashfs of xyz. (-comp xz -Xbcj x86). 3. To update an rpm in image, we first unsquash the fs made