From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753910AbbELUDk (ORCPT ); Tue, 12 May 2015 16:03:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35083 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753845AbbELUDi (ORCPT ); Tue, 12 May 2015 16:03:38 -0400 From: Richard Guy Briggs To: linux-audit@redhat.com, linux-kernel@vger.kernel.org, containers@lists.linux-foundation.org Cc: Richard Guy Briggs , sgrubb@redhat.com, eparis@parisplace.org, pmoore@redhat.com, arozansk@redhat.com, ebiederm@xmission.com, serge@hallyn.com, zohar@linux.vnet.ibm.com Subject: [PATCH V7 01/10] namespaces: expose ns_entries Date: Tue, 12 May 2015 16:02:38 -0400 Message-Id: <00e0c69e2816e9a8af95f243ef4a0c9ab8eaee6a.1431451547.git.rgb@redhat.com> In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Expose ns_entries so subsystems other than proc can use this set of namespace operations. Signed-off-by: Richard Guy Briggs --- fs/proc/namespaces.c | 2 +- include/linux/proc_ns.h | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index c9eac45..41da5f1 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c @@ -11,7 +11,7 @@ #include "internal.h" -static const struct proc_ns_operations *ns_entries[] = { +const struct proc_ns_operations *ns_entries[] = { #ifdef CONFIG_NET_NS &netns_operations, #endif diff --git a/include/linux/proc_ns.h b/include/linux/proc_ns.h index 42dfc61..2654550 100644 --- a/include/linux/proc_ns.h +++ b/include/linux/proc_ns.h @@ -24,6 +24,7 @@ extern const struct proc_ns_operations ipcns_operations; extern const struct proc_ns_operations pidns_operations; extern const struct proc_ns_operations userns_operations; extern const struct proc_ns_operations mntns_operations; +extern const struct proc_ns_operations *ns_entries[]; /* * We always define these enumerators -- 1.7.1