Received: by 10.192.165.148 with SMTP id m20csp4717671imm; Tue, 1 May 2018 02:25:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrwbL0sjnDIFIlivaQ8o0wQO5dAofVjkDC9e59Nc9UspgJdYHXIROvOeSESJmbedyctoxoN X-Received: by 2002:a17:902:704c:: with SMTP id h12-v6mr1165763plt.269.1525166720392; Tue, 01 May 2018 02:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525166720; cv=none; d=google.com; s=arc-20160816; b=ZwR9C7i7L+L4NgbZNgI09d20tKw9lJwVRHlzS2rG3SeLus/aWsuF4zNLnoVaz1yxWi H99imdRTtU6/wCmPQ+tJGX17g5HJiYDmQVRHAvA/5kN9bZ2cMR/tofuK3ccqCQNyD2sy leeE0mDz5b9VAxhvuijxk2p/dncKFKSSx7y2V+kwDFkiRzzr+z1DXiraYlbOJj4oQNC7 uSAzFLMePRNQi+9S5DvhAw4fCAPmiWYb8C/timeiFD/JHxkGmHZejgTzzSgGk0qOAKbl 3Je+MxVyxpd87/TBjuKcfHOmOd8JQIy1wNeql9ZVMOcjNKJqXs145qqojjV3RVEaH1pe MAsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:to:from:subject:message-id :arc-authentication-results; bh=dqmly5zbL2yC9czHs1P+lAukPCMCJmK4GHeeoXEYvjQ=; b=yRV4l4BrKUY6NXT1xwRwZdInbGKzbE7Om/JrtVoDFiUElDP4IsEN1oXmGtiYMWIRpt W3vM95M5j1eWUvQlYtX3ZBs3kva+SA579ZWtE6QbV8mqj//BAT99MiYVk3BXu85tRS0O o5tLBF4dvQvnjUDD/dvlOCDtwM8Y3IHh1prGAdWXAdo9oQF1YyO3bQGAeglTk71vGKGX SntTEZNlWXmyH1bk69ySMYREcS3in3+F/6e7QWBHc/aCUkVbMzQa+SAcKgv7iUQSKIMh BoHt2K6Z07Gsg7eZ1ZHDoeTnkVLYdXjyNmA1NlmK3PaLhiusnaI+3lfKZYcZWdn1/VuS Fo7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4-v6si4391513pgp.103.2018.05.01.02.25.06; Tue, 01 May 2018 02:25:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754262AbeEAJYU (ORCPT + 99 others); Tue, 1 May 2018 05:24:20 -0400 Received: from esgaroth.petrovitsch.at ([78.47.184.11]:2023 "EHLO esgaroth.tuxoid.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753874AbeEAJYT (ORCPT ); Tue, 1 May 2018 05:24:19 -0400 X-Greylist: delayed 1243 seconds by postgrey-1.27 at vger.kernel.org; Tue, 01 May 2018 05:24:18 EDT Received: from thorin.petrovitsch.priv.at (80-110-71-232.cgn.dynamic.surfer.at [80.110.71.232]) (authenticated bits=0) by esgaroth.tuxoid.at (8.15.2/8.15.2) with ESMTPSA id w419392g009912 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO); Tue, 1 May 2018 11:03:10 +0200 Message-ID: <1525165387.23227.44.camel@petrovitsch.priv.at> Subject: Re: Suggested new user link command From: Bernd Petrovitsch To: Tony Wallace , linux-kernel@vger.kernel.org Date: Tue, 01 May 2018 11:03:07 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 (3.26.6-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-DCC-debian-Metrics: esgaroth.tuxoid.at 1169; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: clamav-milter 0.97 at esgaroth.tuxoid.at X-Virus-Status: Clean X-Spam-Status: No, score=0.7 required=5.0 tests=AWL,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Report: * 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines * 0.7 AWL AWL: Adjusted score from AWL reputation of From: address X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on esgaroth.tuxoid.at Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Tue, 2018-05-01 at 20:03 +1200, Tony Wallace wrote: > I am suggesting a new command for linking files. Currently there is > no > easy way to link a file with a known inode number to its correct > position in the directory tree. > > > int ilink(const int inode, const char *newpath) ... avoiding any permission checks on all paths to the existing names. > The current alternative to this command is to find the file path > associated with an inode using the find command and then once found > using a standard link command. Obviously this is very inefficient. That's the price for security as it requires proper permissions. Or is this a root-only syscall? MfG, Bernd -- Bernd Petrovitsch Email : bernd@petrovitsch.priv.at LUGA : http://www.luga.at