Re: [Help] Problem when using overlayfs with LoadPin

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

 



On Fri, Nov 8, 2019 at 9:42 AM Anders Dellien <anders.dellien@xxxxxxxx> wrote:
>
> Hi all,
>
> I have previously successfully used LoadPin [https://www.kernel.org/doc/html/latest/admin-guide/LSM/LoadPin.html]
> together with overlayfs, however commit a6518f "vfs: don't open real" introduces a regression.
>
> (from loadpin.c):
>
>         /* file_dentry sees through overlays */
>         load_root = file_dentry(file)->d_sb;  (here, load_root->s_bdev is NULL and not the actual block device from the lower layer)

Umm, where does the above line come from?

Mainline looks like this:

    load_root = file->f_path.mnt->mnt_sb;

What is the expected behavior?   Should loadpin see through overlayfs or not?

Thanks.
Miklos




[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux