Skip to contentSkip to conversation

compilation error @ selinux tests

LTP Subrata Modak 2 participants 2 messages Jan 2, 2008 – Jan 3, 2008 4 messages not in the archive SELinux security module

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Well, just few minutes back, i have updated selinux by one patch submitted by Sergei. Just check whether that patch solves your problem.

--Subrata

Quoted 59 lines · naveen penumala

subrata,

i tried with the latest version of LTP, even though i'm getting same problem for selinux tests.
lemme knw one thing, is their any package we need to install for chcon. cause "chcon" executable in not creating in /bin directory at testcases. here we are using SuSE linux.

-Naveen

On Jan 2, 2008 3:57 PM, Subrata Modak <[email protected]> wrote:

        On Wed, 2008-01-02 at 15:53 +0530, naveen penumala wrote:
        > Hi,
        >
        > When i tried to compile the selinux-testsuite i faced the
        following
        > problem.
        >
        >
        ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests # 
        > make
        >
        
        
        I would say that you are using an unstable se-linux in LTP. We
        have
        ported some stable patches already which is available on
        ltp-full-20071231 and not in ltp-full-20071130. Please use the
        latest 
        one to work.
        
        --Subrata
        
        > make[1]: Leaving directory
        >
        `/home/penuman/New_tests/ltp/ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests/ domain_trans'
        > /bin/sh: chcon: command not found 
        > make: *** [all] Error 127
        >
        >
        >
        ltp-full-20071130/testcases/kernel/security/selinux-testsuite/tests/domain_trans # vi Makefile
        >
        > ln -f selinux_domain_trans.sh ../../../../../bin/
        >
        > but i didn't find the "chcon" executable in the bin
        > (/ltp-full-20071130/testcases/bin) directory.
        >
        > how chcon executable will create.
        >
        > and I'm using SuSE Linux. 
        >
        >
        > Thanks,
        > Naveen P
        >
        >
Quoted 10 lines
        >
        -------------------------------------------------------------------------
        > This SF.net email is sponsored by: Microsoft
        > Defy all challenges. Microsoft(R) Visual Studio 2005. 
        > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
        > _______________________________________________ Ltp-list
        mailing list [email protected]
        https://lists.sourceforge.net/lists/listinfo/ltp-list

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 19 lines · naveen penumala

please check...

when im building the selinx-tests using "make" command i'm getting following error

these are the files presented in selinux-testsuite. /home/penuman/LTP/ltp-full-20071231/testcases/kernel/security/selinux-testsuite

# ls
ChangeLog  Makefile  /policy  README  /refpolicy  /tests

this is the error i'm getting when building the tests.

/home/penuman/LTP/ltp-full-20071231/testcases/kernel/security/selinux-testsuite

# make
make[1]: Entering directory
`/home/penuman/LTP/ltp-full-20071231/testcases/kernel/security/selinux-testsuite/tests'
make[2]: Entering directory
`/home/penuman/LTP/ltp-full-20071231/testcases/kernel/security/selinux-testsuite/tests/domain_trans'
Quoted 4 lines

make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/penuman/LTP/ltp-full-20071231/testcases/kernel/security/selinux-testsuite/tests/domain_trans' /bin/sh: chcon: command not found

I assume this is the problem. You need chcon.

Quoted 9 lines

make[1]: *** [all] Error 127
make[1]: Leaving directory `/home/penuman/LTP/ltp-full-20071231/testcases/kernel/security/selinux-testsuite/tests'

make: *** [all] Error 2

i had seen the patch file presented by Sergei, but i didnt find misc/check_sbin_deprecated.pl
in selinux tests directory.

It's under misc/. It gets called from ltp/testscripts/test_selinux.sh to tweak the policy. But I don't think it's related to your problem. You just need to install chcon, and I'm not the best way to do that under SuSE.

Quoted 5 lines

i'm sorry if my view is wrong.

* I'm using SuSE linux.*

- Naveen P

thanks,
-serge

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.