Re: [PATCH 0/5] udf: Improve uid/gid handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat 24-02-18 12:56:07, Pali Rohár wrote:
> On Thursday 22 February 2018 11:45:14 Jan Kara wrote:
> > Hello,
> > 
> > this patch series improves uid and gid handling for UDF filesystems. In
> > particular when uid/gid mount options are used, we make sure even newly created
> > and chowned files still belong to the target user/group (UDF now behaves the
> > same way as FAT in this mode to be easy to use for removable media). Also when
> > the filesystem does not store uid/gid for files, we now present these files as
> > belonging to overflow[ug]id instead of invalid ids if uid/gid mount option are
> > not used so that at least sysadmin can modify the filesystem.
> > 
> > 								Honza
> 
> Looks good, this should improve handling of uid/gid on removable UDF
> filesystems. Add my Reviewed-by: Pali Rohár <pali.rohar@xxxxxxxxx>

Thanks for review!

> Anyway, I would propose backporting patch "[PATCH 4/5] udf: Provide
> saner default for invalid uid / gid" into stable kernels to allow root
> user to modify files without uid/gid.

Also patch 3/5 would be needed to make this change safe in presence of user
namespaces. But as much as the problem is annoying when it happens, I
didn't get many reports of it over the years (just Steve and you when you
tried to modify UDF tools) and it can be worked around by using
uid=<something> mount option so I don't think stable backport is really
warranted.

								Honza
-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux