lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 21 Apr 2008 14:01:43 -0500
From:	serge@...lyn.com
To:	David <david@...olicited.net>
Cc:	serge@...lyn.com, casey@...aufler-ca.com,
	Mike Galbraith <efault@....de>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Andrew Morgan <morgan@...nel.org>
Subject: Re: 2.6.25 Kernel - Problems with capabilities

Quoting David (david@...olicited.net):
> serge@...lyn.com wrote:
>>>
>>> /lib/libcap.so.1 -> libcap.so.1.92
>>>
>>> I guess that's 1.92 (should be the version shipped with SuSE 9.1).
>>>     
>>
>> Ok, thanks, then it's definately not what I was thinking.
>>
>> (Will wait to check out your strace)
>>   
> strace attached.
>
> Cheers
> David
>

...
> capget(0x20071026, 0, {, , })           = -1 EINVAL (Invalid argument)

This is odd.  libcap-1.x should be passing in 0x19980330.

Next, given the -EINVAL return value ntpd should be seeing a NULL result
from cap_get_proc() and exiting right there.

What version of ntpd is this?  (I must be looking at a wrong value, but
even so the fact that cap_get_proc()->capget() is using 0x20071026 for
version doesn't make sense)

> capset(0, 0, {CAP_NET_BIND_SERVICE|CAP_SYS_TIME, CAP_NET_BIND_SERVICE|CAP_SYS_TIME, CAP_NET_BIND_SERVICE|CAP_SYS_TIME}) = -1 EINVAL (Invalid argument)
> time(NULL)                              = 1208803493
> write(5, "21 Apr 19:44:53 ntpd[6118]: cap_"..., 92) = 92
> munmap(0x40022000, 4096)                = 0
> exit_group(-1)                          = ?
> Process 6118 detached


thanks,
-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