Re: [PATCH 06/26] new predicate: anon_ns_root(mount)

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

 



On Wed, Jun 11, 2025 at 12:39:28PM +0200, Christian Brauner wrote:
> On Tue, Jun 10, 2025 at 09:21:28AM +0100, Al Viro wrote:
> > checks if mount is the root of an anonymouns namespace.
> > Switch open-coded equivalents to using it.
> > 
> > For mounts that belong to anon namespace !mnt_has_parent(mount)
> > is the same as mount == ns->root, and intent is more obvious in
> > the latter form.
> > 
> > NB: comment in do_mount_setattr() appears to be very confused...
> 
> The comment just mentions a single case where we did regress userspace
> some time ago because we didn't allowing changing mount properties on
> the real rootfs (And we have this discussion on another thread.).
> 
> But I'm not sure why this belongs in the commit message in the first
> place. Just remove the comment.

Done




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

  Powered by Linux