1 #include <errno.h> 2 3 extern int capget(int *, int *); 4 extern int capset(int *, const int *); 5 6 int main(void)7main(void) 8 { 9 int unused[6]; 10 const int data[] = { 2, 4, 0, 8, 16, 0 }; 11 const int v3 = 0x20080522; 12 int head[] = { v3, 0 }; 13 14 if (capget(head, unused) || head[0] != v3 || 15 capset(head, data) == 0 || errno != EPERM) 16 return 77; 17 18 return 0; 19 } 20