From patchwork Wed Mar 21 15:49:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 7388 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3344423E0C for ; Wed, 21 Mar 2012 15:49:13 +0000 (UTC) Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by fiordland.canonical.com (Postfix) with ESMTP id 269A7A1816A for ; Wed, 21 Mar 2012 15:49:13 +0000 (UTC) Received: by werf3 with SMTP id f3so1429779wer.11 for ; Wed, 21 Mar 2012 08:49:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=yGVkRAbBmkdE+pQx53F0zSqPYSsbrZUAwbMBmtQ/V8Y=; b=eoBfMD4L68ItdYpwDzaFtOIDbYOpreS9gqLOxZ1prF+3mT0nhBKG2UXh7gDaPB6yv2 fR1uoGHPIXCc0fbDIsGwS7sSQjDDyqgDGzsbImhkiNFQmp2dtW6tx0hLWL0AvVStp5Pa Qetm5Fsu8EwZn8h23b1G7rpJjZS6lxq6yXRgHW98jtJ0fLceN9AsL/cKk47svbI6MHa6 ZUuh8cvi5/RCXdqwleacaf3ThBTdZ3NsMVNa/sZv/jnQPDpM0bOwHLdVHqeiSg0UtS0t YqrT0MflLj5Kb98lHAZqTeV9tZEV2rgWc7z+H6ibK4cBnEYEqEsZ5HAG65x3UBatqvyJ fX/w== Received: by 10.50.47.231 with SMTP id g7mr11934181ign.12.1332344952384; Wed, 21 Mar 2012 08:49:12 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.203.79 with SMTP id fh15csp17092ibb; Wed, 21 Mar 2012 08:49:11 -0700 (PDT) Received: by 10.216.133.234 with SMTP id q84mr2564491wei.102.1332344951016; Wed, 21 Mar 2012 08:49:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id u38si2223843weq.62.2012.03.21.08.49.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Mar 2012 08:49:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SANmg-0003nu-Ev for ; Wed, 21 Mar 2012 15:49:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 62E26E012C for ; Wed, 21 Mar 2012 15:49:10 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: linaro-image-tools X-Launchpad-Branch: ~linaro-image-tools/linaro-image-tools/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 500 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-image-tools/linaro-image-tools/trunk] Rev 500: Prevent daemons to start in the chroot (LP: #912782) Message-Id: <20120321154910.16519.71235.launchpad@ackee.canonical.com> Date: Wed, 21 Mar 2012 15:49:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14981"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 00f7800d33ceb85fce3399e28908a33fcb100dee X-Gm-Message-State: ALoCoQk0I63XZsrwRUjkiS9zzJpk46fI+Flc9ICy+77+M9JFWChUsc3PRtGjZKMi8SlgGhpPDbDy Merge authors: Fathi Boudra (fboudra) Related merge proposals: https://code.launchpad.net/~fboudra/linaro-image-tools/bug-912782/+merge/98604 proposed by: Fathi Boudra (fboudra) review: Approve - Fathi Boudra (fboudra) ------------------------------------------------------------ revno: 500 [merge] committer: Fathi Boudra branch nick: linaro-image-tools timestamp: Wed 2012-03-21 17:47:15 +0200 message: Prevent daemons to start in the chroot (LP: #912782) modified: linaro-hwpack-install --- lp:linaro-image-tools https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk You are subscribed to branch lp:linaro-image-tools. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription === modified file 'linaro-hwpack-install' --- linaro-hwpack-install 2011-12-06 03:35:46 +0000 +++ linaro-hwpack-install 2012-03-21 10:32:24 +0000 @@ -89,6 +89,7 @@ # Ensure our temp dir and apt sources are removed. echo -n "Cleaning up ..." rm -rf $TEMP_DIR + rm -f /usr/sbin/policy-rc.d $sudo apt-get update -qq echo "Done" } @@ -148,6 +149,10 @@ $sudo apt-key add $file done +# Prevent daemons to start in the chroot +echo "exit 101" > /usr/sbin/policy-rc.d +chmod a+x /usr/sbin/policy-rc.d + # Add one extra apt source for the packages included in the hwpack and make # sure it's the first on the list of sources so that it gets precedence over # the others.