blob: bbd6db8357db106c7ea9d677f47f2672edf49234 (
plain)
1 dont need these compat hacks anymore
2
3 http://bugs.gentoo.org/265304
4
5 --- libcap/include/sys/capability.h
6 +++ libcap/include/sys/capability.h
7 @@ -22,18 +22,6 @@
8 #include <sys/types.h>
9 #include <stdint.h>
10
11 -/*
12 - * Make sure we can be included from userland by preventing
13 - * capability.h from including other kernel headers
14 - */
15 -#define _LINUX_TYPES_H
16 -#define _LINUX_FS_H
17 -#define __LINUX_COMPILER_H
18 -#define __user
19 -
20 -typedef unsigned int __u32;
21 -typedef __u32 __le32;
22 -
23 #include <linux/capability.h>
24
25 /*
26 --- libcap/include/linux/capability.h
27 +++ libcap/include/linux/capability.h
28 @@ -40,13 +40,13 @@
29 typedef struct __user_cap_header_struct {
30 __u32 version;
31 int pid;
32 -} __user *cap_user_header_t;
33 +} *cap_user_header_t;
34
35 typedef struct __user_cap_data_struct {
36 __u32 effective;
37 __u32 permitted;
38 __u32 inheritable;
39 -} __user *cap_user_data_t;
40 +} *cap_user_data_t;
41
42
43 #define XATTR_CAPS_SUFFIX "capability"
|