Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp451530ybi; Fri, 26 Jul 2019 12:34:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2NXWHVEcNNf5dHi0cmmijzGSGyTj/rRbN2+OFgaKCUpkl3Zs9nApNIijUNhVTp20YBhE9 X-Received: by 2002:a17:902:a40c:: with SMTP id p12mr97894114plq.146.1564169676231; Fri, 26 Jul 2019 12:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564169676; cv=none; d=google.com; s=arc-20160816; b=WIzKzSuG8NG7RPKlIKyVT8oWjkHGzS5b49JfdkQUIpO5N5ekpUkAyxeNlMk+y3kR/t Rf1uEoRbmOy7bqHl5yEgd5iwnATpGQPsbc500ID97Oi/nrtDrtfUZ8kucgLp5OblKSzR 5xajMIQEQUuPfccqy52wsx8RhqYgYRGZKC7LcyOzMC1/vIcFzq6mJVawwxqGJWDBW0Ju Z18DCufftPff40RDnywNrlhMkIirutwaqbBLcDFrwaFvZNR0c11cuO6C+aPbwyYuPeOK np7KQyk6OBUNSJIwXHhj7gQAIeVQDFgE5dAjOJfae2qrJX2E1FqfKfz19s9ghBUM2RVK c9hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=XGiRMPASSfpdv0nLL5//ERFqTc1sdi81IJlbfjhUYF4=; b=AnH2hXpl3QA1PO4NUh8DHXA+Q1lmSYrv44z6ttVJMWzAF3m28TV9T8mrd2XeyWG/tV w3tf8HEa/ENrDkGbhQaoThLALHu95U6jMdXonPbTvlp048Wl/AngfyOOPF+b4jDpIu62 JsTfSt/0+nzdXCEcwrIhGk+NQyx45HoUmWCPUI8fb7I2ogCpzLpWdNSxuuc0ovjYa+O5 0HoBOy0xISs5kyjezaTAd8xLY3qsih+AhZ2ug5bSoEnmmLoRkcWMiNy3eV/ROagcf70P TeKof0nlVAxuoPY6WScTYPOn1fte5PxqMPrbRoYwvK2HB/l94Wa4MbuT8IEY+peHpMgt AUtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digidescorp.com header.s=google header.b=lWH35tpT; 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 z24si21532017plo.159.2019.07.26.12.34.21; Fri, 26 Jul 2019 12:34:36 -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; dkim=pass header.i=@digidescorp.com header.s=google header.b=lWH35tpT; 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 S2387943AbfGZRoi (ORCPT + 99 others); Fri, 26 Jul 2019 13:44:38 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:42289 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387930AbfGZRoh (ORCPT ); Fri, 26 Jul 2019 13:44:37 -0400 Received: by mail-io1-f65.google.com with SMTP id e20so76069841iob.9 for ; Fri, 26 Jul 2019 10:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digidescorp.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=XGiRMPASSfpdv0nLL5//ERFqTc1sdi81IJlbfjhUYF4=; b=lWH35tpTOr5GOyTvTY9XSo4VEIu3yVKwo0RN1ErJc1Fwrascs6Yyf72FAMPXvWD7z2 0UcuLBoHkpCi4jJTuCoXWHJzJ9imt5qSUNCyFNwG4Bev/EAaP4hBJdD5wx/xdIyCLHhL NVwnJ4Tn6I8gWQufCRs0/vkMGIamZYubPkCA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=XGiRMPASSfpdv0nLL5//ERFqTc1sdi81IJlbfjhUYF4=; b=Y/1DDHpjX3jMffVm/xTmmS2fK/rVvz5aGeJKheEhUu1NVaZLEQNppWhH4Pkgg9Twcy S9sDUTBh43mKEdjoM0m0dIYjJ0bbYmm3fTH6dmsQ6cVUFRXbs81U6Zx8Mds+Ucm9NVHd H1a6sQWaLijak5iv453V2gkX7rXREF4fyO7HFQlK3I2QF/u7ihBfr78aO2gqBXtK8d7o TZtYZ1qvs9LqiD7V4gqZzUB0lEfyUlrO/eVOZ+z9UppAPUuNxBXRdoq8ogybAkxDcyxR 0bVhCnEVSDk5QJxAxIdgefqJNzsht2F1GkJn8sbGTLW0HmH4PmFP7s13+ZzjN9qAMkGT pyIQ== X-Gm-Message-State: APjAAAUeJKJZZX5slmCaxUvJPL4ajPZ51pyMMCP9iJphEYSWzFuBxXSN RykzHiSpYKT70h8TzUdjWbpdl+XbHLs= X-Received: by 2002:a02:914c:: with SMTP id b12mr53261639jag.105.1564163076802; Fri, 26 Jul 2019 10:44:36 -0700 (PDT) Received: from [10.10.7.141] ([50.73.98.161]) by smtp.googlemail.com with ESMTPSA id h8sm49606627ioq.61.2019.07.26.10.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jul 2019 10:44:36 -0700 (PDT) Subject: Re: UDF filesystem image with Write-Once UDF Access Type To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Jan Kara , Roald Strauss , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190712100224.s2chparxszlbnill@pali> From: Steve Magnani Message-ID: <35c0e9f3-b3b6-96c3-e339-2267a3abde9b@digidescorp.com> Date: Fri, 26 Jul 2019 12:44:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190712100224.s2chparxszlbnill@pali> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, ------------------------------------------------------------------------ Steven J. Magnani "I claim this network for MARS! www.digidescorp.com Earthling, return my space modulator!" #include