Bug 798 - [feature request] nsc compatibility with selinux
[feature request] nsc compatibility with selinux
Product: nsc
Classification: Unclassified
Component: Linux
All Linux
: P5 normal
Assigned To: ns-bugs
Depends on:
  Show dependency treegraph
Reported: 2010-01-25 16:25 EST by Craig Dowell
Modified: 2012-03-27 14:19 EDT (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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:

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
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