Re: [PATCH RFC 2/4] landlock: implement memfd detection

2025-07-22 Thread Abhinav Saxena
Fan Wu writes: > On Sat, Jul 19, 2025 at 4:13 AM Abhinav Saxena wrote: >> >> Add is_memfd_file() function to reliably detect memfd files by checking >> for “memfd:” prefix in dentry names on shmem-backed files. This >> distinguishes true memfd files from regular shmem files. >> >> Move domain_is

Re: [PATCH RFC 2/4] landlock: implement memfd detection

2025-07-20 Thread Fan Wu
On Sat, Jul 19, 2025 at 4:13 AM Abhinav Saxena wrote: > > Add is_memfd_file() function to reliably detect memfd files by checking > for "memfd:" prefix in dentry names on shmem-backed files. This > distinguishes true memfd files from regular shmem files. > > Move domain_is_scoped() to domain.c for

[PATCH RFC 2/4] landlock: implement memfd detection

2025-07-19 Thread Abhinav Saxena
Add is_memfd_file() function to reliably detect memfd files by checking for "memfd:" prefix in dentry names on shmem-backed files. This distinguishes true memfd files from regular shmem files. Move domain_is_scoped() to domain.c for reuse across subsystems. Add comprehensive kunit tests for memfd