Message ID | cover.1539758834.git.mbobrowski@mbobrowski.org (mailing list archive) |
---|---|
Headers | show |
Series | fanotify: introduce new event types FAN_OPEN_EXEC and FAN_OPEN_EXEC_PERM | expand |
On Wed 17-10-18 20:04:37, Matthew Bobrowski wrote: > Currently, the fanotify API does not provide a means for user space > applications to receive events when a file has been opened specifically > for execution. New event types FAN_OPEN_EXEC and FAN_OPEN_EXEC_PERM have > been introduced in order to provide users this capability. OK, so these patches look mostly ready (except for a small bits I've commented on patch 3). How about the LTP test to actually test them? Once that exists, I can test the patches and merge them into my tree... Honza
On Wed, Oct 17, 2018 at 12:04 PM Matthew Bobrowski <mbobrowski@mbobrowski.org> wrote: > > Please note that all modifications here are based on the changes Amir has > made around deprecating some of the previously exposed UAPI constants. The > branch which my changes are based on can be found here: > > https://github.com/amir73il/linux/tree/fanotify_api-v3 > Matthew, Please note that this branch is slightly outdated. When testing you should rebase your patches on top of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git fsnotify I don't think that you need to re-post unless Jan wants a re-post of patch #3 because there shouldn't be any rebase conflicts. Thanks, Amir.
On Thu, Oct 18, 2018 at 11:28:21AM +0200, Jan Kara wrote: > On Wed 17-10-18 20:04:37, Matthew Bobrowski wrote: > > Currently, the fanotify API does not provide a means for user space > > applications to receive events when a file has been opened specifically > > for execution. New event types FAN_OPEN_EXEC and FAN_OPEN_EXEC_PERM have > > been introduced in order to provide users this capability. > > OK, so these patches look mostly ready (except for a small bits I've > commented on patch 3). OK, great. I can go ahead and perform the necessary updates. These are minor though, so I'm not sure whether it's appropriate to actually send through and entire new patch series that include these changes? To be fair I'm not entirely sure how you're meant to really submit through these minor updates based on previous reviews... > How about the LTP test to actually test them? Once that exists, I can > test the patches and merge them into my tree... Yes, I'm working on them at the moment. I've got some time coming up this weekend, so I hope to have them ready for you by then. It's a little fiddly when it comes to incorporating the exec events into previous tests. The way they're currently written doesn't really allow for them to be somewhat extensible in my opinion. I've written a new test in a completely separate test file, which is easy enough; however I think that these new event types should most definitely be part of perviously written tests i.e. fanotify03 for FAN_OPEN_EXEC_PERM. I've discussed this with Amir and he also agrees.
On Thu, Oct 18, 2018 at 01:07:37PM +0300, Amir Goldstein wrote: > On Wed, Oct 17, 2018 at 12:04 PM Matthew Bobrowski > <mbobrowski@mbobrowski.org> wrote: > > > > Please note that all modifications here are based on the changes Amir has > > made around deprecating some of the previously exposed UAPI constants. The > > branch which my changes are based on can be found here: > > > > https://github.com/amir73il/linux/tree/fanotify_api-v3 > > > > Please note that this branch is slightly outdated. > When testing you should rebase your patches on top of > git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git fsnotify Perfect, and will do. Thanks for sending that through. > I don't think that you need to re-post unless Jan wants a re-post of patch #3 > because there shouldn't be any rebase conflicts. Yeah, that's what I mentioned within my previous email. I mean, the ammendments to these files are minimal, so I don't really know whether I need to submit a completely new patch series through for each update after a review? Happy to re-post, if required.
On Thu 18-10-18 23:06:16, Matthew Bobrowski wrote: > On Thu, Oct 18, 2018 at 11:28:21AM +0200, Jan Kara wrote: > > On Wed 17-10-18 20:04:37, Matthew Bobrowski wrote: > > > Currently, the fanotify API does not provide a means for user space > > > applications to receive events when a file has been opened specifically > > > for execution. New event types FAN_OPEN_EXEC and FAN_OPEN_EXEC_PERM have > > > been introduced in order to provide users this capability. > > > > OK, so these patches look mostly ready (except for a small bits I've > > commented on patch 3). > > OK, great. I can go ahead and perform the necessary updates. These are > minor though, so I'm not sure whether it's appropriate to actually send > through and entire new patch series that include these changes? To be fair > I'm not entirely sure how you're meant to really submit through these > minor updates based on previous reviews... I guess I can just make the changes when picking up patches. > > How about the LTP test to actually test them? Once that exists, I can > > test the patches and merge them into my tree... > > Yes, I'm working on them at the moment. I've got some time coming up this > weekend, so I hope to have them ready for you by then. It's a little > fiddly when it comes to incorporating the exec events into previous tests. > The way they're currently written doesn't really allow for them to be > somewhat extensible in my opinion. I've written a new test in a completely > separate test file, which is easy enough; however I think that these new > event types should most definitely be part of perviously written tests > i.e. fanotify03 for FAN_OPEN_EXEC_PERM. I've discussed this with Amir and > he also agrees. Yeah, that would be nice. Honza
Hi Jan, On Thu, Oct 18, 2018 at 02:48:36PM +0200, Jan Kara wrote: > On Thu 18-10-18 23:06:16, Matthew Bobrowski wrote: > > On Thu, Oct 18, 2018 at 11:28:21AM +0200, Jan Kara wrote: > > > On Wed 17-10-18 20:04:37, Matthew Bobrowski wrote: > > > > Currently, the fanotify API does not provide a means for user space > > > > applications to receive events when a file has been opened specifically > > > > for execution. New event types FAN_OPEN_EXEC and FAN_OPEN_EXEC_PERM have > > > > been introduced in order to provide users this capability. > > > > > > OK, so these patches look mostly ready (except for a small bits I've > > > commented on patch 3). > > > > OK, great. I can go ahead and perform the necessary updates. These are > > minor though, so I'm not sure whether it's appropriate to actually send > > through and entire new patch series that include these changes? To be fair > > I'm not entirely sure how you're meant to really submit through these > > minor updates based on previous reviews... > > I guess I can just make the changes when picking up patches. If you like, you may obtain a copy of patch 3 for this patch series from the link I've provided below. It contains the minor update around adding FS_OPEN_EXEC_PERM to ALL_FSNOTIFY_PERM_EVENTS. Saves you having to remember to do it when applying the patches to your tree. https://mbobrowski.org/patches/kernel/0003-fanotify.patch