On Tue, Aug 06, 2024 at 03:42:56PM -0700, Andrii Nakryiko wrote: > By constify you mean something like below? Yep. Should go through LSM folks, probably, and once it's in those path_get() and path_put() around the call can go to hell, along with 'path' itself (we can use file->f_path instead).