All of lore.kernel.org
 help / color / mirror / Atom feed
* quantum capabilities
@ 2006-04-19 15:01 Lukasz Stelmach
  2006-04-20 21:18 ` Pavel Machek
  0 siblings, 1 reply; 3+ messages in thread
From: Lukasz Stelmach @ 2006-04-19 15:01 UTC (permalink / raw)
  To: linux-kernel; +Cc: Łukasz Stelmach

[-- Attachment #1: Type: text/plain, Size: 795 bytes --]

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.
-- 
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
>Łukasz<                      Już nie katolicka lecz złodziejska.  (c)PP


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: quantum capabilities
  2006-04-19 15:01 quantum capabilities Lukasz Stelmach
@ 2006-04-20 21:18 ` Pavel Machek
  2006-04-23  9:41   ` Lukasz Stelmach
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2006-04-20 21:18 UTC (permalink / raw)
  To: Lukasz Stelmach; +Cc: linux-kernel

On Wed 19-04-06 17:01:53, Lukasz Stelmach wrote:
> 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?

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


						Pavel

-- 
Thanks, Sharp!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: quantum capabilities
  2006-04-20 21:18 ` Pavel Machek
@ 2006-04-23  9:41   ` Lukasz Stelmach
  0 siblings, 0 replies; 3+ messages in thread
From: Lukasz Stelmach @ 2006-04-23  9:41 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

Pavel Machek wrote:
> On Wed 19-04-06 17:01:53, Lukasz Stelmach wrote:
>> 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?
> 
> 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.

-- 
Było mi bardzo miło.                    Czwarta pospolita klęska, [...]
>Łukasz<                      Już nie katolicka lecz złodziejska.  (c)PP


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-23  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 15:01 quantum capabilities Lukasz Stelmach
2006-04-20 21:18 ` Pavel Machek
2006-04-23  9:41   ` Lukasz Stelmach

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.