~xnox/ubuntu/trusty/gcc-arm-linux-androideabi/dima

« back to all changes in this revision

Viewing changes to android/bionic/libc/kernel/common/linux/capability.h

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2013-07-05 10:12:24 UTC
  • Revision ID: package-import@ubuntu.com-20130705101224-6qo3e8jbz8p31aa1
Tags: upstream-0.20130705.1
ImportĀ upstreamĀ versionĀ 0.20130705.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
 ****************************************************************************
 
3
 ***
 
4
 ***   This header was automatically generated from a Linux kernel header
 
5
 ***   of the same name, to make information necessary for userspace to
 
6
 ***   call into the kernel available to libc.  It contains only constants,
 
7
 ***   structures, and macros generated from the original header, and thus,
 
8
 ***   contains no copyrightable information.
 
9
 ***
 
10
 ***   To edit the content of this header, modify the corresponding
 
11
 ***   source file (e.g. under external/kernel-headers/original/) then
 
12
 ***   run bionic/libc/kernel/tools/update_all.py
 
13
 ***
 
14
 ***   Any manual change here will be lost the next time this script will
 
15
 ***   be run. You've been warned!
 
16
 ***
 
17
 ****************************************************************************
 
18
 ****************************************************************************/
 
19
#ifndef _LINUX_CAPABILITY_H
 
20
#define _LINUX_CAPABILITY_H
 
21
#include <linux/types.h>
 
22
struct task_struct;
 
23
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
24
#define _LINUX_CAPABILITY_VERSION_1 0x19980330
 
25
#define _LINUX_CAPABILITY_U32S_1 1
 
26
#define _LINUX_CAPABILITY_VERSION_2 0x20071026  
 
27
#define _LINUX_CAPABILITY_U32S_2 2
 
28
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
29
#define _LINUX_CAPABILITY_VERSION_3 0x20080522
 
30
#define _LINUX_CAPABILITY_U32S_3 2
 
31
typedef struct __user_cap_header_struct {
 
32
 __u32 version;
 
33
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
34
 int pid;
 
35
} __user *cap_user_header_t;
 
36
typedef struct __user_cap_data_struct {
 
37
 __u32 effective;
 
38
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
39
 __u32 permitted;
 
40
 __u32 inheritable;
 
41
} __user *cap_user_data_t;
 
42
#define VFS_CAP_REVISION_MASK 0xFF000000
 
43
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
44
#define VFS_CAP_REVISION_SHIFT 24
 
45
#define VFS_CAP_FLAGS_MASK ~VFS_CAP_REVISION_MASK
 
46
#define VFS_CAP_FLAGS_EFFECTIVE 0x000001
 
47
#define VFS_CAP_REVISION_1 0x01000000
 
48
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
49
#define VFS_CAP_U32_1 1
 
50
#define XATTR_CAPS_SZ_1 (sizeof(__le32)*(1 + 2*VFS_CAP_U32_1))
 
51
#define VFS_CAP_REVISION_2 0x02000000
 
52
#define VFS_CAP_U32_2 2
 
53
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
54
#define XATTR_CAPS_SZ_2 (sizeof(__le32)*(1 + 2*VFS_CAP_U32_2))
 
55
#define XATTR_CAPS_SZ XATTR_CAPS_SZ_2
 
56
#define VFS_CAP_U32 VFS_CAP_U32_2
 
57
#define VFS_CAP_REVISION VFS_CAP_REVISION_2
 
58
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
59
struct vfs_cap_data {
 
60
 __le32 magic_etc;
 
61
 struct {
 
62
 __le32 permitted;
 
63
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
64
 __le32 inheritable;
 
65
 } data[VFS_CAP_U32];
 
66
};
 
67
#define _LINUX_CAPABILITY_VERSION _LINUX_CAPABILITY_VERSION_1
 
68
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
69
#define _LINUX_CAPABILITY_U32S _LINUX_CAPABILITY_U32S_1
 
70
#define CAP_CHOWN 0
 
71
#define CAP_DAC_OVERRIDE 1
 
72
#define CAP_DAC_READ_SEARCH 2
 
73
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
74
#define CAP_FOWNER 3
 
75
#define CAP_FSETID 4
 
76
#define CAP_KILL 5
 
77
#define CAP_SETGID 6
 
78
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
79
#define CAP_SETUID 7
 
80
#define CAP_SETPCAP 8
 
81
#define CAP_LINUX_IMMUTABLE 9
 
82
#define CAP_NET_BIND_SERVICE 10
 
83
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
84
#define CAP_NET_BROADCAST 11
 
85
#define CAP_NET_ADMIN 12
 
86
#define CAP_NET_RAW 13
 
87
#define CAP_IPC_LOCK 14
 
88
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
89
#define CAP_IPC_OWNER 15
 
90
#define CAP_SYS_MODULE 16
 
91
#define CAP_SYS_RAWIO 17
 
92
#define CAP_SYS_CHROOT 18
 
93
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
94
#define CAP_SYS_PTRACE 19
 
95
#define CAP_SYS_PACCT 20
 
96
#define CAP_SYS_ADMIN 21
 
97
#define CAP_SYS_BOOT 22
 
98
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
99
#define CAP_SYS_NICE 23
 
100
#define CAP_SYS_RESOURCE 24
 
101
#define CAP_SYS_TIME 25
 
102
#define CAP_SYS_TTY_CONFIG 26
 
103
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
104
#define CAP_MKNOD 27
 
105
#define CAP_LEASE 28
 
106
#define CAP_AUDIT_WRITE 29
 
107
#define CAP_AUDIT_CONTROL 30
 
108
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
109
#define CAP_SETFCAP 31
 
110
#define CAP_MAC_OVERRIDE 32
 
111
#define CAP_MAC_ADMIN 33
 
112
#define CAP_SYSLOG 34
 
113
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
114
#define CAP_WAKE_ALARM 35
 
115
#define CAP_LAST_CAP CAP_WAKE_ALARM
 
116
#define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP)
 
117
#define CAP_TO_INDEX(x) ((x) >> 5)  
 
118
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
 
119
#define CAP_TO_MASK(x) (1 << ((x) & 31))  
 
120
#endif