From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94829C433E6 for ; Fri, 28 Aug 2020 14:47:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 720FE2086A for ; Fri, 28 Aug 2020 14:47:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728022AbgH1OrT (ORCPT ); Fri, 28 Aug 2020 10:47:19 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:47198 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726322AbgH1OrS (ORCPT ); Fri, 28 Aug 2020 10:47:18 -0400 Received: from callcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 07SEkuEP017122 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Aug 2020 10:46:57 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 861A4420128; Fri, 28 Aug 2020 10:46:56 -0400 (EDT) Date: Fri, 28 Aug 2020 10:46:56 -0400 From: "Theodore Y. Ts'o" To: Christian Schoenebeck Cc: "Dr. David Alan Gilbert" , Miklos Szeredi , Al Viro , Frank van der Linden , Dave Chinner , Greg Kurz , linux-fsdevel@vger.kernel.org, Stefan Hajnoczi , Miklos Szeredi , Vivek Goyal , Giuseppe Scrivano , Daniel J Walsh , Chirantan Ekbote Subject: Re: file forks vs. xattr (was: xattr names for unprivileged stacking?) Message-ID: <20200828144656.GF7180@mit.edu> References: <20200824222924.GF199705@mit.edu> <20200827144452.GA1236603@ZenIV.linux.org.uk> <20200827162935.GC2837@work-vm> <11755866.l6z0jNX47O@silver> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11755866.l6z0jNX47O@silver> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Fri, Aug 28, 2020 at 11:11:15AM +0200, Christian Schoenebeck wrote: > > Built-in path resolution would be nice, but it won't be a show stopper for > such common utils if not. For instance on Solaris there is: > > runat ... > > which works something like fchdir(); execv(); you loose some flexibility, but > in practice still OK. And we know from the Solaris experience that it was used *much* more by malware authors (since most Unix security scanners didn't know about forks) than any legitmate users. Which is another way of saying, it's a bad idea --- unless you are a malware author. - Ted