[lxc-users] kernel messages appear in containers?

Richard Hector richard at walnut.gen.nz
Sun Feb 3 09:04:52 UTC 2019


On 3/02/19 3:54 PM, Tomasz Chmielewski wrote:
> On 2019-02-03 11:51, Richard Hector wrote:
>> Hi all,
>>
>> I've noticed that some log messages that really belong to the host (like
>> those from monthly RAID checks, for example) can appear in arbitrary
>> containers instead - so they're spread all over the place.
>>
>> Is that normal/fixable?
> 
> I'd say it's a "normal, bad default".
> 
> You can fix it by adding this to your sysctl config file:
> 
> kernel.dmesg_restrict         = 1
On 3/02/19 9:47 PM, Stéphane Graber wrote:> Yes, this is normal and as
pointed out already, can be tweaked with
> dmesg_restrict.
>
> There was some interest a while back in implementing a logging
> namespace, which would solve this cleanly, but it's never been enough
> of a priority for anyone to actually do the kernel work for it.

Thanks to both.

Done; will watch for results :-)

Cheers,

Richard


More information about the lxc-users mailing list