[LU-8524] sanity-selinux: FAIL: Accepting only targeted policy Created: 23/Aug/16  Updated: 08/Oct/16  Resolved: 10/Sep/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.9.0

Type: Bug Priority: Minor
Reporter: Maloo Assignee: Saurabh Tandan (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

This issue was created by maloo for Saurabh Tandan <saurabh.tandan@intel.com>

Please provide additional information about the failure here.

This issue relates to the following test suite run: https://testing.hpdd.intel.com/test_sets/90e24eb4-68ca-11e6-b2e2-5254006e85c2.
suite_log:

-----============= acceptance-small: sanity-selinux ============----- Mon Aug 22 17:43:01 PDT 2016
Running: bash /usr/lib64/lustre/tests/sanity-selinux.sh
Checking SELinux environment...  sanity-selinux : @@@@@@ FAIL: Accepting only targeted policy 


 Comments   
Comment by Saurabh Tandan (Inactive) [ 23/Aug/16 ]
local selinux_policy=$(sestatus |
                               awk -F':' '$1 == "Loaded policy name" {print $2}' |
                               xargs)
        if [ -z "$selinux_policy" ]; then
            selinux_policy=$(sestatus |
                             awk -F':' '$1 == "Policy from config file"
                                     {print $2}' |
                             xargs)
        fi

Above piece of code in sanity-selinux.sh needs to restructured. It is passing incorrect value to variable "selinux_policy" .

Comment by Saurabh Tandan (Inactive) [ 23/Aug/16 ]

Results with modified command structuring: https://testing.hpdd.intel.com/test_sessions/7fa007e4-68cb-11e6-b2e2-5254006e85c2

Comment by Gerrit Updater [ 23/Aug/16 ]

Saurabh Tandan (saurabh.tandan@intel.com) uploaded a new patch: http://review.whamcloud.com/22070
Subject: LU-8524 tests: Awk command re-structured to pass correct value
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d8ed80c10e2c53076d36c37503e5e03dc43e5200

Comment by Gerrit Updater [ 10/Sep/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/22070/
Subject: LU-8524 tests: Awk command re-structured to pass correct value
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 80ff1dddde31d65f6d33333ad748fa694ead7e3c

Comment by Peter Jones [ 10/Sep/16 ]

Landed for 2.9

Generated at Sat Feb 10 02:18:19 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.