When I restart systemd in docker container A, /dev/XXX
's access will be changed. For example:
before:
docker exec -it xxxx bash
chmod 755 /dev/random
do:
docker restart xxxx
after:
docker exec -it xxxx bash
/dev/random
will be changed to 0666
where position systemd modify this in systemd source code? Is this logically?
Is this relate to systemd-udevd?
Execute /usr/lib/systemd/systemd-udevd? [Yes, No, Skip] [** ] (4 of 6) A start job is running for Create Volatile Files and Directories (3min 48s / no limit)y
[*** ] (5 of 6) A start job is running for Mark the need to relabel after reboot (3min 49s / no limit)(src/core/manager.c:1519) Got notification message for unit -.slice
(src/core/manager.c:1519) Got notification message for unit systemd-udevd.service
(src/core/service.c:2741) systemd-udevd.service: Got notification message from PID 503 (READY=1)
(src/core/service.c:2785) systemd-udevd.service: got READY=1
(src/core/service.c:878) systemd-udevd.service changed start -> running
(src/core/job.c:811) Job systemd-udevd.service/start finished, result=done
[ OK ] Started udev Kernel Device Manager.