Skip to content

Enable SysBox container exec dmesg --clear klogctl failed: Operation not permitted #751

Closed Answered by ctalledo
xlw712 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xlw712,

I found a problem, and executing dmesg --clear reported an error
dmesg: klogctl failed: Operation not permitted

Yes that's expected; dmesg --clear requires "true root" permissions since it's clearing the kernel's ring buffer; inside a Sysbox container, you have a "fake root" which only has root access to resources associated with the container (it's not a true root). Thus you can't clear the kernel ring buffer from within a Sysbox container.

In the future we may improve on this by emulating the kernel ring buffer inside each container, but we are not there yet.

Hope that helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ctalledo
Comment options

Answer selected by xlw712
@xlw712
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants