libcap: possibly fixed compilation with current headers
This commit is contained in:
parent
e4f7dd88df
commit
23c04b8d7a
@ -1,2 +1,3 @@
|
|||||||
|
172bd19f16c7f8f4ebf84a990376843e libcap-2.16-headers.patch
|
||||||
0d1cee9631768d29b43f450832668687 libcap-2.16-makefile.patch
|
0d1cee9631768d29b43f450832668687 libcap-2.16-makefile.patch
|
||||||
9e075fda242c4070ba76407064c13302 libcap-2.16.tar.gz
|
9e075fda242c4070ba76407064c13302 libcap-2.16.tar.gz
|
||||||
|
@ -5,14 +5,16 @@
|
|||||||
|
|
||||||
name=libcap
|
name=libcap
|
||||||
version=2.16
|
version=2.16
|
||||||
release=1
|
release=2
|
||||||
source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz
|
source=(ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/libcap-$version.tar.gz
|
||||||
$name-$version-makefile.patch)
|
$name-$version-makefile.patch
|
||||||
|
$name-$version-headers.patch)
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
cd libcap-$version
|
cd libcap-$version
|
||||||
|
|
||||||
patch -p0 -i $SRC/$name-$version-makefile.patch
|
patch -p0 -i $SRC/$name-$version-makefile.patch
|
||||||
|
patch -p1 -i $SRC/$name-$version-headers.patch
|
||||||
|
|
||||||
make
|
make
|
||||||
make \
|
make \
|
||||||
|
31
libcap/libcap-2.16-headers.patch
Normal file
31
libcap/libcap-2.16-headers.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
diff --git a/libcap/include/sys/capability.h b/libcap/include/sys/capability.h
|
||||||
|
index 4b1f7a3..d27017d 100644
|
||||||
|
--- a/libcap/include/sys/capability.h
|
||||||
|
+++ b/libcap/include/sys/capability.h
|
||||||
|
@@ -19,24 +19,12 @@ extern "C" {
|
||||||
|
* information for the user library.
|
||||||
|
*/
|
||||||
|
|
||||||
|
+/* Linux headers are now sanitized properly for userspace */
|
||||||
|
+#include <linux/capability.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
- * Make sure we can be included from userland by preventing
|
||||||
|
- * capability.h from including other kernel headers
|
||||||
|
- */
|
||||||
|
-#define _LINUX_TYPES_H
|
||||||
|
-#define _LINUX_FS_H
|
||||||
|
-#define __LINUX_COMPILER_H
|
||||||
|
-#define __user
|
||||||
|
-
|
||||||
|
-typedef unsigned int __u32;
|
||||||
|
-typedef __u32 __le32;
|
||||||
|
-
|
||||||
|
-#include <linux/capability.h>
|
||||||
|
-
|
||||||
|
-/*
|
||||||
|
* POSIX capability types
|
||||||
|
*/
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user