diff options
| author | Alistair Francis <alistair23@gmail.com> | 2025-04-09 12:37:36 +1000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-08 21:03:47 -0700 |
| commit | 519a3749c8dbeccf41e59e6c5592eb77c7bf7654 (patch) | |
| tree | 1e8bb25a663333e6cda544faceb32e632ee2b23f /meta-oe | |
| parent | b8ea21f860c0e451c34b80d5172367c619094db6 (diff) | |
| download | meta-openembedded-519a3749c8dbeccf41e59e6c5592eb77c7bf7654.tar.gz | |
ktls-utils: Initial commit
Package ktls-utils which includes tlsd.
This is used when in-kernel TLS consumers need a mechanism to perform TLS
handshakes on a connected socket to negotiate TLS session parameters that
can then be programmed into the kernel's TLS record protocol engine.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-tlshd-Define-ALLPERMS-if-it-doesn-t-exist-to-fix-mus.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-kernel/ktls-utils/ktls-utils_0.11.bb | 24 |
2 files changed, 61 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-tlshd-Define-ALLPERMS-if-it-doesn-t-exist-to-fix-mus.patch b/meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-tlshd-Define-ALLPERMS-if-it-doesn-t-exist-to-fix-mus.patch new file mode 100644 index 0000000000..d27e2aa741 --- /dev/null +++ b/meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-tlshd-Define-ALLPERMS-if-it-doesn-t-exist-to-fix-mus.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From ca95e956307672484e8c018263600749aa9c4f4d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alistair Francis <alistair.francis@wdc.com> | ||
| 3 | Date: Wed, 9 Apr 2025 11:14:52 +1000 | ||
| 4 | Subject: [PATCH] tlshd: Define ALLPERMS if it doesn't exist to fix musl build | ||
| 5 | |||
| 6 | ALLPERMS exists in glibc, but not on musl, so we manually define | ||
| 7 | it if it doesn't exist. This fixes building on musl systems. | ||
| 8 | |||
| 9 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | ||
| 10 | Upstream-Status: Submitted | ||
| 11 | [https://github.com/oracle/ktls-utils/pull/88] | ||
| 12 | --- | ||
| 13 | src/tlshd/config.c | 8 ++++++++ | ||
| 14 | 1 file changed, 8 insertions(+) | ||
| 15 | |||
| 16 | diff --git a/src/tlshd/config.c b/src/tlshd/config.c | ||
| 17 | index 38948e8..e653bd8 100644 | ||
| 18 | --- a/src/tlshd/config.c | ||
| 19 | +++ b/src/tlshd/config.c | ||
| 20 | @@ -46,6 +46,14 @@ | ||
| 21 | |||
| 22 | static GKeyFile *tlshd_configuration; | ||
| 23 | |||
| 24 | +/** | ||
| 25 | + * ALLPERMS exists in glibc, but not on musl, so we | ||
| 26 | + * manually define it if it doesn't exist | ||
| 27 | + */ | ||
| 28 | +#ifndef ALLPERMS | ||
| 29 | +#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) | ||
| 30 | +#endif | ||
| 31 | + | ||
| 32 | /** | ||
| 33 | * tlshd_config_init - Read tlshd's config file | ||
| 34 | * @pathname: Pathname to config file | ||
| 35 | -- | ||
| 36 | 2.49.0 | ||
| 37 | |||
diff --git a/meta-oe/recipes-kernel/ktls-utils/ktls-utils_0.11.bb b/meta-oe/recipes-kernel/ktls-utils/ktls-utils_0.11.bb new file mode 100644 index 0000000000..650b69fcd1 --- /dev/null +++ b/meta-oe/recipes-kernel/ktls-utils/ktls-utils_0.11.bb | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | SUMMARY = "TLS handshake utilities for in-kernel TLS consumers" | ||
| 2 | DESCRIPTION = "In-kernel TLS consumers need a mechanism to perform TLS \ | ||
| 3 | handshakes on a connected socket to negotiate TLS session parameters that \ | ||
| 4 | can then be programmed into the kernel's TLS record protocol engine." | ||
| 5 | DEPENDS = "gnutls keyutils glib-2.0 libnl" | ||
| 6 | RDEPENDS:${PN} += " gnutls" | ||
| 7 | LICENSE = "GPL-2.0-only" | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d568123389d9a12625cca2b089b1728b" | ||
| 9 | |||
| 10 | SRCREV = "5c3314b5728b272cbaf0d98f4d521cca9610b6bf" | ||
| 11 | SRC_URI = " \ | ||
| 12 | git://github.com/oracle/ktls-utils.git;nobranch=1;protocol=https \ | ||
| 13 | file://0001-tlshd-Define-ALLPERMS-if-it-doesn-t-exist-to-fix-mus.patch \ | ||
| 14 | " | ||
| 15 | |||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | inherit autotools-brokensep pkgconfig systemd | ||
| 19 | |||
| 20 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | ||
| 21 | |||
| 22 | PACKAGECONFIG[systemd] = "--with-systemd,,systemd" | ||
| 23 | |||
| 24 | SYSTEMD_SERVICE:${PN} = "tlshd.service" | ||
