[PATCH v2] liveupdate: add LIVEUPDATE_SESSION_GET_NAME ioctl
Luca Boccassi
luca.boccassi at gmail.com
Fri Apr 17 15:09:41 PDT 2026
On Fri, 17 Apr 2026 at 22:48, Pasha Tatashin <pasha.tatashin at soleen.com> wrote:
>
> On 04-17 01:36, luca.boccassi at gmail.com wrote:
> > From: Luca Boccassi <luca.boccassi at gmail.com>
> >
> > Userspace when requesting a session via the ioctl specifies a name and
> > gets a FD, but then there is no ioctl to go back the other way and get
> > the name given a LUO session FD. This is problematic especially when
> > there is a userspace orchestrator that wants to check what FDs it is
> > handling for clients without having to do manual string scraping of
> > procfs, or without procfs at all.
> >
> > Add a ioctl to simply get the name from an FD.
> >
> > Signed-off-by: Luca Boccassi <luca.boccassi at gmail.com>
> > ---
> > This was requested by Lennart and Christian when discussing integration
> > with systemd for LUO management.
> >
> > v2: apply one fix from bot review about cleanup on error path:
> > https://sashiko.dev/#/patchset/20260415184536.1155220-1-luca.boccassi%40gmail.com
> > the other comments are invalid: luo is not a kmod, and the write hooks are not set up
>
> Please split into two patches, and also CC to kernel-linux.
Done in v5. I've also merged this series and the LUO_SESSION_MAGIC
series into a single series, as they modify the same unit test source
file, to avoid merge conflicts.
More information about the kexec
mailing list