I made patch file to solve below problem.
[inv...@fedora11 ~]$ rpm -qa | grep libcap
libcap-2.16-2.fc11.i586
libcap-devel-2.16-2.fc11.i586
[inv...@fedora11 ~]$



diff -urN 
./ltp-full-20090531/./testcases/kernel/security/cap_bound/cap_bounds_r.c
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/cap_bounds_r.c
--- ./ltp-full-20090531/./testcases/kernel/security/cap_bound/cap_bounds_r.c    
2009-04-28
16:04:39.000000000 +0900
+++ 
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/cap_bounds_r.c    
    2009-06-16
10:32:49.000000000 +0900
@@ -25,7 +25,8 @@
  */

 #include <errno.h>
-#include <sys/capability.h>
+//#include <sys/capability.h>
+#include <linux/capability.h>
 #include <sys/prctl.h>
 #include <test.h>

Binary files 
./ltp-full-20090531/./testcases/kernel/security/cap_bound/cap_bounds_rw
and ./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/cap_bounds_rw
differ
diff -urN 
./ltp-full-20090531/./testcases/kernel/security/cap_bound/cap_bounds_rw.c
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/cap_bounds_rw.c
--- ./ltp-full-20090531/./testcases/kernel/security/cap_bound/cap_bounds_rw.c   
2009-04-28
16:04:39.000000000 +0900
+++ 
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/cap_bounds_rw.c   
    2009-06-16
10:33:34.000000000 +0900
@@ -24,7 +24,8 @@
  */

 #include <errno.h>
-#include <sys/capability.h>
+//#include <sys/capability.h>
+#include <linux/capability.h>
 #include <sys/prctl.h>
 #include <test.h>

diff -urN 
./ltp-full-20090531/./testcases/kernel/security/cap_bound/cap_bset_inh_bounds.c
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/cap_bset_inh_bounds.c
--- 
./ltp-full-20090531/./testcases/kernel/security/cap_bound/cap_bset_inh_bounds.c 
    2009-04-28
16:04:41.000000000 +0900
+++ 
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/cap_bset_inh_bounds.c
 2009-06-16
10:34:09.000000000 +0900
@@ -27,7 +27,8 @@
  */

 #include <errno.h>
-#include <sys/capability.h>
+//#include <sys/capability.h>
+#include <linux/capability.h>
 #include <sys/prctl.h>
 #include <test.h>

diff -urN ./ltp-full-20090531/./testcases/kernel/security/cap_bound/check_pe.c
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/check_pe.c
--- ./ltp-full-20090531/./testcases/kernel/security/cap_bound/check_pe.c        
2009-04-28
16:04:41.000000000 +0900
+++ ./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/check_pe.c    
2009-06-16
10:47:58.000000000 +0900
@@ -28,7 +28,8 @@
  */

 #include <errno.h>
-#include <sys/capability.h>
+//#include <sys/capability.h>
+#include <linux/capability.h>
 #include <sys/prctl.h>
 #include <test.h>

