Re: [PATCH 1/3] file: add fd_except cleanup class
From: Christian Brauner
Date: Wed Jun 17 2026 - 09:45:58 EST
On Sun, Jun 07, 2026 at 06:41:34PM +0200, Andreas Gruenbacher wrote:
> CLASS(fd_except, f)(fd, mask) allows to specify whether to accept or reject
> O_PATH file descriptors by passing a mode value of 0 or FMODE_PATH rather than
> using a specific cleanup class for each case (CLASS(fd, f)(fd) or CLASS(fd_raw,
> f)(fd)).
My main objection to such patches continues to be that it keeps watering
down the meaning of O_PATH if it continues being usable for performing
ever more actions including write-like operations like setting extended
attributes.