From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NcM8L-00081z-E9 for ltp-list@lists.sourceforge.net; Tue, 02 Feb 2010 17:01:49 +0000 Received: from mail-px0-f200.google.com ([209.85.216.200]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NcM8K-0007Ou-CU for ltp-list@lists.sourceforge.net; Tue, 02 Feb 2010 17:01:49 +0000 Received: by pxi38 with SMTP id 38so264689pxi.28 for ; Tue, 02 Feb 2010 09:01:42 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1265128186.3114.7.camel@moss-pluto.epoch.ncsc.mil> References: <001201caa315$d351baf0$79f530d0$@co.jp> <364299f41002010044j269258fep9cfd31c8c0f897ac@mail.gmail.com> <1265034017.12435.7.camel@moss-pluto.epoch.ncsc.mil> <364299f41002011202o5771b118k917f899b44e36bec@mail.gmail.com> <1265057573.12435.301.camel@moss-pluto.epoch.ncsc.mil> <364299f41002011635m8985236k3b2e75c7278ae5e3@mail.gmail.com> <1265128186.3114.7.camel@moss-pluto.epoch.ncsc.mil> Date: Tue, 2 Feb 2010 09:01:42 -0800 Message-ID: <364299f41002020901obeb6462lf3b5741f327d419e@mail.gmail.com> From: Garrett Cooper Subject: Re: [LTP] 2010-02-01 cvs make problem List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ltp-list-bounces@lists.sourceforge.net To: Stephen Smalley Cc: LTP list , Mitani On Tue, Feb 2, 2010 at 8:29 AM, Stephen Smalley wrote: > On Mon, 2010-02-01 at 16:35 -0800, Garrett Cooper wrote: >> On Mon, Feb 1, 2010 at 12:52 PM, Stephen Smalley wro= te: >> > On Mon, 2010-02-01 at 12:02 -0800, Garrett Cooper wrote: >> >> On Mon, Feb 1, 2010 at 6:20 AM, Stephen Smalley w= rote: >> >> > On Mon, 2010-02-01 at 00:44 -0800, Garrett Cooper wrote: >> >> >> On Mon, Feb 1, 2010 at 12:09 AM, Mitani wrote: >> >> >> > Hi, >> >> >> > >> >> >> > I tried to build 2010-02-01 cvs in RHEL5.4 system. >> >> >> > (Archecture : x86 and x86_64) >> >> >> > >> >> >> > >> >> >> > "make" failed with following message: >> >> >> > ------------ >> >> >> > [...] >> >> >> > make[5]: Entering directory >> >> >> > `/home/LTP/ltp-2010-02-01/testcases/kernel/security/selinux-test= suite/refpol >> >> >> > icy' >> >> >> > (cd >> >> >> > "/home/LTP/ltp-2010-02-01/testcases/kernel/security/selinux-test= suite/refpol >> >> >> > icy/policy_files/generic" && cat test_global.te test_bounds.te >> >> > >> >> > Hmm...this indicates that your Makefile rewrite still isn't working >> >> > properly on RHEL5, where it is supposed to use the files under >> >> > refpolicy/policy_files/redhat-5 instead of generic. >> >> > >> >> >> > test_capable_file.te test_capable_net.te test_capable_sys.te >> >> >> > test_dyntrace.te test_dyntrans.te test_entrypoint.te test_execsh= are.te >> >> >> > test_exectrace.te test_execute_no_trans.te test_fdreceive.te tes= t_file.te >> >> >> > test_inherit.te test_ioctl.te test_ipc.te test_link.te test_mkdi= r.te >> >> >> > test_open.te test_ptrace.te test_readlink.te test_relabel.te tes= t_rename.te >> >> >> > test_rxdir.te test_setattr.te test_setnice.te test_sigkill.te te= st_stat.te >> >> >> > test_sysctl.te test_task_create.te test_task_getpgid.te >> >> >> > test_task_getsched.te test_task_getsid.te test_task_setpgid.te >> >> >> > test_task_setsched.te test_transition.te test_wait.te) > test_po= licy.te >> >> >> > cat: /selinux/mls: No such file or directory >> >> > >> >> > And this suggests that the tester does not have SELinux enabled in = his >> >> > kernel. =A0You shouldn't enable the SELinux testsuite unless SELinu= x is >> >> > enabled in the kernel. =A0You can test with something akin to: >> >> > if [ -x /usr/sbin/selinuxenabled ] && selinuxenabled; then >> >> > =A0 =A0 =A0 =A0 >> >> > fi >> >> > >> >> > >> >> >> > make[6]: Entering directory >> >> >> > `/home/LTP/ltp-2010-02-01/testcases/kernel/security/selinux-test= suite/refpol >> >> >> > icy' >> >> >> > Compiling targeted test_policy module >> >> >> > test_policy.te:129:ERROR 'syntax error' at token 'typebounds' on= line 93991: >> >> >> > # Definition of boundary relationship >> >> >> > typebounds test_bounds_parent_t test_bounds_child_t; >> >> >> > /usr/bin/checkmodule: =A0error(s) encountered while parsing conf= iguration >> >> >> > /usr/bin/checkmodule: =A0loading policy configuration from tmp/t= est_policy.tmp >> >> > >> >> > And apparently your Makefile logic to exclude test_bounds.te if >> >> > CHECKPOLICYVERS is not 24 isn't working either, although it wouldn'= t try >> >> > if it was using the right subdirectory. >> >> >> >> Mitani-san -- could you do the following please? >> >> >> >> 1. cat out your /etc/issue file. >> >> 2. Provide the output for $srcdir/scripts/detect_distro.sh >> > >> > Doesn't seem to be stripping the minor version. >> > $ ./scripts/detect_distro.sh >> > redhat-5.4 >> > $ ./scripts/detect_distro.sh =A0-m >> > redhat-5.4 >> >> Ok -- what's the input (/etc/issue)? > > Do you mean /etc/redhat-release? > Red Hat Enterprise Linux Client release 5.4 (Tikanga) Yes... thanks! > Maybe it would be more portable to use lsb_release(1) > > # lsb_release -i > Distributor ID: RedHatEnterpriseClient > # lsb_release -d > Description: =A0 =A0Red Hat Enterprise Linux Client release 5.4 (Tikanga) > # lsb_release -r > Release: =A0 =A0 =A0 =A05.4 Err... if this was a script and you could use it in cross-compilation scenarios, yes -- I would agree . Otherwise, it's pretty much useless. Thanks, -Garrett ---------------------------------------------------------------------------= --- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the busine= ss Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list