avahi-daemon uses 32 bit legacy capabilities on AMD64

Bug #248577 reported by nullack
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
avahi (Ubuntu)
Fix Released
Low
Jonathan Riddell
Nominated for Intrepid by David Gaarenstroom

Bug Description

Binary package hint: avahi-daemon

On Intrepid synched to the current repo as of 15 July, the avahi-deamon is reporting on my AMD64 install that it is running in legacy 32bit mode. The following kernel log entry is provided:

Jul 15 07:54:16 ppp klogd: [ 23.988487] warning: `avahi-daemon' uses 32-bit capabilities (legacy support in use)

Tags: iso-testing

Related branches

Revision history for this message
David Gaarenstroom (david-gaarenstroom) wrote :

FWIW, this is printed by kernels from 2.6.25 and is caused by 'libcap1'. Version 2 of libcap solves this issue. (v2 uses 64bit capabilities instead of 32bit on amd64 systems.)

Other packages that cause this kernel message are all the ones that link to libcap1 (e.g. dhcp3-client, ntpdate, wodim, etc.)

Revision history for this message
nullack (nullack) wrote :

This appears to have been fixed in the alpha of Intrepid now

Changed in libcap:
status: New → Fix Released
Revision history for this message
nullack (nullack) wrote :

I've re-opened as the issue has appeared once again in recent Intrepid builds. Upon doing a fresh install using Ubuntu Desktop amd64 (20080917.1) I note the following:

Sep 18 16:11:58 PPP kernel: [ 25.318690] warning: `avahi-daemon' uses 32-bit capabilities (legacy support in use)

Changed in libcap:
status: Fix Released → New
Revision history for this message
David Gaarenstroom (david-gaarenstroom) wrote :

Confirmed, I'm seeing this in alpha6 as well. And yes, avahi-daemon is build against libcap1, not libcap2... :-(
It's important to note that 32-capabilities is using legacy kernel code that is being phased out. So it's important to choose whether packages will be ported to libcap2 for intrepid or not. IMHO, it would be best to switch to libcap2 before the final intrepid release for the most important packages (for the AMD64 platform).

IMHO, the most important packages still built against libcap1:
- avahi-daemon
- pulseaudio*, libpulse0
- ntpdate

Revision history for this message
nullack (nullack) wrote :

Im moving the status of the bug to confirmed in light of David's comments above where he has replicated the problem on his machine and confirmed the bug. I believe he meant to move the status to confirmed so I am fixing this up.

Changed in avahi:
status: New → Confirmed
Revision history for this message
David Gaarenstroom (david-gaarenstroom) wrote :

Jonathan Riddell was responsible for this, see the avahi changelog:
----8<----
avahi (0.6.23-2ubuntu2) intrepid; urgency=low

  * Build against libcap-dev instead of libcap2-dev

 -- Jonathan Riddell <email address hidden> Sun, 27 Jul 2008 19:26:13 +0100

----8<----

A bit more information would have been nice, e.g. the reason why this was done... :(

Revision history for this message
David Gaarenstroom (david-gaarenstroom) wrote :

See also:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464712

Reverting this patch (as done by Jonathan Riddell) to allows possibly-insecure
use of v2 capabilities. See kernel/capability.c in the Linux source
for details (look for warn_deprecated_v2).

Revision history for this message
David Gaarenstroom (david-gaarenstroom) wrote :

Assigning this bug to JR (responsible for breaking it again after this was fixed... Please at least explain why.)

Changed in avahi:
assignee: nobody → jr
Revision history for this message
Chrisski (christoph-dalski) wrote :

I'm using Beta1 and have the same problem:
warning: `avahi-daemon' uses 32-bit capabilities (legacy support in use)
Regards

nullack (nullack)
Changed in avahi:
importance: Undecided → Low
milestone: none → ubuntu-8.10
status: Confirmed → Triaged
Revision history for this message
Duane Hinnen (duanedesign) wrote :

after I upgraded to Intrepid 8.10 amd 64 I noticed this in my log

Nov 3 18:26:15 duanedesign-laptop kernel: [ 21.082131] warning: `avahi-daemon' uses 32-bit capabilities (legacy support in use)

If there is any other information I can provide please let me know.

Revision history for this message
zasq (zasq) wrote :

Hi. I also get this message in the log (intrepid, kernel 2.6.27-9-generic). As I have problems with my usb-devices I would like to know what the message "legacy support in use" means? Does it mean that using only 32-bit capabilities won't affect legacy support?
Sorry, I'm no expert, but I'm trying to find the source of the usb-problem. Thanks a lot.

Revision history for this message
Daniel Letzeisen (dtl131) wrote :

It has been 4 months and Jonathan Riddell has not responded and told us why he chose to use libcap1 over libcap2.
I confirm this issue still exists in Jaunty Alpha3. Is it possible we could get this fix-released in Jaunty?
Thanks.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package avahi - 0.6.23-4ubuntu2

---------------
avahi (0.6.23-4ubuntu2) jaunty; urgency=low

  * Build with libcap2-dev, the reasons for using libcap-dev have
    long since been lost, LP: #248577

 -- Jonathan Riddell <email address hidden> Mon, 09 Feb 2009 13:54:51 +0000

Changed in avahi:
status: Triaged → Fix Released
tags: added: iso-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.