1 |
On Sat, Dec 17, 2016 at 3:22 PM, Ian Zimmerman <itz@×××××××.net> wrote: |
2 |
> On a detour from the setuid X problem, I wanted to play with Linux |
3 |
> capabilities. But the simplest possible example from libcap README |
4 |
> fails: |
5 |
> |
6 |
> root@matica ~ # getcap /bin/ping |
7 |
> Failed to get capabilities of file `/bin/ping' (Operation not supported) |
8 |
> root@matica ~ # |
9 |
> |
10 |
> Any idea what could be wrong? It looks like the kernel code is always |
11 |
> built in nowadays - there is no kernel build option or loadable module |
12 |
> that I might have forgotten. |
13 |
|
14 |
Google suggests that it might be an issue with filesystem xattrs. |
15 |
Does your filesystem support these? There are a few ways of setting |
16 |
process capabilities, but the one getcap is looking at requires |
17 |
setting xattrs on the binary so that linux will drop caps when it |
18 |
exec's it. |
19 |
|
20 |
-- |
21 |
Rich |