Skip to content

Conversation

@andriyolo
Copy link
Owner

Fcntl and flock are virtualized through VUFS using a supporting file for each lock request instead of the original one.

Note that this implementation needs testing:

  • check that all cases are correctly handled
  • check that the SC behave correctly in case of multi-threaded programs
  • close the newly created files when the actual one is (it shouldn't be possible doing it before)

The struct flock argument now is correctly read from the tracee memory
using umvu's peek/poke functions.
Remove flock out function since it's no longer needed.
@andriyolo andriyolo merged commit 5e9e859 into master Aug 3, 2020
@andriyolo andriyolo deleted the vufs-locking branch August 3, 2020 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants