-
Notifications
You must be signed in to change notification settings - Fork 295
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
[Draft] daemon: Prevent new daemon created on same machine #646
Conversation
minminlittleshrimp
commented
Jun 27, 2024
- Only one daemon on the machine listening to fifo
- fifo will not be unlinked by the new daemon init
5b36489
to
570e189
Compare
+ Only one daemon on the machine listening to fifo + fifo will not be unlinked by the new daemon init + Open fd and work with fchown avoiding TOCTOU Signed-off-by: LUU QUANG MINH <[email protected]> Signed-off-by: andv <[email protected]>
570e189
to
b784a33
Compare
@@ -1602,13 +1606,21 @@ | |||
return -1; | |||
} /* if */ | |||
|
|||
fd = open(tmpFifo, O_RDWR); |
Check failure
Code scanning / CodeQL
Time-of-check time-of-use filesystem race condition High
filename
checked
Currently, the toctou issue is not yet solved, could you kindly provide further idea @duvanan13 ? |
Hello @minminlittleshrimp,
Please kindly review and send me feedback! |
Hello @duvanan13 |
Hello @minminlittleshrimp, |
Hello @duvanan13 |
Close as duplicate, head to @duvanan13 PR |