mailing list of musl libc
 help / color / mirror / code / Atom feed
40ee0ffb8935bda410b48e026b31af80fd65bd0e blob 1722 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
 
#ifndef _SYS_CAPABILITY_H
#define _SYS_CAPABILITY_H

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

#define _LINUX_CAPABILITY_VERSION_1  0x19980330
#define _LINUX_CAPABILITY_VERSION_2  0x20071026
#define _LINUX_CAPABILITY_VERSION_3  0x20080522

/* POSIX defined capabilities */
#define CAP_CHOWN				0
#define CAP_DAC_OVERRIDE		1
#define CAP_DAC_READ_SEARCH		2
#define CAP_FOWNER				3
#define CAP_FSETID				4
#define CAP_KILL				5
#define CAP_SETGID				6
#define CAP_SETUID				7

/* Linux specific */
#define CAP_SETPCAP				8
#define CAP_LINUX_IMMUTABLE		9
#define CAP_NET_BIND_SERVICE	10
#define CAP_NET_BROADCAST		11
#define CAP_NET_ADMIN			12
#define CAP_NET_RAW				13
#define CAP_IPC_LOCK			14
#define	CAP_IPC_OWNER			15
#define CAP_SYS_MODULE			16
#define	CAP_SYS_RAWIO			17
#define	CAP_SYS_CHROOT			18
#define	CAP_SYS_PTRACE			19
#define	CAP_SYS_PACCT			20
#define	CAP_SYS_ADMIN			21
#define	CAP_SYS_BOOT			22
#define	CAP_SYS_NICE			23
#define	CAP_SYS_RESOURCE		24
#define	CAP_SYS_TIME			25
#define	CAP_SYS_TTY_CONFIG		26
#define	CAP_MKNOD				27
#define	CAP_LEASE				28
#define	CAP_AUDIT_WRITE			29
#define	CAP_AUDIT_CONTROL		30
#define	CAP_SETFCAP				31
#define	CAP_MAC_OVERRIDE		32
#define	CAP_MAC_ADMIN			33

typedef struct _user_cap_header_struct * cap_user_header_t;
typedef struct _user_cap_data_struct * cap_user_data_t;

struct _user_cap_header_struct {
	uint32_t version;
	int pid;
};

struct _user_cap_data_struct {
	uint32_t effective;
	uint32_t permitted;
	uint32_t inheritable;
};


int capget(cap_user_header_t, cap_user_data_t);
int capset(cap_user_header_t, cap_user_data_t);

#ifdef __cplusplus
}
#endif

#endif
debug log:

solving 68bb4fc ...
found 68bb4fc in https://inbox.vuxu.org/musl/alpine.LRH.2.02.1208271348180.19990@s1.palsenberg.com/

applying [1/1] https://inbox.vuxu.org/musl/alpine.LRH.2.02.1208271348180.19990@s1.palsenberg.com/
diff --git a/include/sys/capability.h b/include/sys/capability.h\r
new file mode 100644\r
index 0000000..68bb4fc\r

1:7: trailing whitespace.
#ifndef _SYS_CAPABILITY_H\r
1:8: trailing whitespace.
#define _SYS_CAPABILITY_H\r
1:9: trailing whitespace.
\r
1:10: trailing whitespace.
#include <stdint.h>\r
1:11: trailing whitespace.
\r
Checking patch include/sys/capability.h...
Applied patch include/sys/capability.h cleanly.
warning: squelched 69 whitespace errors
warning: 74 lines add whitespace errors.

index at:
100644 40ee0ffb8935bda410b48e026b31af80fd65bd0e	include/sys/capability.h

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).