Skip to content

fdinfo "ino" field was only added in Linux 5.14 #334

@cyphar

Description

@cyphar

We rely on the ino field of fdinfo as a security hardening against fake procfs files, but unfortunately it was added much more recently than I expected -- torvalds/linux@3845f256a8b52 was merged in Linux 5.14 (after openat2!!).

This causes procfs operations to fail on AlmaLinux 8 and similar old-kernel distros. I guess we will just need to rely on mnt_id... You could imagine using flags but those are nowhere near as difficult to fake as ino so we may as well just skip it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    linux/oldkernel-supportIssues and PRs related to supporting old kernels.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions