Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752164Ab3HABfY (ORCPT ); Wed, 31 Jul 2013 21:35:24 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:38216 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1751112Ab3HABfX (ORCPT ); Wed, 31 Jul 2013 21:35:23 -0400 X-IronPort-AV: E=Sophos;i="4.89,791,1367942400"; d="scan'208";a="8081853" Message-ID: <51F9BBAB.1080306@cn.fujitsu.com> Date: Thu, 01 Aug 2013 09:36:43 +0800 From: Gao feng User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Rui Xiang CC: containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, serge.hallyn@ubuntu.com, ebiederm@xmission.com, akpm@linux-foundation.org, libo.chen@huawei.com Subject: Re: [PATCH 4/9] syslog_ns: make syslog handling per namespace References: <1375065080-26740-1-git-send-email-rui.xiang@huawei.com> <1375065080-26740-5-git-send-email-rui.xiang@huawei.com> In-Reply-To: <1375065080-26740-5-git-send-email-rui.xiang@huawei.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/08/01 09:33:07, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/08/01 09:33:07, Serialize complete at 2013/08/01 09:33:07 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 24 On 07/29/2013 10:31 AM, Rui Xiang wrote: > This patch makes syslog buf and other fields per > namespace. > > Here use ns->log_buf(log_buf_len, logbuf_lock, > log_first_seq, logbuf_lock, and so on) fields > instead of global ones to handle syslog. > > Syslog interfaces such as /dev/kmsg, /proc/kmsg, > and syslog syscall are all containerized for > container users. > /dev/kmsg is used by the syslog api closelog, openlog, syslog, vsyslog, this should be per user namespace, but seems in your patch, the syslog message generated through these APIs on host can be exported to the /dev/kmsg of container, is this want we want? Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/