From issues-return-47678-archive-asf-public=cust-asf.ponee.io@mesos.apache.org Thu May 17 03:57:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D2928180669 for ; Thu, 17 May 2018 03:57:03 +0200 (CEST) Received: (qmail 71511 invoked by uid 500); 17 May 2018 01:57:02 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 71496 invoked by uid 99); 17 May 2018 01:57:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2018 01:57:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CA5E7CB5B9 for ; Thu, 17 May 2018 01:57:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id jkeqYuV0bKTR for ; Thu, 17 May 2018 01:57:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id CFD2D5F3F4 for ; Thu, 17 May 2018 01:57:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 63F6DE02EC for ; Thu, 17 May 2018 01:57:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1136A2179F for ; Thu, 17 May 2018 01:57:00 +0000 (UTC) Date: Thu, 17 May 2018 01:57:00 +0000 (UTC) From: "Jason Lai (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-8257) Unified Containerizer "leaks" a target container mount path to the host FS when the target resolves to an absolute path MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-8257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16478377#comment-16478377 ] Jason Lai commented on MESOS-8257: ---------------------------------- After discussions with [~jieyu] on the refactoring done in {{launch.cpp}} for platform-specific support, I decided to drop some of the patches till we reach an consensus on how refactoring should be done for {{launch.cpp}}. The new patch chain for this particular task has become: * https://reviews.apache.org/r/65811 * https://reviews.apache.org/r/65812 * https://reviews.apache.org/r/65900 * https://reviews.apache.org/r/67175 * https://reviews.apache.org/r/67176 I'll add more patches for tests soon. > Unified Containerizer "leaks" a target container mount path to the host FS when the target resolves to an absolute path > ----------------------------------------------------------------------------------------------------------------------- > > Key: MESOS-8257 > URL: https://issues.apache.org/jira/browse/MESOS-8257 > Project: Mesos > Issue Type: Bug > Components: containerization > Affects Versions: 1.3.1, 1.4.1, 1.5.0 > Reporter: Jason Lai > Assignee: Jason Lai > Priority: Critical > Labels: bug, containerizer, mountpath > > If a target path under the root FS provisioned from an image resolves to an absolute path, it will not appear in the container root FS after {{pivot_root(2)}} is called. > A typical example is that when the target path is under {{/var/run}} (e.g. {{/var/run/some-dir}}), which is usually a symlink to an absolute path of {{/run}} in Debian images, the target path will get resolved as and created at {{/run/some-dir}} in the host root FS, after the container root FS gets provisioned. The target path will get unmounted after {{pivot_root(2)}} as it is part of the old root (host FS). > A workaround is to use {{/run}} instead of {{/var/run}}, but absolute symlinks need to be resolved within the scope of the container root FS path. -- This message was sent by Atlassian JIRA (v7.6.3#76005)