Re: open_by_handle_at: mount_fd opened with O_PATH

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

 



On 16/12/2019 13:28, Amir Goldstein wrote:
On Mon, Dec 16, 2019 at 11:39 AM <quentin.bouget@xxxxxx> wrote:
Hello,

I recently noticed that the syscall open_by_handle_at() automatically
fails if
its first argument is a file descriptor opened with O_PATH. I looked at
the code
and saw no reason this could not be allowed. Attached to this mail are a
a reproducer and the patch I came up with.

I am not quite familiar with the kernel's way of processing patches. Any
pointer
or advice on this matter is very welcome.

See similar patch by Miklos to do the same for f*xattr() syscalls that
looks simpler:
https://lore.kernel.org/linux-fsdevel/20191128155940.17530-8-mszeredi@xxxxxxxxxx/

Al, any objections to making this change?

Thanks,
Amir.

Much simpler, indeed (tested it, seems to work).

Thanks,
Quentin




[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