Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752789AbbD3Owo (ORCPT ); Thu, 30 Apr 2015 10:52:44 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:30862 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751477AbbD3Owh (ORCPT ); Thu, 30 Apr 2015 10:52:37 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-1d-554241b6c1c4 To: Richard Weinberger Cc: Austin S Hemmelgarn , "Theodore Ts'o" , Harald Hoyer , "linux-kernel@vger.kernel.org" Subject: Re: [GIT PULL] kdbus for 4.1-rc1 References: <21824.5086.446831.189915@quad.stoffel.home> <5540D2F9.2010704@redhat.com> <5540DEEB.2060405@redhat.com> <5540E0C7.3050106@nod.at> <5540E432.9020606@redhat.com> <5540E4D9.6000007@nod.at> <5540E684.4070606@redhat.com> <5540E821.8050204@nod.at> <5540F081.9090005@redhat.com> <20150429150341.GA12374@thunk.org> <5540F6E3.8000706@gmail.com> <871tj2ouk2.fsf%l.stelmach@samsung.com> <5541F209.8070302@nod.at> <87wq0tor57.fsf%l.stelmach@samsung.com> <55420685.8080607@nod.at> <87oam5olpu.fsf%l.stelmach@samsung.com> <55421EBB.2010500@nod.at> <87k2wtokl8.fsf%l.stelmach@samsung.com> <554223CE.7070704@nod.at> From: =?utf-8?Q?=C5=81ukasz_Stelmach?= Date: Thu, 30 Apr 2015 16:52:27 +0200 In-reply-to: <554223CE.7070704@nod.at> Message-id: <878ud9oehg.fsf%l.stelmach@samsung.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) MIME-version: 1.0 Content-type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsVy+t/xK7rbHJ1CDS5ulrJo+fqMyeL5p+2s Fpd3zWGzmLzzDaNFa89PdgdWj52z7rJ7NJ05yuxxc16hx/t9V9k8Pm+SC2CN4rJJSc3JLEst 0rdL4Mo4OnMaa8Fl6YoTPX9YGhibxLsYOTkkBEwkbn1+wQxhi0lcuLeerYuRi0NIYCmjxNb1 O6Ccb4wSbfNns4BUiQioS7x7OZUNxGYW2MQo8eumBogtLKApsfLoKkaIhv2sErtfTWEFSbAJ 2Ev0H9kH1swioCrxbfoXpi5GDg5OATWJnyfjQcK8AsYSn7e/AysXFbCUuPb4JxNEXFDix+R7 LBC7siUuXHzDMoGRfxaS1CwkKQhbXeLPvEvMELa2xLKFr6FsW4l1696zLGBkXcUomlqaXFCc lJ5rqFecmFtcmpeul5yfu4kREuhfdjAuPmZ1iFGAg1GJh5dhmmOoEGtiWXFl7iFGFaA5jzas vsAoxZKXn5eqJML72cgpVIg3JbGyKrUoP76oNCe1+BCjNAeLkjjv3F3vQ4QE0hNLUrNTUwtS i2CyTBycUg2MRdd97Y9dkqvLrlxesV9/TXRK6CWmBYvPzm3aPDHru/WPez4XOnzO3g1j5ewI XOg653W7OveawlfPjmkF2eQ+kjNJdd9SHeh2XED5w0Hd/xbvw0WCtkmeU7uq3cypzP020PXC MuX81cpSEyeqidtemHX7salR18e5kxZOYVDnjnN4YmrEs8xCiaU4I9FQi7moOBEAXNYshHwC AAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3700 Lines: 89 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It was <2015-04-30 czw 14:45>, when Richard Weinberger wrote: > Am 30.04.2015 um 14:40 schrieb =C5=81ukasz Stelmach: >> It was <2015-04-30 czw 14:23>, when Richard Weinberger wrote: >>> Am 30.04.2015 um 14:16 schrieb =C5=81ukasz Stelmach: >>>> It was <2015-04-30 czw 12:40>, when Richard Weinberger wrote: >>>>> Am 30.04.2015 um 12:19 schrieb =C5=81ukasz Stelmach: >>>>>> It was <2015-04-30 czw 11:12>, when Richard Weinberger wrote: >>>>>>> Am 30.04.2015 um 11:05 schrieb =C5=81ukasz Stelmach: >>>>>>>> Regardless, of initrd issues I feel there is a need of a local IPC >>>>>>>> that is more capable than UDS.=20 >> [...] >>>>>> For example, a service can't aquire credentials of a client process = that >>>>>> actually sent a request (it can, but it can't trust them). The servi= ce >>>>>> can't be protected by LSM on a bus that is driven by dbus-daemon. Ye= s, >>>>>> dbus-daemon, can check client's and srevice's labels and enforce a >>>>>> policy but it is going to be the daemon and not the LSM code in the >>>>>> kernel. >>>>> >>>>> That's why I said we can think of new kernel features if they are >>>>> needed. But they current sink or swim approach of kdbus folks is also >>>>> not the solution. As I said, if dbus-daemon utilizes the kernel >>>>> interface as much as possible we can think of new features. >>>> >>>> What kernel interfaces do you suggest to use to solve the issues >>>> I mentioned in the second paragraph: race conditions, LSM support (for >>>> example)? >>> >>> The question is whether it makes sense to collect this kind of meta dat= a. >>> I really like Andy and Alan's idea improve AF_UNIX or revive AF_BUS. >>=20 >> Race conditions have nothing to do with metadata. Neither has LSM >> support. > > Sorry, I thought you mean the races while collecting metadata in userspac= e... My bad, some reace conditions *are* associated with collecting metadata but ont all. It is impossible (correct me if I am wrong) to implement reliable die-on-idle with dbus-daemon. >> AF_UNIX with multicast support wouldn't be AF_UNIX anymore. >>=20 >> AF_BUS? I haven't followed the discussion back then. Why do you think it >> is better than kdbus? > > Please see https://lwn.net/Articles/641278/ Thanks. If I understand correctly, the author suggests using EBPF on a receiveing socket side for receiving multicast messages. This is nice if you care about introducing (or not) (too?) much of new code. However, AFAICT it may be more computationally complex than Bloom filters because you need to run EBPF on every receiving socket instead of getting a list of a few of them to copy data to. Of course for small number of receivers the "constant" cost of running the Bloom filter may be higher. Kind regards, =2D-=20 =C5=81ukasz Stelmach Samsung R&D Institute Poland Samsung Electronics --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCAAGBQJVQkGrAAoJELCuHpyYpYAQiqEH/Aspkgwtg2R2kACRDRlWg/dr sSxuYVwTmsvCdMxIlSDIUaFy9M5i+/Dj2gSZDsltM+4BZ3h5L3stuvYg5gu4o1A+ jrcxa6/NYR90Zm4BUz/BYJFv0PQ+86MehdbatcXsT8G4Bk+gbaanS/v8JqHTR46k XsYTC1N9m55Ymn+i9v5MDMDrjxdFQXWC2HYN/pCsxUNUN6fqtV0MRFwjrHZRxMWz mFC+aEtbkMjQjXPNEyoSzMl5ZThG/DEQ2zuns5YtY0eb2FZnI4h78j4e+sTVXs1x wjbev4PZnwW4OugpZx0gfYY6yte+DLIgJIEwXwqBn3xWF9tR9HzMBn11K3Q165Y= =w3jC -----END PGP SIGNATURE----- --=-=-=-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/