From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751491AbdBYAWi (ORCPT ); Fri, 24 Feb 2017 19:22:38 -0500 Received: from mail-qk0-f195.google.com ([209.85.220.195]:32824 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751372AbdBYAWg (ORCPT ); Fri, 24 Feb 2017 19:22:36 -0500 From: bosrsf04@gmail.com To: Alexander Viro , Andrew Morton , Kees Cook , Arnd Bergmann , Ingo Molnar , Ard Biesheuvel , Andy Lutomirski , Nicolas Pitre , Petr Mladek , Helge Deller , Rik van Riel , Thomas Garnier , Parav Pandit , "seokhoon . yoon" , Thomas Gleixner , Dave Hansen , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: josh@joshtriplett.org, brkkurek192@gmail.com, conorcurry@gmail.com, fanofbond138@gmail.com, Brian Ashworth Subject: [PATCH 0/3] fs: Support compiling out the pivot_root syscall Date: Fri, 24 Feb 2017 19:21:48 -0500 Message-Id: X-Mailer: git-send-email 2.11.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brian Ashworth This patch series will allow for the pivot_root syscall to be made optional. The first patch refactors the functions that are required by pivot_root so they can be accessed outside of fs/namespace.c. The second patch moves the pivot_root syscall to its own file. The third adds a Kconfig option and conditional compilation to the Makefile. The pivot_root syscall is not needed on systems that do not use any intermediate filesystem. Allowing for pivot_root to be ommitted from the kernel will aid in the tinification efforts. Brian Ashworth (3): Makes functions used by pivot_root accessible Extracts pivot_root so it can be made optional Allows for the pivot_root syscall to be omitted fs/Makefile | 2 + fs/mount.h | 24 +++++++++ fs/namespace.c | 150 +++----------------------------------------------------- fs/pivot_root.c | 129 ++++++++++++++++++++++++++++++++++++++++++++++++ init/Kconfig | 10 ++++ kernel/sys_ni.c | 1 + 6 files changed, 172 insertions(+), 144 deletions(-) create mode 100644 fs/pivot_root.c -- 2.11.1