SerCeMan / jnr-fuse

FUSE implementation in Java using Java Native Runtime (JNR)
MIT License
363 stars 86 forks source link

Capturing SetSecurity events #130

Open rjpfonseca opened 3 years ago

rjpfonseca commented 3 years ago

Hi.

In Windows 10 with the debug option "-d" switched on, whenever I assign file permissions to a specific user/group, I can see the corresponding SetSecurity events from the logs produced by winfsp.

Is it possible to capture these events programmatically using jnr-fuse, e.g. with a callback, or is that out of scope for the project?

Thank you.

rjpfonseca commented 3 years ago

The WinFsp Native API FSP_FILE_SYSTEM_INTERFACE contains the SetSecurity event as well as many others. I now see that jnr-fuse doesn't offer a java interface for implementing these Windows-specific filesystem calls. Are there any plans to allow for it in the future?

Thanks.

SerCeMan commented 2 years ago

Hi, @rjpfonseca! Sorry for the late reply, I missed the notification. At the moment, I don't have any plans to implement winfsp-specific functionality. However, I'm happy to review and accept the pull request. There is definitely a room for additional abstraction for OS-specific extensions.