lkml.org 
[lkml]   [2004]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] implement in-kernel keys & keyring management
    On Sat, 7 Aug 2004, Linus Torvalds wrote:

    > On Sun, 8 Aug 2004, James Morris wrote:
    > >
    > > I would suggest that the /sbin/request-key interface be done via Netlink
    > > messaging instead.

    > I really disagree.
    >
    > If you want to use netlink, do so. But do it from the /sbin/request-key
    > script or binary.
    >
    > I've never seen a good binary deamon listening for things. It's a horrible
    > interface. It's undebuggable, it's inflexible, and it's just plain nasty.
    >
    > I'm just looking at how _well_ /sbin/hotplug has worked out. I believe
    > that it would have been a disaster done with a binary messaging setup.

    I'm not disagreeing with the above, but what about performance? Part of
    the reason I suggested Netlink is that it's likely to be more efficient to
    send messages over a socket than to exec a program for each key request
    from the kernel.

    It's difficult to know if performance will actually be an issue without
    understanding the potential workload more. What if many thousands of
    clients are connected to a fileserver? Would calling /sbin/request-key
    for each key request be likely to cause performance problems?


    - James
    --
    James Morris
    <jmorris@redhat.com>


    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:05    [W:0.021 / U:1.800 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site