From hal-bounces@lists.freedesktop.org Wed Apr 13 13:32:51 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx25.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DLg71-00086U-00; Wed, 13 Apr 2005
	13:32:51 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 19C029EA1A; Wed, 13 Apr 2005
	04:32:50 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from box79162.elkhouse.de (box79162.elkhouse.de [213.9.79.162])
	by gabe.freedesktop.org (Postfix) with ESMTP id 79C8D9E7F2 for
	<hal@lists.freedesktop.org>; Wed, 13 Apr 2005 04:32:47 -0700 (PDT)
Received: from martin by box79162.elkhouse.de with local (Exim 4.50) id
	1DLg6w-00079W-Ns for hal@lists.freedesktop.org; Wed, 13 Apr 2005 13:32:46
	+0200
Date: Wed, 13 Apr 2005 13:32:46 +0200
From: Martin Pitt <martin@piware.de>
To: hal@lists.freedesktop.org
Message-ID: <20050413113246.GB27342@box79162.elkhouse.de>
Mail-Followup-To: hal@lists.freedesktop.org
Mime-Version: 1.0
User-Agent: Mutt/1.5.6+20040907i
Subject: [patch] increase default rules per connection limit
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0463576754=="
Mime-version: 1.0
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState: N
X-KMail-SignatureState: P
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 00000002-0130


--===============0463576754==
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LpQ9ahxlCli8rRTG"
Content-Disposition: inline


--LpQ9ahxlCli8rRTG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi!

Some users had problems with the default rule limit (see [1]):

$ hal-device-manager
Traceback (most recent call last):
  File "/usr/bin/hal-device-manager", line 18, in ?
    DeviceManager()
  File "/usr/share/hal/device-manager/DeviceManager.py", line 88, in __init=
__
    self.add_device_signal_recv (name);
  File "/usr/share/hal/device-manager/DeviceManager.py", line 99, in
add_device_signal_recv
    udi)
  File "/usr/lib/python2.4/site-packages/dbus.py", line 93, in add_signal_r=
eceiver
    dbus_bindings.bus_add_match(self._connection, match_rule)
  File "dbus_bindings.pyx", line 1516, in dbus_bindings.bus_add_match
dbus_bindings.DBusException: Connection ":1.17" is not allowed to add more =
match
rules (increase limits in configuration file if required)

It helped to increase this limit to an ample value:=20

diff -ruN hal-0.5.0-old/hal.conf.in hal-0.5.0/hal.conf.in
--- hal-0.5.0-old/hal.conf.in   2004-09-12 11:57:59.000000000 +0200
+++ hal-0.5.0/hal.conf.in       2005-04-13 12:11:37.024496368 +0200
@@ -25,5 +25,7 @@
            receive_sender=3D"org.freedesktop.Hal"/>
   </policy>

+  <limit name=3D"max_match_rules_per_connection">512</limit>
+
 </busconfig>


Since this certainly affects other people, too, do you consider
adopting this into the upstream version?

Thanks,

Martin

[1] https://bugzilla.ubuntu.com/show_bug.cgi?id=3D7188

--=20
Martin Pitt               http://www.piware.de
Ubuntu Developer    http://www.ubuntulinux.org
Debian Developer         http://www.debian.org

--LpQ9ahxlCli8rRTG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCXQNeDecnbV4Fd/IRAlzqAJ9p9ihfqne5ksmVKOLgY6OjNc57TQCfV/5O
yoXv3z3KLIye3sSIsBGv1Kg=
=yrhd
-----END PGP SIGNATURE-----

--LpQ9ahxlCli8rRTG--

--===============0463576754==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

--===============0463576754==--

From hal-bounces@lists.freedesktop.org Sun Apr 17 02:03:37 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx33.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DMxGC-0006h2-00; Sun, 17 Apr 2005
	02:03:37 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 1EE6E9EA13; Sat, 16 Apr 2005
	17:03:35 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by
	gabe.freedesktop.org (Postfix) with SMTP id 660679E745 for
	<hal@lists.freedesktop.org>; Sat, 16 Apr 2005 17:03:32 -0700 (PDT)
Received: (qmail invoked by alias); 17 Apr 2005 00:03:30 -0000
Received: from L0005P01.dipool.highway.telekom.at (EHLO pyramid.niea.at)
	[62.46.64.129] by mail.gmx.net (mp018) with SMTP; 17 Apr 2005 02:03:30 +0200
X-Authenticated: #211688
From: Danny Milosavljevic <danny.milo@gmx.net>
To: hal@lists.freedesktop.org
Date: Sun, 17 Apr 2005 02:03:30 +0200
Message-Id: <1113696210.7146.1.camel@pyramid.niea.at>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.3 
X-Y-GMX-Trusted: 0
Subject: hal-device-manager stack smashing attack
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1177584523=="
Mime-version: 1.0
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState: N
X-KMail-SignatureState: P
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 00000004-0130


--===============1177584523==
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-2gfWcSiDUtrDqp72v5yz"


--=-2gfWcSiDUtrDqp72v5yz
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

unfortunately when trying to run todays cvs hal-device-manager (with
todays dbus), this happens:

Bonobo accessibility support initialized
GTK Accessibility Module initialized
Atk Accessibilty bridge initialized
python: stack smashing attack in function
__pyx_f_13dbus_bindings_11MessageIter_get_uint16()
Aborted

Any clues ?

cheers,
   Danny

--=20
www.keyserver.net key id A334AEA6


--=-2gfWcSiDUtrDqp72v5yz
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Dies ist ein digital signierter Nachrichtenteil

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBCYafSXcdMm6M0rqYRApf3AKCBl45wRsFPPMeoVAiPHaLNN81A2wCdEHdm
iLrZCW4Ls735reHdg/gOmqE=
=wyyz
-----END PGP SIGNATURE-----

--=-2gfWcSiDUtrDqp72v5yz--


--===============1177584523==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

--===============1177584523==--


From hal-bounces@lists.freedesktop.org Sun Apr 10 21:29:12 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx27.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DKi7L-00081k-00; Sun, 10 Apr 2005
	21:29:12 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 9EC3E9EA8C; Sun, 10 Apr 2005
	12:29:10 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 8D92E9E880 for
	<hal@lists.freedesktop.org>; Sun, 10 Apr 2005 12:29:07 -0700 (PDT)
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id
	j3AJT5x7024392; Sun, 10 Apr 2005 15:29:05 -0400
Received: from mail.boston.redhat.com (mail.boston.redhat.com
	[172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id
	j3AJT4O02474; Sun, 10 Apr 2005 15:29:05 -0400
Received: from vpn83-121.boston.redhat.com (vpn83-121.boston.redhat.com
	[172.16.83.121]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id
	j3AJT31O025874;  Sun, 10 Apr 2005 15:29:04 -0400
From: David Zeuthen <david@fubar.dk>
To: Mark Carey <mark.carey@gmail.com>
In-Reply-To: <345765805041001511532a79d@mail.gmail.com>
References: <345765805040903092d71faba@mail.gmail.com>
	 <1113042908.7678.14.camel@localhost.localdomain>
	 <345765805041001511532a79d@mail.gmail.com>
Content-Type: text/plain
Date: Sun, 10 Apr 2005 15:29:20 -0400
Message-Id: <1113161361.16730.2.camel@daxter.boston.redhat.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 (2.2.1.1-2) 
Content-Transfer-Encoding: 7bit
Cc: hal@lists.freedesktop.org
Subject: Re: libcap
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState:  
X-KMail-SignatureState:  
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 00000006-0010

On Sun, 2005-04-10 at 20:51 +1200, Mark Carey wrote:
> On Apr 9, 2005 10:35 PM, Kay Sievers <kay.sievers@vrfy.org> wrote:
> > The 0.5 version does not need it. But if you still want 0.4, just get
> > libcap from that place. :)
> 
> Thanks Kay, went with the 0.5 option hopefully not too painful to
> install Gnome 2.10.0.
> 
> I am a little worried as garnome 2.10.0.1 only ships with hal-0.4.7 so
> I hope the API changes dont effect software that uses HAL (?)

In Fedora we patch GNOME 2.10 to use hal >= 0.5.0 and dbus >= 0.30. You
may grab patches here

 http://cvs.fedora.redhat.com/viewcvs/devel/

I think we've already submitted them upstream for GNOME 2.11. IIRC KDE
3.4 also contains code on HEAD to use hal >= 0.5.0 and dbus >= 0.30.

Within a year I expect both D-BUS and HAL to be ABI stable; until then
there are a few bumps.

Cheers,
David


_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

From hal-bounces@lists.freedesktop.org Sun Apr 10 10:51:55 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx24.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DKYAc-0002Nu-00; Sun, 10 Apr 2005
	10:51:55 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 5629E9EA9A; Sun, 10 Apr 2005
	01:51:52 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 86D319E734 for
	<hal@lists.freedesktop.org>; Sun, 10 Apr 2005 01:51:49 -0700 (PDT)
Received: by rproxy.gmail.com with SMTP id y7so1063079rne for
	<hal@lists.freedesktop.org>; Sun, 10 Apr 2005 01:51:48 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references;
	b=GYngLstk0l6jYsCGYN7JxXn0tcb6ErcBzZhTWy3NUPfBABT8dsR1Qutb9ENOk45zobsG5OcKW6FY9CrtNOYbSGKMSdINXNNCi5ixOT11IejxcXajaTCPO16EGbC5o3WkTNf0sFP6/jdyLh/JMAx+5diTzLTcE5RVFxFVpyHLkNI=
Received: by 10.39.3.48 with SMTP id f48mr3190325rni; Sun, 10 Apr 2005
	01:51:48 -0700 (PDT)
Received: by 10.38.150.32 with HTTP; Sun, 10 Apr 2005 01:51:48 -0700 (PDT)
Message-ID: <345765805041001511532a79d@mail.gmail.com>
Date: Sun, 10 Apr 2005 20:51:48 +1200
From: Mark Carey <mark.carey@gmail.com>
To: Kay Sievers <kay.sievers@vrfy.org>
In-Reply-To: <1113042908.7678.14.camel@localhost.localdomain>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
References: <345765805040903092d71faba@mail.gmail.com>
	 <1113042908.7678.14.camel@localhost.localdomain>
Cc: hal@lists.freedesktop.org
Subject: Re: libcap
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Mark Carey <mark.carey@gmail.com>
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState:  
X-KMail-SignatureState:  
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 00000008-0010

On Apr 9, 2005 10:35 PM, Kay Sievers <kay.sievers@vrfy.org> wrote:
> The 0.5 version does not need it. But if you still want 0.4, just get
> libcap from that place. :)

Thanks Kay, went with the 0.5 option hopefully not too painful to
install Gnome 2.10.0.

I am a little worried as garnome 2.10.0.1 only ships with hal-0.4.7 so
I hope the API changes dont effect software that uses HAL (?)

Mark
_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

From hal-bounces@lists.freedesktop.org Thu Apr 14 17:13:41 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx21.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DM62H-0007EE-00; Thu, 14 Apr 2005
	17:13:41 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 6DC0B9EF18; Thu, 14 Apr 2005
	08:13:39 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 585209EA52; Thu, 14 Apr 2005
	08:13:36 -0700 (PDT)
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id
	j3EFDZ0W011776; Thu, 14 Apr 2005 11:13:35 -0400
Received: from mail.boston.redhat.com (mail.boston.redhat.com
	[172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id
	j3EFDZO30511; Thu, 14 Apr 2005 11:13:35 -0400
Received: from [192.168.1.128] (dhcp83-95.boston.redhat.com [172.16.83.95])
	by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id j3EFDY1O017310; 
	Thu, 14 Apr 2005 11:13:34 -0400
From: David Zeuthen <david@fubar.dk>
To: Havoc Pennington <hp@redhat.com>
In-Reply-To: <1113454853.23725.2.camel@localhost.localdomain>
References: <20050413113246.GB27342@box79162.elkhouse.de>
	 <1113449536.3439.23.camel@daxter.boston.redhat.com>
	 <1113454853.23725.2.camel@localhost.localdomain>
Content-Type: text/plain
Date: Thu, 14 Apr 2005 11:13:15 -0400
Message-Id: <1113491595.3566.2.camel@daxter.boston.redhat.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.2 (2.2.2-1) 
Content-Transfer-Encoding: 7bit
Cc: dbus@lists.freedesktop.org, Martin Pitt <martin@piware.de>, hal@lists.freedesktop.org
Subject: Re: [patch] increase default rules per connection limit
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState: N
X-KMail-SignatureState: N
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 0000000a-0010

On Thu, 2005-04-14 at 01:00 -0400, Havoc Pennington wrote:
> On Wed, 2005-04-13 at 23:32 -0400, David Zeuthen wrote:
> > Since this affects all services on the system message bus, this needs to
> > be in D-BUS; I don't think this can be tuned per service. Havoc, what do
> > you think about this, can I commit the attached patch that bumps the
> > default number of rules from 128 to 512?
> 
> Looks fine. 

OK, thanks, I've committed this. 

> Probably all the limits should be bumped up a bit (the rules
> one maybe more than 512 even), I'm not sure how to pick these numbers to
> be honest.
>
> It's possible we should just be ulimiting the dbus user instead...

Yeah, I don't know how to pick those numbers either :-)

David


_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

From hal-bounces@lists.freedesktop.org Sat Apr  9 12:35:13 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx31.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DKDJ3-0003oA-00; Sat, 09 Apr 2005
	12:35:13 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 3EAC99E959; Sat,  9 Apr 2005
	03:35:12 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from soundwarez.org (soundwarez.org [217.160.171.123]) by
	gabe.freedesktop.org (Postfix) with ESMTP id E1DAE9E7C9 for
	<hal@lists.freedesktop.org>; Sat,  9 Apr 2005 03:35:10 -0700 (PDT)
Received: from dhcp-113.off.vrfy.org (d051141.adsl.hansenet.de
	[80.171.51.141]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No
	client certificate requested) by soundwarez.org (Postfix) with ESMTP id
	9D85319875; Sat,  9 Apr 2005 12:35:07 +0200 (CEST)
From: Kay Sievers <kay.sievers@vrfy.org>
To: Mark Carey <mark.carey@gmail.com>
In-Reply-To: <345765805040903092d71faba@mail.gmail.com>
References: <345765805040903092d71faba@mail.gmail.com>
Content-Type: text/plain
Date: Sat, 09 Apr 2005 12:35:08 +0200
Message-Id: <1113042908.7678.14.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 (2.2.1.1-2) 
Content-Transfer-Encoding: 7bit
Cc: hal@lists.freedesktop.org
Subject: Re: libcap
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState:  
X-KMail-SignatureState:  
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 0000000c-0010

On Sat, 2005-04-09 at 22:09 +1200, Mark Carey wrote:
> Hi,
> 
> Sorry to sound stupid, but where does one obtain the source to libcap,
> which appears to be required to build HAL 0.4.7.  I am trying to build
> the project utopia stack on a Linux From Scratch System so I can build
> gnome-volume-manager under Gnome 2.10.0

You should consider integrating the 0.5 version. The API has changed and
0.4 is no longer actively developed. You will need to do everything
again for the dramatically improved 0.5 version.

> Google turns up plenty of RPMs but no sources, yes building for myself
> from source
> 
> There is source available at; 
> ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/ 
> But I have a 2.6 kernel ...

The 0.5 version does not need it. But if you still want 0.4, just get
libcap from that place. :)

Good luck,
Kay

_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

From hal-bounces@lists.freedesktop.org Thu Apr 14 07:01:07 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx30.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DLwTT-0008Mi-00; Thu, 14 Apr 2005
	07:01:07 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id DFE619EBDD; Wed, 13 Apr 2005
	22:00:58 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 7DE1A9E7F1; Wed, 13 Apr 2005
	22:00:55 -0700 (PDT)
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id
	j3E50qrP028270; Thu, 14 Apr 2005 01:00:52 -0400
Received: from pobox.corp.redhat.com (pobox.corp.redhat.com
	[172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id
	j3E50kO29280;  Thu, 14 Apr 2005 01:00:46 -0400
Received: from localhost.localdomain (sebastian-int.corp.redhat.com
	[172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id
	j3E50kjs020253;  Thu, 14 Apr 2005 01:00:46 -0400
From: Havoc Pennington <hp@redhat.com>
To: David Zeuthen <david@fubar.dk>
In-Reply-To: <1113449536.3439.23.camel@daxter.boston.redhat.com>
References: <20050413113246.GB27342@box79162.elkhouse.de>
	 <1113449536.3439.23.camel@daxter.boston.redhat.com>
Content-Type: text/plain
Date: Thu, 14 Apr 2005 01:00:53 -0400
Message-Id: <1113454853.23725.2.camel@localhost.localdomain>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.1.1 (2.2.1.1-2) 
Content-Transfer-Encoding: 7bit
Cc: dbus@lists.freedesktop.org, Martin Pitt <martin@piware.de>, hal@lists.freedesktop.org
Subject: Re: [patch] increase default rules per connection limit
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState: N
X-KMail-SignatureState: N
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 0000000e-0010

On Wed, 2005-04-13 at 23:32 -0400, David Zeuthen wrote:
> Since this affects all services on the system message bus, this needs to
> be in D-BUS; I don't think this can be tuned per service. Havoc, what do
> you think about this, can I commit the attached patch that bumps the
> default number of rules from 128 to 512?

Looks fine. Probably all the limits should be bumped up a bit (the rules
one maybe more than 512 even), I'm not sure how to pick these numbers to
be honest.

It's possible we should just be ulimiting the dbus user instead...

Havoc


_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

From hal-bounces@lists.freedesktop.org Sat Apr  9 12:09:11 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx23.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DKCtr-0003Pu-00; Sat, 09 Apr 2005
	12:09:11 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id B2CD89E939; Sat,  9 Apr 2005
	03:09:09 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.202]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 40AE09E7D0 for
	<hal@lists.freedesktop.org>; Sat,  9 Apr 2005 03:09:07 -0700 (PDT)
Received: by rproxy.gmail.com with SMTP id y7so930595rne for
	<hal@lists.freedesktop.org>; Sat, 09 Apr 2005 03:09:06 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;
	b=pPGVcT1ADsilwPOx07uDn42D9FL0kIjotzcdYTnb/uezyZzAXTutrLV8HTm/Y9HSrGl0ITA8X8kHq74kVK7MgTfXcxcb/+p0pL6wi37OIJ/9iiYjW70jGGDpXJTlTqvEhs6/Ue1XCHhdMDRcitGMpAK8FvMRDccrrM4n+zKSxRI=
Received: by 10.38.66.59 with SMTP id o59mr438685rna; Sat, 09 Apr 2005
	03:09:06 -0700 (PDT)
Received: by 10.38.150.32 with HTTP; Sat, 9 Apr 2005 03:09:06 -0700 (PDT)
Message-ID: <345765805040903092d71faba@mail.gmail.com>
Date: Sat, 9 Apr 2005 22:09:06 +1200
From: Mark Carey <mark.carey@gmail.com>
To: hal@lists.freedesktop.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: libcap
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Mark Carey <mark.carey@gmail.com>
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORC
X-KMail-EncryptionState: N
X-KMail-SignatureState: N
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 00000010-0010

Hi,

Sorry to sound stupid, but where does one obtain the source to libcap,
which appears to be required to build HAL 0.4.7.  I am trying to build
the project utopia stack on a Linux From Scratch System so I can build
gnome-volume-manager under Gnome 2.10.0

Google turns up plenty of RPMs but no sources, yes building for myself
from source

There is source available at; 
ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/ 
But I have a 2.6 kernel ...

Any suggestions?

Mark
_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

From hal-bounces@lists.freedesktop.org Thu Apr 14 05:32:50 2005
Received: from [131.252.208.82] (helo=gabe.freedesktop.org) by mx27.web.de
	with esmtp (WEB.DE 4.104 #268) id 1DLv62-0001Xu-00; Thu, 14 Apr 2005
	05:32:50 +0200
Received: from gabe.freedesktop.org (localhost.localdomain [127.0.0.1]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 717FF9EBDD; Wed, 13 Apr 2005
	20:32:41 -0700 (PDT)
X-Original-To: hal@lists.freedesktop.org
Delivered-To: hal@lists.freedesktop.org
Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by
	gabe.freedesktop.org (Postfix) with ESMTP id 7F2BD9E808; Wed, 13 Apr 2005
	20:32:37 -0700 (PDT)
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
	[172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id
	j3E3Wa4Z013305; Wed, 13 Apr 2005 23:32:36 -0400
Received: from mail.boston.redhat.com (mail.boston.redhat.com
	[172.16.76.12]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id
	j3E3WaO17709; Wed, 13 Apr 2005 23:32:36 -0400
Received: from vpn83-149.boston.redhat.com (vpn83-149.boston.redhat.com
	[172.16.83.149]) by mail.boston.redhat.com (8.12.8/8.12.8) with ESMTP id
	j3E3WZ1O004969;  Wed, 13 Apr 2005 23:32:35 -0400
From: David Zeuthen <david@fubar.dk>
To: Martin Pitt <martin@piware.de>
In-Reply-To: <20050413113246.GB27342@box79162.elkhouse.de>
References: <20050413113246.GB27342@box79162.elkhouse.de>
Content-Type: multipart/mixed; boundary="=-UPVLyx5et9SemZXunaRg"
Date: Wed, 13 Apr 2005 23:32:16 -0400
Message-Id: <1113449536.3439.23.camel@daxter.boston.redhat.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.2.2 (2.2.2-1) 
Cc: dbus@lists.freedesktop.org, hal@lists.freedesktop.org
Subject: Re: [patch] increase default rules per connection limit
X-BeenThere: hal@lists.freedesktop.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Hardware Abstraction Layer technical discussion
	<hal.lists.freedesktop.org>
List-Unsubscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=unsubscribe>
List-Archive: <http://lists.freedesktop.org/archives/hal>
List-Post: <mailto:hal@lists.freedesktop.org>
List-Help: <mailto:hal-request@lists.freedesktop.org?subject=help>
List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/hal>,
	<mailto:hal-request@lists.freedesktop.org?subject=subscribe>
Errors-To: hal-bounces@lists.freedesktop.org
Sender: hal-bounces@lists.freedesktop.org
Status: RO
X-Status: ORT
X-KMail-EncryptionState: N
X-KMail-SignatureState: N
X-KMail-MDN-Sent:  
X-UID: 0
X-Evolution-Source: imap://dkukawka@imap.suse.de/
X-Evolution: 00000012-0030


--=-UPVLyx5et9SemZXunaRg
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


(Adding dbus list to Cc)

On Wed, 2005-04-13 at 13:32 +0200, Martin Pitt wrote:
> Hi!
> 
> Some users had problems with the default rule limit (see [1]):
> 
> $ hal-device-manager
> Traceback (most recent call last):
>   File "/usr/bin/hal-device-manager", line 18, in ?
>     DeviceManager()
>   File "/usr/share/hal/device-manager/DeviceManager.py", line 88, in __init__
>     self.add_device_signal_recv (name);
>   File "/usr/share/hal/device-manager/DeviceManager.py", line 99, in
> add_device_signal_recv
>     udi)
>   File "/usr/lib/python2.4/site-packages/dbus.py", line 93, in add_signal_receiver
>     dbus_bindings.bus_add_match(self._connection, match_rule)
>   File "dbus_bindings.pyx", line 1516, in dbus_bindings.bus_add_match
> dbus_bindings.DBusException: Connection ":1.17" is not allowed to add more match
> rules (increase limits in configuration file if required)
> 
> It helped to increase this limit to an ample value: 
> 
> diff -ruN hal-0.5.0-old/hal.conf.in hal-0.5.0/hal.conf.in
> --- hal-0.5.0-old/hal.conf.in   2004-09-12 11:57:59.000000000 +0200
> +++ hal-0.5.0/hal.conf.in       2005-04-13 12:11:37.024496368 +0200
> @@ -25,5 +25,7 @@
>             receive_sender="org.freedesktop.Hal"/>
>    </policy>
> 
> +  <limit name="max_match_rules_per_connection">512</limit>
> +
>  </busconfig>
> 
> 
> Since this certainly affects other people, too, do you consider
> adopting this into the upstream version?

Since this affects all services on the system message bus, this needs to
be in D-BUS; I don't think this can be tuned per service. Havoc, what do
you think about this, can I commit the attached patch that bumps the
default number of rules from 128 to 512?

(As an aside, the horrendous design of h-d-m, adding two rules per hal
device object, is due to the fact that the python bindings presently
don't let one match on a subtree of objects. I know John Palmieri and
Ray Strode is revamping those bindings though.)

Cheers,
David


--=-UPVLyx5et9SemZXunaRg
Content-Disposition: attachment; filename=dbus-bump-rules-per-connection.patch
Content-Type: text/x-patch; name=dbus-bump-rules-per-connection.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit

? dbus-add-selinux-todo.patch
? dbus-bump-rules-per-connection.patch
? dbus-fix-glib-deadlock-2.patch
? dbus-fix-glib-deadlock-3.patch
? dbus-fix-glib-deadlock.patch
? fix-selinux-error-handling-and-memory-leak.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/dbus/dbus/ChangeLog,v
retrieving revision 1.756
diff -u -p -r1.756 ChangeLog
--- ChangeLog	13 Apr 2005 16:13:42 -0000	1.756
+++ ChangeLog	14 Apr 2005 03:26:10 -0000
@@ -1,5 +1,10 @@
 2005-04-13  David Zeuthen  <davidz@redhat.com>
 
+	* bus/config-parser.c (bus_config_parser_new): Bump this to a
+	more reasonable, yet still totally arbitrary, value :-). 
+
+2005-04-13  David Zeuthen  <davidz@redhat.com>
+
 	* doc/TODO: Added an "important for 1.0" item about selinux
 	allow/deny messages
 
Index: bus/config-parser.c
===================================================================
RCS file: /cvs/dbus/dbus/bus/config-parser.c,v
retrieving revision 1.40
diff -u -p -r1.40 config-parser.c
--- bus/config-parser.c	18 Jan 2005 20:42:15 -0000	1.40
+++ bus/config-parser.c	14 Apr 2005 03:26:12 -0000
@@ -419,7 +419,7 @@ bus_config_parser_new (const DBusString 
       parser->limits.max_pending_activations = 256;
       parser->limits.max_services_per_connection = 256;
       
-      parser->limits.max_match_rules_per_connection = 128;
+      parser->limits.max_match_rules_per_connection = 512;
       
       parser->limits.reply_timeout = 5 * 60 * 1000; /* 5 minutes */
       parser->limits.max_replies_per_connection = 32;

--=-UPVLyx5et9SemZXunaRg
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
hal mailing list
hal@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal

--=-UPVLyx5et9SemZXunaRg--

