#10 selinux-testsuite not compiled in ltp-full-20050907

Other
closed-wont-fix
Testcases (27)
5
2005-09-28
2005-09-28
Anonymous
No

selinux-testsuite not getting compiled in release
ltp-full-20050907 giving the following error.

"make[2]: Entering directory
`/opt/ltp-full-20050907/testcases/kernel/security/selinux-testsuite/tests/dyntrace'
cc selinux_dyntrace_child.c -lselinux -o
selinux_dyntrace_child
/tmp/ccuk1YF2.o(.text+0x64): In function `main':
: undefined reference to `setcon'
collect2: ld returned 1 exit status
make[2]: *** [selinux_dyntrace_child] Error 1
make[2]: Leaving directory
`/opt/ltp-full-20050907/testcases/kernel/security/selinux-testsuite/tests/dyntrace'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/opt/ltp-full-20050907/testcases/kernel/security/selinux-testsuite/tests'
make: *** [all] Error 2
"

Installed selinux packages are ....
#rpm -qa "*selinux*"
selinux-doc-1.14.1-1
libselinux-1.19.1-7
selinux-policy-targeted-1.17.30-2.110
libselinux-devel-1.19.1-7
selinux-policy-targeted-sources-1.17.30-2.110

#uname -a
Linux hostname 2.6.9-22.EL #1 SMP Mon Sep 19 17:50:42
EDT 2005 s390 s390 s390 GNU/Linux

Discussion

    • assigned_to: nobody --> mridge
     
  • Logged In: YES
    user_id=206505

    The selinux suite will not compile unless selinux is turned on
    in the kernel and specific setup and packages are installed.
    This is not a bug.

     
    • status: open --> open-wont-fix
     
    • status: open-wont-fix --> closed-wont-fix
     
  • Logged In: NO

    But the SELinux is enabled in this machine.

    #/usr/sbin/sestatus -v
    SELinux status: enabled
    SELinuxfs mount: /selinux
    Current mode: enforcing
    Mode from config file: enforcing
    Policy version: 18
    Policy from config file:targeted

    Is I missed any packages.

     
  • Logged In: NO

    When i checked this link
    http://copilotconsulting.com/mail-archives/selinux.2005/msg00916.html

    In this it's clearly mentioned that kernel 2.6.11 and above
    are suitable to use setcon. But i am using 2.6.9. So is this
    the problem or some thing other. Please help me in resolving
    this.

    Thanks in Advance.