Linux 7.2 Adds Ability To Limit Programs To Only Open Regular Files, Avoid Being Tricked Or Doing Silly Things
([Linux Storage] 16 June 09:54 AM EDT
OPENAT2_REGULAR)
Merged as part of the many VFS changes for Linux 7.2 is the new OPENAT2_REGULAR flag for the openat2 system call. This can be used to limit programs to only open regular file-systems and avoid accidentally or intentionally opening up device files or other non-conventional data files on the file-system.