Archived
Create Заметка 006. Что делать если не работает domfsfreeze после установки на ВМ docker
@@ -0,0 +1,22 @@
|
||||
## Смотрим PID процесса qemu-ga
|
||||
```
|
||||
ps -eZ | grep qemu-ga
|
||||
```
|
||||
Должно быть подобное сообщение:
|
||||
```
|
||||
system_u:system_r:virt_qemu_ga_t:s0 707 ? 00:00:00 qemu-ga
|
||||
```
|
||||
707 в данном случае - и есть PID
|
||||
## Выполнить следующую команду (<PID> заменить на PID процесса qemu-ga)
|
||||
```
|
||||
audit2allow -M local << EOF
|
||||
avc: denied { search } for pid=<PID> comm="qemu-ga" name="docker" dev="dm-2" ino=201346835 scontext=system_u:system_r:virt_qemu_ga_t:s0 tcontext=system_u:object_r:container_var_lib_t:s0 tclass=dir permissive=0
|
||||
avc: denied { read } for pid=<PID> comm="qemu-ga" name="containers" dev="dm-2" ino=326 scontext=system_u:system_r:virt_qemu_ga_t:s0 tcontext=system_u:object_r:container_var_lib_t:s0 tclass=dir permissive=0
|
||||
avc: denied { open } for pid=<PID> comm="qemu-ga" path="/var/lib/docker/containers" dev="dm-2" ino=326 scontext=system_u:system_r:virt_qemu_ga_t:s0 tcontext=system_u:object_r:container_var_lib_t:s0 tclass=dir permissive=0
|
||||
avc: denied { ioctl } for pid=<PID> comm="qemu-ga" path="/var/lib/docker/containers" dev="dm-2" ino=326 ioctlcmd=5877 scontext=system_u:system_r:virt_qemu_ga_t:s0 tcontext=system_u:object_r:container_var_lib_t:s0 tclass=dir permissive=0
|
||||
EOF
|
||||
```
|
||||
## Применить изменения
|
||||
```
|
||||
semodule -i local.pp
|
||||
```
|
||||
Reference in New Issue
Block a user