Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ECE37200B5C for ; Thu, 11 Aug 2016 17:44:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EB879160A93; Thu, 11 Aug 2016 15:44:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6D15C160A90 for ; Thu, 11 Aug 2016 17:44:21 +0200 (CEST) Received: (qmail 44035 invoked by uid 500); 11 Aug 2016 15:44:20 -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 44024 invoked by uid 99); 11 Aug 2016 15:44:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2016 15:44:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6F8522C0003 for ; Thu, 11 Aug 2016 15:44:20 +0000 (UTC) Date: Thu, 11 Aug 2016 15:44:20 +0000 (UTC) From: "Gaojin CAO (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-6027) Executor stdout/stderr should not be world-readable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 11 Aug 2016 15:44:22 -0000 [ https://issues.apache.org/jira/browse/MESOS-6027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417463#comment-15417463 ] Gaojin CAO commented on MESOS-6027: ----------------------------------- [~adam-mesos], you mean we should make the outputs like these: {code} sh -c 'whoami && ls -l && sleep 1001' nobody -rw-r-----. 1 nobody nobody 2199 Jul 7 00:12 stderr -rw-r-----. 1 nobody nobody 208 Jul 7 00:12 stdout {code} which means adding file permissions when creating std{err, out} files, am i right? > Executor stdout/stderr should not be world-readable > --------------------------------------------------- > > Key: MESOS-6027 > URL: https://issues.apache.org/jira/browse/MESOS-6027 > Project: Mesos > Issue Type: Bug > Reporter: Adam B > Assignee: Gaojin CAO > Labels: newbie, security > > Running a task as 'nobody': > {code} > sh -c 'whoami && ls -l && sleep 1001' > nobody > -rw-r--r--. 1 nobody nobody 2199 Jul 7 00:12 stderr > -rw-r--r--. 1 nobody nobody 208 Jul 7 00:12 stdout > {code} > As a user of a multi-tenant Mesos, I would expect my task logs to be inaccessible to other users/tasks on the same node. Filesystem isolation helps from one angle, but basic Linux filesystem permissions are just good practice. > There's no reason that any user other than the task user (i.e. the task itself) and root (e.g. Mesos agent) should be able to access these logs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)