Bug 798

Summary: [feature request] nsc compatibility with selinux
Product: nsc Reporter: Craig Dowell <craigdo>
Component: LinuxAssignee: ns-bugs <ns-bugs>
Status: PATCH WANTED ---    
Severity: normal CC: malongquan, sam.jansen, tomh
Priority: P5    
Version: unspecified   
Hardware: All   
OS: Linux   

Description Craig Dowell 2010-01-25 16:25:27 EST
liblinux2.6.26.so: cannot enable executable stack as shared object requires: Permission denied

This is another variation on an old selinux issue.  The NSC liblinux libraries are requesting an executable stack.  See this with:

nsnam@ns-fedora-core-12> execstack -q ./nsc/linux-2.6.18/liblinux2.6.18.so
X ./nsc/linux-2.6.18/liblinux2.6.18.so

Workaround:  Turn this off and verify with:

nsnam@ns-fedora-core-12> execstack -c ./nsc/linux-2.6.18/liblinux2.6.18.so
nsnam@ns-fedora-core-12< execstack -q ./nsc/linux-2.6.18/liblinux2.6.18.so
- ./nsc/linux-2.6.18/liblinux2.6.18.so

Do the same for liblinux-2.6.26 or any other libs you are interested in.

now test.py works.

Submitting as P1 blocker to get noticed.  Will downgrade since there's a workaround.
Comment 1 Craig Dowell 2010-01-25 16:27:33 EST
Downgrading since workaround exists (see above).  Importance per wiki suggestions.
Comment 2 Craig Dowell 2010-01-25 16:36:14 EST
Added note in wiki "troubleshooting" page.  See:

http://www.nsnam.org/wiki/index.php/Troubleshooting#SELinux_.28First_reported_on_Fedora_Core_12.29
Comment 3 longquan ma 2010-05-14 01:00:32 EDT
I encounter the similar problem
when i run ./test.py , i got the result:
    127 of 130 tests passed (127 passed, 0 skipped, 0 failed, 3 crashed, 0 valgrind errors)

And the crash items are as follows:
  CRASH: TestSuite nsc-tcp-loss
  CRASH: TestSuite ns3-tcp-cwnd
  CRASH: TestSuite ns3-tcp-interoperability

my OS is Linux version 2.6.31.5-127.fc12.i686.PAE
my ns version is ns-allinone-3.8
Comment 4 Tom Henderson 2012-03-27 14:00:04 EDT
reassigning to ns-bugs since it is not clear anyone plans to work on this