<!-- 
RSS generated by JIRA (9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1) at Sat Feb 10 06:06:55 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>Akraino JIRA</title>
    <link>https://jira.akraino.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.5</version>
        <build-number>940005</build-number>
        <build-date>11-04-2023</build-date>
    </build-info>


<item>
            <title>[VAL-50] Investigate Running LTP tests for the OS Layer as a Non-Root user</title>
                <link>https://jira.akraino.org/browse/VAL-50</link>
                <project id="10308" key="VAL">Validation</project>
                    <description>&lt;p&gt;LTP tests need root access to run; options are either sudo or create a group with privileges as opposed to using root password.&lt;/p&gt;

&lt;p&gt;We need to investigate if LTP can be run without root access.&lt;/p&gt;</description>
                <environment></environment>
        <key id="10731">VAL-50</key>
            <summary>Investigate Running LTP tests for the OS Layer as a Non-Root user</summary>
                <type id="10005" iconUrl="https://jira.akraino.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="2" iconUrl="https://jira.akraino.org/images/icons/priorities/high.svg">High</priority>
                        <status id="10001" iconUrl="https://jira.akraino.org/" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="IoakeimSamaras">Ioakeim Samaras</assignee>
                                    <reporter username="dd7022">Deepak Kataria</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Sep 2019 16:49:06 +0000</created>
                <updated>Wed, 9 Oct 2019 15:58:00 +0000</updated>
                            <resolved>Wed, 9 Oct 2019 15:58:00 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="10632" author="ioakeimsamaras" created="Tue, 8 Oct 2019 08:31:35 +0000"  >&lt;p&gt;There are three options:&lt;/p&gt;

&lt;p&gt;1) Give CRUD permissions to the testing user on /opt/ltp directory. This can be achieved by enabling permissions on &apos;others&apos;. Also, the bash shell must be supplied with the appropriate capabilities by using the &apos;setcap&apos; command in order to execute the &apos;runltp&apos; script. However, this option is complicated and requires many modifications on the tested host environment. Also, it is very dangerous to give full capabilities to bash shell.&lt;/p&gt;

&lt;p&gt;2) Use the &apos;chroot&apos; command in order to create a mock root directory where the testing user can perform any action.&#160;However, this option is complicated and requires many modifications on the tested host environment.&lt;/p&gt;

&lt;p&gt;3) Enable the testing user to run only the &apos;/opt/ltp/runltp&apos; script as a sudoer with no password. This can be achieved by adding the following line in the &apos;/etc/sudoers&apos; file:&lt;/p&gt;

&lt;p&gt;testing_user ALL= NOPASSWD: /opt/ltp/runltp&lt;/p&gt;

&lt;p&gt;Then, the testing user can execute the command &apos;sudo /opt/ltp/runltp&apos;. No password is needed.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;As far as the execution of LTP tests in the CoreOS is concerned, this is not feasible.&#160;CoreOS is designed to be bare-bones and thus contain just enough functionality to provide a clustering infrastructure, and nothing more. There&apos;s no package manager and so the installation of LTP prerequisites is not feasible.&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10105" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0023g:</customfieldvalue>

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