projects
/
gapil.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Riordinamento sezione e documentate le {{{ioctl}}} per UDP
[gapil.git]
/
listati
/
getcap.c
1
if (!pid) {
2
capab = cap_get_proc();
3
if (capab == NULL) {
4
perror("cannot get current process capabilities");
5
return 1;
6
}
7
} else {
8
capab = cap_init();
9
res = capgetp(pid, capab);
10
if (res) {
11
perror("cannot get process capabilities");
12
return 1;
13
}
14
}
15
16
string = cap_to_text(capab, NULL);
17
printf("Capability: %s\n", string);
18
19
cap_free(capab);
20
cap_free(string);
21
return 0;