make exec.fifo can be safety read#4932
make exec.fifo can be safety read#4932ningmingxiao wants to merge 1 commit intoopencontainers:mainfrom
Conversation
42a0831 to
640f468
Compare
|
We need to be quite careful around changing this code, as there is a lot of history behind how we ended up with this fairly ugly FIFO solution. The signalling model we have takes advantage of the fact that We used to use signals and switched to the FIFO because of lots of issues with that model (signal coalescing and pid1 has special signal semantics). That being said, I wonder if
This seems like A Very Bad Idea ™️ -- unix sockets are not protected by |
640f468 to
c59b45b
Compare
|
I can't prevent user bind /var/run into container. I find crun start will write data into the fifo. may be we can refer it. |
c59b45b to
ebb3e9c
Compare
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
ebb3e9c to
eeb7144
Compare
some people read-only mount /var/run into container,some process will read /run/runc/id/exec.fifo (for example antivirus apps) it will cause runc start failed.
after this commit /run/runc/id/exec.fifo has a lower risk of being misread even user doesn't ro bind /var/run into container. @kolyshkin @cyphar