Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement /dev/kmsg inside gVisor #2290
Comments
|
gVisor does not currently provide a /dev/kmsg file, it is something we'd have to implement (though perhaps it is possible to bind mount a fake file at that location? @fvoznika). Anyways, it looks like you can pass -Q to ltp to disable kmsg logging: https://github.com/linux-test-project/ltp/blob/e566f9ac7816b38bf16ba3570806427385dbf98b/pan/ltp-pan.c#L214 |
|
Bind mount will not work because |
|
Ah yes, you could mount a fake file in touch /tmp/fake-kmsg
docker run --rm --runtime=runsc -v /tmp/fake-kmsg:/dev/kmsg ... |


I am trying to run ltp(https://github.com/linux-test-project), while it seems to run fine with runc in the docker
privilegedmode. I am getting error when I do the same with runsc.Basically, ltp needs access to /dev/kmsg which I enabled in
runcby running it with --privileged flag but the same is not working withrunsc-kvm. I knowrunschave stricter boundaries when it comes to giving access. I was wondering is there any way I can disable this in the build or by any other way?