<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:11:24 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-14629] Prevent file renaming from encrypted to unencrypted dir</title>
                <link>https://jira.whamcloud.com/browse/LU-14629</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&lt;tt&gt;fscrypt&lt;/tt&gt; allows renaming an encrypted file from an encrypted directory to an unencrypted directory, according to the documentation at:&lt;br/&gt;
&lt;a href=&quot;https://www.kernel.org/doc/html/latest/filesystems/fscrypt.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.kernel.org/doc/html/latest/filesystems/fscrypt.html&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Access semantics&lt;/p&gt;

&lt;p&gt;With the key&lt;/p&gt;

&lt;p&gt;Unencrypted files, or files encrypted with a different encryption policy (i.e. different key, modes, or flags), cannot be renamed or linked into an encrypted directory; see Encryption policy enforcement. Attempts to do so will fail with EXDEV. However, encrypted files can be renamed within an encrypted directory, or into an unencrypted directory.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;However, it seems odd to allow such a rename. Indeed, once the encrypted file has been renamed into the unencrypted directory, it &lt;b&gt;does&lt;/b&gt; remain encrypted: it keeps its flags saying it is encrypted, its content remains encrypted (because file data has not been touched by rename), and only its name appears in clear text. As such, access to the file is possible only with the key, even if it sits into an unencrypted directory. And the only way to input the key is to unlock the encrypted dir from which the file is originating. Of course, there is no obvious relationship between the renamed file and its original directory, and only the one who proceeded to the rename might have this information.&lt;br/&gt;
Note it is still possible to rename the encrypted file back to its original encrypted dir, but not to another encrypted dir. And if the original encrypted directory gets removed, then we lose any possibility to input the encryption key for the renamed file.&lt;/p&gt;

&lt;p&gt;Taking this into consideration, I would like to submit a patch in &lt;tt&gt;llite&lt;/tt&gt; that prevents a file in an encrypted directory from being renamed into an unencrypted directory.&lt;/p&gt;</description>
                <environment></environment>
        <key id="63877">LU-14629</key>
            <summary>Prevent file renaming from encrypted to unencrypted dir</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="sebastien">Sebastien Buisson</assignee>
                                    <reporter username="sebastien">Sebastien Buisson</reporter>
                        <labels>
                            <label>encryption</label>
                            <label>patch</label>
                            <label>sec</label>
                    </labels>
                <created>Thu, 22 Apr 2021 09:26:10 +0000</created>
                <updated>Fri, 1 Oct 2021 23:23:47 +0000</updated>
                            <resolved>Fri, 1 Oct 2021 15:12:18 +0000</resolved>
                                    <version>Lustre 2.15.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="299481" author="gerrit" created="Thu, 22 Apr 2021 10:53:21 +0000"  >&lt;p&gt;Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43404&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43404&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14629&quot; title=&quot;Prevent file renaming from encrypted to unencrypted dir&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14629&quot;&gt;&lt;del&gt;LU-14629&lt;/del&gt;&lt;/a&gt; sec: forbid file rename from enc to unencrypted dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 57927cd9a0f33c5dd34b48c8d6f9ece7a9c5fb7d&lt;/p&gt;</comment>
                            <comment id="303325" author="gerrit" created="Wed, 2 Jun 2021 17:48:36 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43404/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43404/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14629&quot; title=&quot;Prevent file renaming from encrypted to unencrypted dir&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14629&quot;&gt;&lt;del&gt;LU-14629&lt;/del&gt;&lt;/a&gt; sec: forbid file rename from enc to unencrypted dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1158386ac9c6a638f791f62e47a7513b2322772c&lt;/p&gt;</comment>
                            <comment id="303380" author="pjones" created="Wed, 2 Jun 2021 23:29:31 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="314017" author="sebastien" created="Mon, 27 Sep 2021 12:50:18 +0000"  >&lt;p&gt;An issue was found with patch &lt;a href=&quot;https://review.whamcloud.com/43908&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43908&lt;/a&gt;. We intentionally forbid file and directory rename from encrypted to unencrypted directory. But we must not block rename of the topmost encrypted directory.&lt;/p&gt;</comment>
                            <comment id="314018" author="gerrit" created="Mon, 27 Sep 2021 12:50:32 +0000"  >&lt;p&gt;&quot;Sebastien Buisson &amp;lt;sbuisson@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45054&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45054&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14629&quot; title=&quot;Prevent file renaming from encrypted to unencrypted dir&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14629&quot;&gt;&lt;del&gt;LU-14629&lt;/del&gt;&lt;/a&gt; sec: do not block rename of topmost encrypted dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 51cb9e840b650f5ac9655a09bd9f811da06b31e8&lt;/p&gt;</comment>
                            <comment id="314511" author="gerrit" created="Fri, 1 Oct 2021 15:10:23 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45054/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45054/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14629&quot; title=&quot;Prevent file renaming from encrypted to unencrypted dir&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14629&quot;&gt;&lt;del&gt;LU-14629&lt;/del&gt;&lt;/a&gt; sec: do not block rename of topmost encrypted dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3db8e31797535570e5f2e99f6c8471b49d395efe&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i01sqf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>