[systemd-devel] systemd-logind.service failed
Sven Anders
anders at anduras.de
Mon Mar 26 04:04:09 PDT 2012
Am 26.03.2012 00:06, schrieb Kay Sievers:
> On Sun, Mar 25, 2012 at 22:02, Sven Anders <anders at anduras.de> wrote:
>> I'm trying to switch to systemd, but I have some minor problem.
>>
>> "systemctl status systemd-logind.service" reports failure.
>> The error message is the following:
>>
>> Linux/OS (d-login)[206]: Failed at step CAPABILITIES...
>>
>> I made a strace on systemd and it seems, that the following
>> call fails:
>> prctl(0x18 /* PR_??? */, 0x24, 0, 0xbff824c0, 0x3) = -1 EINVAL (Invalid argument)
>>
>> I looked at the code and in execute.c I found a loop
>> for (i = 0; i <= cap_last_cap(); i++)
>>
>> cap_last_cap() uses the CAP_LAST_CAP define. Fine, this is set to 35 (0x23)
>>
>> If I do a "cat /proc/sys/kernel/cap_last_cap" it returns 35 (ok, the same...)
>>
>> So, why is the program trying to set 0x24?
>>
>> (I'm tested this on the kernel version 3.2.2)
>>
>> Maybe anyone has an idea?
>
> You compiled systemd with the same kernel version as you run it and
> see the failure?
>
> Kay
Yes! And this is what makes me curious...
But I will recheck this to be absolutely sure.
Is it possible, that the cap_last_cap value is reduced during runtime?
Regards
Sven Anders
--
Sven Anders <anders at anduras.de> () UTF-8 Ribbon Campaign
/\ Support plain text e-mail
ANDURAS intranet security AG
Messestrasse 3 - 94036 Passau - Germany
Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: anders.vcf
Type: text/x-vcard
Size: 352 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120326/e16d78fd/attachment.vcf>
More information about the systemd-devel
mailing list