I solved this as setcap was in /sbin. While it compiled fine then. But is not running after installing:
$ ./runltp -f filecaps <<<test_start>>> tag=Filecaps stime=1225705967 cmdline="filecapstest.sh" contacts="" analysis=exit initiation_status="ok" <<<test_output>>> incrementing stop Filecaps 0 CONF : System doesn't support execution of the test setcap not installed. Please install libcap-2.11 or newer from ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2 <<<execution_status>>> $ which setcap /sbin/setcap $ echo $LD_LIBRARY_PATH :/lib:/usr/lib:/usr/local/lib $ ls -l /lib/libcap.* -rw-r--r-- 1 root root 62678 Nov 3 14:34 /lib/libcap.a lrwxrwxrwx 1 root root 16 Nov 3 15:12 /lib/libcap.so -> /lib/libcap.so.2 lrwxrwxrwx 1 root root 14 Sep 5 2007 /lib/libcap.so.1 -> libcap.so.1.10 -rwxr-xr-x 1 root root 11560 Nov 14 2006 /lib/libcap.so.1.10 lrwxrwxrwx 1 root root 19 Nov 3 15:11 /lib/libcap.so.2 -> /lib/libcap.so.2.11 -rw-r--r-- 1 root root 43545 Nov 3 14:34 /lib/libcap.so.2.11 Regards-- Subrata On Mon, 2008-11-03 at 14:43 +0530, Subrata Modak wrote: > Hi Serge, > > I was trying to compile the filecaps tests from: > ltp-full-20081031/testcases/kernel/security/filecaps, but go the > following message: > > $ make > which: no setcap in > (/usr/kerberos/sbin:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/ibm/c4eb/bin:/home/subratamodak/SOFTWARE_DOWNLOADS/ABAT_CLIENT/:/home/subratamodak/bin:/home/subratamodak/bin:/usr/kerberos/bin) > setcap or xattr headers not installed. Please install libcap from > ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2. > You must use libcap-2.11 or newer. > Then make clean in ltp or ltp/testcases/kernel/security/filecaps, and > recompile ltp. > > I installed libcap-2.11 from: > ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2. > > # find /lib -name libcap* > /lib/libcap.so.2.11 > /lib/libcap.so.1.10 > /lib/libcap.a > /lib/libcap.so.2 > /lib/libcap.so > /lib/libcap.so.1 > > I thought there might be a problem even after /sbin/ldconfig is run. So, > i exported the LD_LIBRARY_PATH variable as: > > $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/usr/lib:/usr/local/lib/ > $ echo $LD_LIBRARY_PATH > :/lib/:/lib:/usr/lib:/usr/local/lib/ > > And still it is not building: > # make > which: no setcap in > (/usr/kerberos/sbin:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/ibm/c4eb/bin:/home/subratamodak/SOFTWARE_DOWNLOADS/ABAT_CLIENT/:/home/subratamodak/bin:/home/subratamodak/bin:/usr/kerberos/bin) > setcap or xattr headers not installed. Please install libcap from > ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2. > You must use libcap-2.11 or newer. > Then make clean in ltp or ltp/testcases/kernel/security/filecaps, and > recompile ltp. > > > Is there something else i am missing ? Do i need to build my kernel with > specific options, as well as enable some variables in the running kernel > to enable build/install/run of these tests ? > > Regards-- > Subrata > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Ltp-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
