Skip to contentSkip to conversation

quantum capabilities

DISCUSSION Lukasz Stelmach 2 participants 3 messages Apr 19, 2006 – Apr 23, 2006

lore
Share & tools
lore
#0 lore raw

Greetings All.

I've found a strange phenomenon associated with capabilities. It seems to be a quantum like.

when I run (as root)

delfin:~# /usr/sbin/execcap '= cap_net_raw=ep' /bin/sh -c 'getpcaps $$'
Capabilities for `2438': =ep cap_setpcap-ep

I don't know what really happens to those capablities I zero. And I can't really figure out for when I try the wavefunction collapses

delfin:~# strace -o /dev/null /usr/sbin/execcap '= cap_net_raw=ep' /bin/sh -c \
'getpcaps $$'
Capabilities for `2461': = cap_net_raw+ep

Strange isn't it? Does it mean that processes can't really drop their privileges?

please CC.

Signature · 1 line
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
Quoted 1 line

Łukasz< Już nie katolicka lecz złodziejska. (c)PP

#1 lore raw
Quoted 10 lines · Lukasz Stelmach

Greetings All.

I've found a strange phenomenon associated with capabilities. It seems to be a quantum like.

when I run (as root)

delfin:~# /usr/sbin/execcap '= cap_net_raw=ep' /bin/sh -c 'getpcaps $$'
Capabilities for `2438': =ep cap_setpcap-ep
Quoted 8 lines

I don't know what really happens to those capablities I zero. And I can't really figure out for when I try the wavefunction collapses

delfin:~# strace -o /dev/null /usr/sbin/execcap '= cap_net_raw=ep' /bin/sh -c \
'getpcaps $$'
Capabilities for `2461': = cap_net_raw+ep

Strange isn't it? Does it mean that processes can't really drop their privileges?

Is execcap setuid? strace does not work over setuid...

Pavel

Signature · 1 line
Thanks, Sharp!
#2 lore raw
Quoted 14 lines · Pavel Machek
Quoted 13 lines · Lukasz Stelmach

Greetings All.

I've found a strange phenomenon associated with capabilities. It seems to be a quantum like.

when I run (as root)

delfin:~# /usr/sbin/execcap '= cap_net_raw=ep' /bin/sh -c 'getpcaps $$'
Capabilities for `2438': =ep cap_setpcap-ep

I don't know what really happens to those capablities I zero. And I can't really figure out for when I try the wavefunction collapses

Quoted 7 lines
Quoted 5 lines
delfin:~# strace -o /dev/null /usr/sbin/execcap '= cap_net_raw=ep' /bin/sh -c \
'getpcaps $$'
Capabilities for `2461': = cap_net_raw+ep

Strange isn't it? Does it mean that processes can't really drop their privileges?

Is execcap setuid? strace does not work over setuid...

No it's not. And even if it was it sholudn't make any difference when I run execcap logged in as root.

Signature · 1 line
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
Quoted 1 line

Łukasz< Już nie katolicka lecz złodziejska. (c)PP