From mboxrd@z Thu Jan 1 00:00:00 1970 From: Colin Walters Subject: Re: [PATCH 0/6] File Sealing & memfd_create() Date: Thu, 10 Apr 2014 19:45:38 +0000 Message-ID: <1397159378.4434.1@mail.messagingengine.com> References: <1395256011-2423-1-git-send-email-dh.herrmann@gmail.com> <20140320153250.GC20618@thunk.org> <1397141388.16343.10@mail.messagingengine.com> <5346EDE8.2060004@amacapital.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Return-path: In-Reply-To: <5346EDE8.2060004@amacapital.net> Sender: owner-linux-mm@kvack.org To: Andy Lutomirski Cc: tytso@mit.edu, David Herrmann , linux-kernel@vger.kernel.org, Hugh Dickins , Alexander Viro , Matthew Wilcox , Karol Lewandowski , Kay Sievers , Daniel Mack , Lennart Poettering , Kristian@thunk.org, john.stultz@linaro.org, Greg Kroah-Hartman , Tejun Heo , Johannes Weiner , dri-devel@lists.freedesktop.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Linus Torvalds , Ryan Lortie , mtk.manpages@gmail.com List-Id: dri-devel@lists.freedesktop.org On Thu, Apr 10, 2014 at 3:15 PM, Andy Lutomirski wrote: > > > COW links can do this already, I think. Of course, you'll have to > use a > filesystem that supports them. COW is nice if the filesystem supports them, but my userspace code needs to be filesystem agnostic. Because of that, the design for userspace simply doesn't allow arbitrary writes. Instead, I have to painfully audit every rpm %post/dpkg postinst type script to ensure they break hardlinks, and furthermore only allow executing scripts that are known to do so. But I think even in a btrfs world it'd still be useful to mark files as content-immutable. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org