Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754902Ab0ANVAI (ORCPT ); Thu, 14 Jan 2010 16:00:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751956Ab0ANVAH (ORCPT ); Thu, 14 Jan 2010 16:00:07 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:37966 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932151Ab0ANVAG (ORCPT ); Thu, 14 Jan 2010 16:00:06 -0500 MIME-Version: 1.0 In-Reply-To: <20100114205304.GC3814@khazad-dum.debian.net> References: <1263388596.26006.1.camel@yio.site> <20100114205304.GC3814@khazad-dum.debian.net> From: Kay Sievers Date: Thu, 14 Jan 2010 21:59:48 +0100 Message-ID: Subject: Re: Driver-Core: devtmpfs - reset inode permissions before unlinking To: Henrique de Moraes Holschuh Cc: Greg KH , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 813 Lines: 20 On Thu, Jan 14, 2010 at 21:53, Henrique de Moraes Holschuh wrote: > On Wed, 13 Jan 2010, Kay Sievers wrote: >> across the device lifetime by creating hardlinks, in the unusual case >> that there is a user-writable directory on the same filesystem. > > Does a tmpfs mounted in /dev/shm count as "user-writable directory on the > same filesystem" ? Not if it's a separate tmpfs mount, which is recommended. Only if it's just a plain directory on the /dev filesystem. Udev does the same and resets the permissions of the inode before deleting it. Kay -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/