Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore atime/mtime after writing to file #99

Open
nil0x42 opened this issue Jul 29, 2016 · 1 comment
Open

restore atime/mtime after writing to file #99

nil0x42 opened this issue Jul 29, 2016 · 1 comment

Comments

@nil0x42
Copy link
Contributor

nil0x42 commented Jul 29, 2016

ti handle this, we could keep a gloal array of stat(2) structs as long as a file is opened,
then restore file atime/mtime on each write(2) or close(2) (write seems better).

of course, this feature must be enabled only for attacker (IS_ATTACKER)

NOTE: we must take into account the fact that the file could be opened concurently by some processes, loosing stat() information. For example, process P1 opens file F for write, then P2 opens F the same way. If P2 writes or closes the file BEFORE P1, it could be a problem that MUST be handled properly.

@corefx
Copy link

corefx commented Jul 30, 2016

Sounds like a great idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants