<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:45:07 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-4704] Permission checking is missing when setfacl</title>
                <link>https://jira.whamcloud.com/browse/LU-4704</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Setxattr does not check the permission when setting ACL xattrs. This&lt;br/&gt;
will cause security problem because any user can walk around permission&lt;br/&gt;
checking by changing ACL rules.&lt;/p&gt;

&lt;p&gt;Following script will reproduce this problem.&lt;br/&gt;
#!/bin/bash&lt;br/&gt;
DIR=/mnt/lustre/dir&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;we can got this from Lustre/test&lt;br/&gt;
RUNAS=./runas&lt;br/&gt;
rmdir $DIR &lt;br/&gt;
if [ -e $DIR ]; then&lt;br/&gt;
    echo &quot;Please remove $DIR&quot; &lt;br/&gt;
    exit 1&lt;br/&gt;
fi&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;mkdir $DIR&lt;br/&gt;
if [ ! -d $DIR ]; then&lt;br/&gt;
    echo &quot;Faled to mkdir $DIR&quot; &lt;br/&gt;
    exit 1&lt;br/&gt;
fi&lt;/p&gt;

&lt;p&gt;chmod 700 $DIR&lt;/p&gt;

&lt;p&gt;$RUNAS -u test ls $DIR&lt;br/&gt;
if [ $? -eq 0 ]; then&lt;br/&gt;
    echo &quot;Permission error&quot; &lt;br/&gt;
    exit 1&lt;br/&gt;
fi&lt;/p&gt;

&lt;p&gt;$RUNAS -u test setfacl -m u:test:rwx $DIR&lt;br/&gt;
if [ $? -ne 0 ]; then&lt;br/&gt;
    echo &quot;Probelm not reproduced because setfacl failed&quot; &lt;br/&gt;
    exit 1&lt;br/&gt;
fi&lt;/p&gt;

&lt;p&gt;echo &quot;Probelm reproduced!!&quot; &lt;/p&gt;

&lt;p&gt;$RUNAS -u test ls $DIR&lt;br/&gt;
if [ $? -ne 0 ]; then&lt;br/&gt;
    echo &quot;ACL does not work!&quot; &lt;br/&gt;
    exit 1&lt;br/&gt;
fi&lt;/p&gt;

&lt;p&gt;echo &quot;Security problem!!&quot; &lt;/p&gt;</description>
                <environment></environment>
        <key id="23449">LU-4704</key>
            <summary>Permission checking is missing when setfacl</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="3">Duplicate</resolution>
                                        <assignee username="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="lixi">Li Xi</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 4 Mar 2014 08:54:22 +0000</created>
                <updated>Fri, 30 May 2014 14:52:53 +0000</updated>
                            <resolved>Wed, 5 Mar 2014 18:33:45 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                    <fixVersion>Lustre 2.4.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>13</watches>
                                                                            <comments>
                            <comment id="78320" author="lixi" created="Tue, 4 Mar 2014 08:58:06 +0000"  >&lt;p&gt;Please check this patch.&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/9473/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9473/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(This one is for ll_setxattr_common().)&lt;/p&gt;</comment>
                            <comment id="78372" author="pjones" created="Tue, 4 Mar 2014 18:52:25 +0000"  >&lt;p&gt;Emoly&lt;/p&gt;

&lt;p&gt;Could you please look after this patch?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="78485" author="adilger" created="Wed, 5 Mar 2014 17:01:17 +0000"  >&lt;p&gt;Emoly, I also see that acl/974.test and acl/2561.test are not included in the lustre/tests/Makefile.am nobase_noinst_DATA list, and those tests are being skipped. Could you please make a separate patch to add them to the list so they are in the RPM, and fix the test to fail if the test scripts are missing. &lt;/p&gt;</comment>
                            <comment id="78536" author="bogl" created="Wed, 5 Mar 2014 21:22:35 +0000"  >&lt;p&gt;backport to b2_5:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/9514&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9514&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="78664" author="emoly.liu" created="Fri, 7 Mar 2014 02:58:58 +0000"  >&lt;p&gt;The patch to enable acl/974.test and acl/2561.test is here: &lt;a href=&quot;http://review.whamcloud.com/9541&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9541&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="78776" author="bogl" created="Fri, 7 Mar 2014 23:23:14 +0000"  >&lt;p&gt;backport to b2_4:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/9559&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9559&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="85253" author="utopiabound" created="Fri, 30 May 2014 14:52:53 +0000"  >&lt;p&gt;backport sanity/103 (&lt;a href=&quot;http://review.whamcloud.com/9541&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/9541&lt;/a&gt;) tests to b2_5:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/10512&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10512&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="23448">LU-4703</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="23448">LU-4703</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hzwgon:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>12939</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>