Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6950570ybi; Thu, 1 Aug 2019 00:52:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVNeQX7k3PLMyY3/1sXBstPgaN5NRZv7qTgjS69ubQsl+ZmmP0H4eQwVgJH/kteEThDOvc X-Received: by 2002:a17:90a:1ae1:: with SMTP id p88mr6875103pjp.26.1564645933761; Thu, 01 Aug 2019 00:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564645933; cv=none; d=google.com; s=arc-20160816; b=E3LuZ/z25GnSBHrSG0EO4vzLjZvVgqirL4nj7FTux37xHiR25kGoegNujLqBuXnqP/ t0KK7wH7OcOrUPzUdW1IXMj/RG5ZLl3t92qcREmmvN1Ap+rXLcyah1eC8Hmf4v6FhY6p 7O4ojd+1g/uZY6xsiUhOkb4N6KBpibASbsH2Jywef2Ra5vDV6l4L3R6sonV1TyHbSQLq 6px8rZpxoPf58tgm6SWb++zTu1cxjgfYIr0Bi7i8TOMejrjpdGPkWtPclW6VSRSBbxai 1mr8lc7Fr/1Q1maSO2p+nzU0LQoyIQ9eyKDAheEibaOIsv02eCHXp6RqKFxqZ8iMonf6 f67A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8ux6AlfQs5Erzr+6cZ4rMz3wuoWrThqBBqLbF5Zd/4U=; b=ZxANYq+YotXLaLJ4+ba+nQxZMFsjyCBR6U1QYs+rvF/xd0NBaDRjojNGg++LP6+T6V 8siaNt1xfqgNya6ppSdt5AACbl0IIX4HRLIfuz7ggWS04dXgKGGNCLRmKKR9dQUJPs0X tIbeC6qV8P6gYW5mfF/M1DS7pNn+I7A8HchkswbCfJIGZzzHG+a4FowG1DYss0czfDe4 9FIt2E+7mkT15F2xhk/Kw13TtqyXPHeEntCJcQhNyUIACVLR2lMx1Xa/oWimzVs6fMtw EW6uSY82v7XcfUBsRp4TjQn3+StxAy3Vy733B6oZemDi/DT2b17mZ7sVyli8naWE61Sg pLEQ== 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 q9si58008pgm.409.2019.08.01.00.51.58; Thu, 01 Aug 2019 00:52:13 -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 S1730643AbfHAHoG (ORCPT + 99 others); Thu, 1 Aug 2019 03:44:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:33404 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726185AbfHAHoG (ORCPT ); Thu, 1 Aug 2019 03:44:06 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3E2ABB11C; Thu, 1 Aug 2019 07:44:05 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 74FE31E3F4D; Thu, 1 Aug 2019 09:44:04 +0200 (CEST) Date: Thu, 1 Aug 2019 09:44:04 +0200 From: Jan Kara To: Steve Magnani Cc: Roald Strauss , Pali =?iso-8859-1?Q?Roh=E1r?= , Jan Kara , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: UDF filesystem image with Write-Once UDF Access Type Message-ID: <20190801074404.GB25064@quack2.suse.cz> References: <20190712100224.s2chparxszlbnill@pali> <35c0e9f3-b3b6-96c3-e339-2267a3abde9b@digidescorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <35c0e9f3-b3b6-96c3-e339-2267a3abde9b@digidescorp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 26-07-19 12:44:34, Steve Magnani wrote: > Hi, > > On 7/12/19 5:02 AM, Pali Roh?r wrote: > > In my opinion without support for additional layer, kernel should treat > > UDF Write-Once Access Type as read-only mount for userspace. And not > > classic read/write mount. > > > > ... > > > > It seems that udf.ko does not support updating VAT table, so probably it > > should treat also filesystem with VAT as read-only too. > > > > I thinkb085fbe2ef7fa7489903c45271ae7b7a52b0f9ab , deployed in 4.20, > does both of the things you want. > > One case I ran across today that Windows handles, but Linux doesn't, > is write-protection via flags in the DomainIdentifier fields of the > Logical Volume Descriptor and File Set Descriptor. Linux allows > RW mount when those are marked protected, but Windows forces RO mount. Yeah, you're right. We are currently completely ignoring the DomainIdentifier field and at least for read-write mounts we should make sure it is valid. So that's something that needs fixing. Honza -- Jan Kara SUSE Labs, CR