On Fri, Aug 9, 2024 at 8:46 PM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote: > > 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). Ok, cool. Let's then do that branch you proposed, and I can send everything on top of it, removing path_get()+path_put() you add here.