From patchwork Fri Nov 20 23:05:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Etienne Champetier X-Patchwork-Id: 547074 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 96AF61402D2 for ; Sat, 21 Nov 2015 10:05:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=HLs36cY8; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 6B9FE280618; Sat, 21 Nov 2015 00:03:17 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id A0F902805AA for ; Sat, 21 Nov 2015 00:03:12 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 21 Nov 2015 00:03:12 +0100 (CET) Received: by wmww144 with SMTP id w144so36481404wmw.1 for ; Fri, 20 Nov 2015 15:05:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=uGIPYpMrBSHB5cZTSXjbYy7XwxHeYqnEQxac4YN50so=; b=HLs36cY87YpPYLRLFXUecWtZFqc6cRMoynCuKM+H8/gAO89RRYEHtubwb1ng6Xw/OF 3JNkzk5naONbptZjS9I5iKmH/MLqJ4S9NgP4yjfRmqc4denJLsv51NTb+kdgvFbKAOjo 9Si4nvIfn6zOVGGgnwM2Tak3761HU3v69+Yd26fIefCHSYQZkOKsBeTV+gut0AL3DuRL eNVftJjm7YYrbQ3n8tgvCxAqS79wqhST4GXnRfc8wCs4VEczYZaUlgwYRElgshLObHrg f3l0fU/CxwS5ZZ1xo8Fq1kxc25G4Uh7w7LFn0FpxZou4J4/9xzpJlgVevYPC0uYCVmmi iHqA== X-Received: by 10.194.60.4 with SMTP id d4mr19628776wjr.68.1448060712708; Fri, 20 Nov 2015 15:05:12 -0800 (PST) Received: from ubuntu1404.lxcnattst (ns623510.ovh.net. [5.135.134.9]) by smtp.gmail.com with ESMTPSA id h7sm1537107wjz.7.2015.11.20.15.05.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Nov 2015 15:05:12 -0800 (PST) From: Etienne CHAMPETIER To: OpenWrt Development List Date: Fri, 20 Nov 2015 23:05:08 +0000 Message-Id: <1448060709-34652-1-git-send-email-champetier.etienne@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [OpenWrt-Devel] [PATCH procd 1/2] ujail: remove useless arg in clone call X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Etienne CHAMPETIER --- jail/jail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jail/jail.c b/jail/jail.c index 56dc9ca..08babde 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -272,7 +272,7 @@ static int exec_jail() exit(EXIT_FAILURE); } -static int spawn_jail(void *arg) +static int spawn_jail() { if (opts.name && sethostname(opts.name, strlen(opts.name))) { ERROR("failed to sethostname: %s\n", strerror(errno)); @@ -424,7 +424,7 @@ int main(int argc, char **argv) if (opts.namespace) { jail_process.pid = clone(spawn_jail, child_stack + STACK_SIZE, - CLONE_NEWUTS | CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | SIGCHLD, argv); + CLONE_NEWUTS | CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | SIGCHLD, NULL); } else { jail_process.pid = fork(); }