Binary files ./ltp-full-20090531/./testcases/kernel/security/cap_bound/dummy
and ./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/dummy
differ
diff -urN ./ltp-full-20090531/./testcases/kernel/security/cap_bound/dummy.c
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/dummy.c
--- ./ltp-full-20090531/./testcases/kernel/security/cap_bound/dummy.c   
2009-04-28
16:04:43.000000000 +0900
+++ ./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/dummy.c       
2009-06-16
10:34:53.000000000 +0900
@@ -1,4 +1,5 @@
-#include <sys/capability.h>
+//#include <sys/capability.h>
+#include <linux/capability.h>

 int main()
 {
diff -urN 
./ltp-full-20090531/./testcases/kernel/security/cap_bound/exec_with_inh.c
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/exec_with_inh.c
--- ./ltp-full-20090531/./testcases/kernel/security/cap_bound/exec_with_inh.c   
2009-04-28
16:04:43.000000000 +0900
+++ 
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/exec_with_inh.c   
    2009-06-16
10:48:13.000000000 +0900
@@ -27,7 +27,8 @@
  */

 #include <errno.h>
-#include <sys/capability.h>
+//#include <sys/capability.h>
+#include <linux/capability.h>
 #include <sys/prctl.h>
 #include <test.h>

diff -urN 
./ltp-full-20090531/./testcases/kernel/security/cap_bound/exec_without_inh.c
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/exec_without_inh.c
--- 
./ltp-full-20090531/./testcases/kernel/security/cap_bound/exec_without_inh.c    
    2009-04-28
16:04:43.000000000 +0900
+++ 
./ltp-full-20090531.new/./testcases/kernel/security/cap_bound/exec_without_inh.c
    2009-06-16
10:47:38.000000000 +0900
@@ -27,7 +27,8 @@
  */

 #include <errno.h>
-#include <sys/capability.h>
+//#include <sys/capability.h>
+#include <linux/capability.h>
 #include <sys/prctl.h>
 #include <test.h>




On Tue, Jun 16, 2009 at 10:13 AM, GeunSik Lim<[email protected]> wrote:
> Dear Edjunior B. Machado
>
> This is just report mail about ltp-full-20090531 version.
>  I used http://downloads.sourceforge.net/ltp/ltp-full-20090531.tgz
> source on Core2 Quad Q6600 system.
>  But, I can not finished make command like belows.
>
>  * My system information:
>   . Fedora 11
>   . 2.6.29.4-167.fc11 linux kernel
>   . GCC 4.4.0
>
>  * This is screenshot.
> [inv...@f11 ltp-full-20090531]$
> [inv...@f11 ltp-full-20090531]$ pwd
> /opt/ltp-full-20090531
> [inv...@f11 ltp-full-20090531]$
> [inv...@f11 ltp-full-20090531]$
> [inv...@f11 ltp-full-20090531]$ uname -a
> Linux localhost.localdomain 2.6.29.4-167.fc11.i686.PAE #1 SMP Wed May
> 27 17:28:22 EDT 2009 i686 i686 i386 GNU/Linux
> [inv...@f11 ltp-full-20090531]$ gcc --version
> gcc (GCC) 4.4.0 20090506 (Red Hat 4.4.0-4)
> Copyright (C) 2009 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> [inv...@f11 ltp-full-20090531]$ time make
>           ................   윗부분 생략 .....................
> make[6]: Leaving directory
> `/opt/ltp-full-20090531/testcases/kernel/security/integrity/ima/policy'
> make[5]: Leaving directory
> `/opt/ltp-full-20090531/testcases/kernel/security/integrity/ima'
> make[4]: Leaving directory
> `/opt/ltp-full-20090531/testcases/kernel/security/integrity'
> make[4]: Entering directory
> `/opt/ltp-full-20090531/testcases/kernel/security/cap_bound'
> cc -Wall  -I../../../../include -Wall    cap_bounds_r.c
> -L../../../../lib -lltp -lcap -o cap_bounds_r
> In file included from cap_bounds_r.c:28:
> /usr/include/sys/capability.h:102: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'cap_size'
> /usr/include/sys/capability.h:103: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'cap_copy_ext'
> /usr/include/sys/capability.h:108: error: expected declaration
> specifiers or '...' before 'ssize_t'
> /usr/include/sys/capability.h:120: error: expected ')' before 'pid'
> /usr/include/sys/capability.h:123: error: expected ')' before 'pid'
> cap_bounds_r.c:38:2: warning: #warning CAP_BSET_READ not defined
> cap_bounds_r.c:43:2: warning: #warning CAP_BSET_DROP not defined
> make[4]: *** [cap_bounds_r] Error 1
> make[4]: Leaving directory
> `/opt/ltp-full-20090531/testcases/kernel/security/cap_bound'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/opt/ltp-full-20090531/testcases/kernel/security'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/opt/ltp-full-20090531/testcases/kernel'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/opt/ltp-full-20090531/testcases'
> make: *** [all] Error 2
>
> real    0m0.917s
> user    0m0.387s
> sys     0m0.372s
> [inv...@f11 ltp-full-20090531]$
> [inv...@f11 ltp-full-20090531]$
> [inv...@f11 ltp-full-20090531]$ rpm -qa | grep libcap
> libcaptury-devel-0.3.0-0.3.20080323gitcca4e3c.fc11.i586
> libcap-2.16-2.fc11.i586
> libcapseo-devel-0.3.0-0.2.20081031git431a293.fc11.i586
> libcaptury-0.3.0-0.3.20080323gitcca4e3c.fc11.i586
> libcapseo-tools-0.3.0-0.2.20081031git431a293.fc11.i586
> libcapseo-0.3.0-0.2.20081031git431a293.fc11.i586
> libcap-devel-2.16-2.fc11.i586
> [inv...@f11 ltp-full-20090531]$
>
>
>
> --
> Regards,
> GeunSik Lim ( Samsung Electronics )
> Blog : http://blog.naver.com/invain/
> e-Mail: [email protected]
>           [email protected] , [email protected]
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



-- 
Regards,
GeunSik Lim ( Samsung Electronics )
Blog : http://blog.naver.com/invain/
e-Mail: [email protected]
           [email protected] , [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to