From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26909 invoked by alias); 26 Jun 2018 13:00:34 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 22754 invoked by uid 89); 26 Jun 2018 13:00:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=our X-HELO: mx1.redhat.com Subject: Re: RFC V3 [1/2] test-in-container To: DJ Delorie , libc-alpha@sourceware.org References: From: Florian Weimer Message-ID: Date: Tue, 26 Jun 2018 13:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-06/txt/msg00797.txt.bz2 On 03/02/2018 12:05 AM, DJ Delorie wrote: > + // The unshare here gives us our own spaces and capabilities. > + if (unshare (CLONE_NEWUSER | CLONE_NEWPID | CLONE_NEWNS) < 0) > + error (EXIT_UNSUPPORTED, errno, "unable to unshare user/fs, "); > + > + /* Some systems, by default, all mounts leak out of the namespace. */ > + if (mount ("none", "/", NULL, MS_REC | MS_PRIVATE, NULL) != 0) > + error (EXIT_UNSUPPORTED, errno, "could not create a private mount namespace\n"); error writes error messages to standard error, where they aren't captured in the .out file. You need to use something like FAIL_UNSUPPORTED or printf. Thanks, Florian