lkml.org 
[lkml]   [2019]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] usb: hub: report failure to enumerate uevent to userspace
Date
Eugeniu Rosca <erosca@de.adit-jv.com> wrote:

> - Looking at commit [4], it seems that the new "notifier" interface/api
> forces userspace applications to link against -lkeyutils [5].

No. The keyctl(2) syscall is implemented in -lkeyutils library, and not in
-lc. That's all. If you want to call KEYCTL_NOTIFY to watch a key or
keyring, you need it; not otherwise.

> Assuming the latter is designed for ("Kernel key management") [6],
> it may look like the keyutils library is being abused to handle
> the "USB (or really any hardware events)". Do you really plan to
> extend the scope of the library to handle these new tasks?

No.

That said, it's probably worth providing some userspace library to wrap the
ring management.

David

\
 
 \ /
  Last update: 2019-06-05 23:21    [W:1.378 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site