[klibc] [PATCH] Add syscall wrappers required by libkeyutils
ben at decadent.org.uk
Sat Jul 25 14:36:33 PDT 2020
On Wed, 2020-07-08 at 08:37 +0200, Christian Eggers wrote:
> libkeyutils is used by the keyctl command which is required for loading
> keys into the kernel (e.g. for mounting an authenticated UBIFS as root
> file system).
> libkeyutils usually invokes syscall() directly. As syscall() is not
> provided by klibc, libkeyutils has to be slightly modified for using the
> klibc wrappers.
Wouldn't it be more useful for klibc to implement syscall() then?
> Signed-off-by: Christian Eggers <ceggers at arri.de>
> usr/klibc/SYSCALLS.def | 3 +++
> 1 file changed, 3 insertions(+)
> diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
> index 461d9bf6..67056a2c 100644
> --- a/usr/klibc/SYSCALLS.def
> +++ b/usr/klibc/SYSCALLS.def
> @@ -274,6 +274,9 @@ int reboot::__reboot(int, int, int, void *);
> int syslog::klogctl(int, char *, int);
> int sysinfo(struct sysinfo *);
> long kexec_load(void *, unsigned long, struct kexec_segment *, unsigned long);
> +int add_key(const char *, const char *, const void *, size_t, int);
> +int request_key(const char *, const char *, const char *, int);
> +long keyctl::__keyctl(int, unsigned long, unsigned long, unsigned long, unsigned long);
> * Low-level I/O (generally architecture-specific);
Anthony's Law of Force: Don't force it, get a larger hammer.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: This is a digitally signed message part
More information about the klibc