-
Notifications
You must be signed in to change notification settings - Fork 63
[next] Implement foundational changes for NILRT Device Encryption #977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: nilrt/master/next
Are you sure you want to change the base?
Changes from 12 commits
a49f85f
c5926be
9ba2c52
72d8278
acf44e4
c2f1c1c
2c5a9f2
2c307a8
cfc4a78
24bd889
e606869
41e4d7c
c9e7ea5
cfabb7a
c9e0de9
a6f50ac
88cfe40
26347ac
652c60c
3ee544a
24bc292
d29db46
8b4a3ea
ebd6832
478655a
9d60fb9
2eba478
1eff31f
6d06b0e
154e4c0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1072,6 +1072,7 @@ CONFIG_HWMON_VID=m | |
| CONFIG_HWPOISON_INJECT=m | ||
| CONFIG_HW_RANDOM_BA431=m | ||
| CONFIG_HW_RANDOM_TIMERIOMEM=m | ||
| CONFIG_HW_RANDOM_TPM=m | ||
| CONFIG_HW_RANDOM_XIPHERA=m | ||
| CONFIG_HX711=m | ||
| CONFIG_HYPERV_VSOCKETS=m | ||
|
|
@@ -1083,8 +1084,10 @@ CONFIG_I2C_AMD756=m | |
| CONFIG_I2C_AMD756_S4882=m | ||
| CONFIG_I2C_AMD8111=m | ||
| CONFIG_I2C_AMD_MP2=m | ||
| CONFIG_I2C_BOARDINFO=m | ||
| CONFIG_I2C_CBUS_GPIO=m | ||
| CONFIG_I2C_CHT_WC=m | ||
| CONFIG_I2C_COMPAT=m | ||
| CONFIG_I2C_CP2615=m | ||
| CONFIG_I2C_CROS_EC_TUNNEL=m | ||
| CONFIG_I2C_DIOLAN_U2C=m | ||
|
|
@@ -2460,6 +2463,7 @@ CONFIG_RDS_RDMA=m | |
| CONFIG_RDS_TCP=m | ||
| CONFIG_REALTEK_PHY=m | ||
| CONFIG_REED_SOLOMON=m | ||
| CONFIG_REGMAP_I2C=m | ||
| CONFIG_REGMAP_I3C=m | ||
| CONFIG_REGMAP_SCCB=m | ||
| CONFIG_REGMAP_SLIMBUS=m | ||
|
|
@@ -2510,6 +2514,7 @@ CONFIG_RT2800_LIB_MMIO=m | |
| CONFIG_RT2X00_LIB_MMIO=m | ||
| CONFIG_RT2X00_LIB_PCI=m | ||
| CONFIG_RT61PCI=m | ||
| CONFIG_RTC_I2C_AND_SPI=m | ||
| CONFIG_RTL8180=m | ||
| CONFIG_RTL8188EE=m | ||
| CONFIG_RTL8192CE=m | ||
|
|
@@ -2656,6 +2661,7 @@ CONFIG_SCSI_WD719X=m | |
| CONFIG_SDIO_UART=m | ||
| CONFIG_SDR_MAX2175=m | ||
| CONFIG_SD_ADC_MODULATOR=m | ||
| CONFIG_SECURITYFS=m | ||
| CONFIG_SEL3350_PLATFORM=m | ||
| CONFIG_SENSEAIR_SUNRISE_CO2=m | ||
| CONFIG_SENSIRION_SGP30=m | ||
|
|
@@ -3065,8 +3071,11 @@ CONFIG_TAHVO_USB=m | |
| CONFIG_TAP=m | ||
| CONFIG_TARGET_CORE=m | ||
| CONFIG_TCG_ATMEL=m | ||
| CONFIG_TCG_CRB=m | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as #957 we don't need CONFIG_TCG_CRB, CONFIG_TCG_TIS, CONFIG_TCG_TIS_CORE, CONFIG_TCG_TPM
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a commit from a later patchset that I will backport to fix this. But honestly, I'm considering just implementing the allmoddefconfig task that we discussed offline. |
||
| CONFIG_TCG_INFINEON=m | ||
| CONFIG_TCG_NSC=m | ||
| CONFIG_TCG_TIS=m | ||
| CONFIG_TCG_TIS_CORE=m | ||
| CONFIG_TCG_TIS_I2C=m | ||
| CONFIG_TCG_TIS_I2C_ATMEL=m | ||
| CONFIG_TCG_TIS_I2C_CR50=m | ||
|
|
@@ -3076,6 +3085,7 @@ CONFIG_TCG_TIS_SPI=m | |
| CONFIG_TCG_TIS_ST33ZP24=m | ||
| CONFIG_TCG_TIS_ST33ZP24_I2C=m | ||
| CONFIG_TCG_TIS_ST33ZP24_SPI=m | ||
| CONFIG_TCG_TPM=m | ||
| CONFIG_TCG_VTPM_PROXY=m | ||
| CONFIG_TCG_XEN=m | ||
| CONFIG_TCM_FC=m | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| SUMMARY = "Clevis - Automated Encryption Framework" | ||
| DESCRIPTION = "Clevis is a pluggable framework for automated decryption. It \ | ||
| can be used to provide automated decryption of data or even automated \ | ||
| unlocking of LUKS volumes." | ||
| HOMEPAGE = "https://github.com/latchset/clevis" | ||
| SECTION = "security" | ||
| LICENSE = "GPL-3.0-or-later" | ||
| LIC_FILES_CHKSUM = "\ | ||
| file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
| file://COPYING.openssl;md5=a78c00d154a43f35ef1dc1292a234c6d \ | ||
| " | ||
|
|
||
|
|
||
| DEPENDS = "\ | ||
| cryptsetup \ | ||
| cryptsetup-native \ | ||
| jansson \ | ||
| jose \ | ||
| keyutils-native \ | ||
| " | ||
|
|
||
| SRC_URI = "\ | ||
| https://github.com/latchset/clevis/releases/download/v${PV}/${BP}.tar.xz \ | ||
| " | ||
| SRC_URI[sha256sum] = "a0388a544c77139dc751cdbf66bdd38fc29c43f9e81a1cdfd119c84109ffca3f" | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # BBCLASSES | ||
| # ============================================================================== | ||
|
|
||
| # CONFIGURATION AND BUILD | ||
| inherit meson pkgconfig | ||
|
|
||
| PACKAGECONFIG ??= "" | ||
| PACKAGECONFIG[docs] = ",, asciidoc-native" | ||
| PACKAGECONFIG[dracut] = ",, dracut, dracut" | ||
| PACKAGECONFIG[luks] = ",, luksmeta, cryptsetup jq" | ||
| PACKAGECONFIG[pkcs11] = ",, opensc-native, opensc" | ||
| PACKAGECONFIG[tpm2] = ",, tpm2-tools-native, tpm2-tools" | ||
| # TODO: Add support for systemd systems. | ||
| # initramfs-tools integration intentionally skipped due to no-support in OE. | ||
|
|
||
|
|
||
| inherit bash-completion | ||
|
|
||
|
|
||
| # PTESTING | ||
|
|
||
| inherit ptest | ||
|
|
||
| do_install_ptest () { | ||
| install -d ${D}${PTEST_PATH} | ||
| install -m 0744 ${S}/src/luks/tests/* ${D}${PTEST_PATH} | ||
| # TODO: more tests | ||
| } | ||
|
|
||
| RDEPENDS:${PN}-ptest += " bash cryptsetup" | ||
| RRECOMMENDS:${PN}-ptest += " jq keyutils" | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # PACKAGING | ||
| # ============================================================================== | ||
| # clevis | ||
| FILES:${PN} += " ${libdir}/dracut/*" | ||
| RDEPENDS:${PN} += " bash tpm2-tools" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| PACKAGECONFIG = "docs dracut luks pkcs11 tpm2" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| SUMMARY = "Jose - C-language implementation of Javascript Object Signing and \ | ||
| Encryption" | ||
| DESCRIPTION = "José is a C-language implementation of the Javascript Object \ | ||
| Signing and Encryption standards. Specifically. José is extensively tested \ | ||
| against the RFC test vectors." | ||
| HOMEPAGE = "https://github.com/latchset/jose" | ||
| SECTION = "security" | ||
| LICENSE = "Apache-2.0" | ||
| LIC_FILES_CHKSUM = "\ | ||
| file://COPYING;md5=34400b68072d710fecd0a2940a0d1658 \ | ||
| " | ||
|
|
||
| DEPENDS = "\ | ||
| openssl \ | ||
| jansson \ | ||
| zlib \ | ||
| " | ||
|
|
||
|
|
||
| SRC_URI = "\ | ||
| https://github.com/latchset/jose/releases/download/v14/jose-14.tar.xz \ | ||
| " | ||
| SRC_URI[sha256sum] = "cee329ef9fce97c4c025604a8d237092f619aaa9f6d35fdf9d8c9052bc1ff95b" | ||
|
|
||
|
|
||
| # ============================================================================== | ||
| # BBCLASSES | ||
| # ============================================================================== | ||
|
|
||
| inherit meson pkgconfig | ||
|
|
||
|
|
||
| BBCLASSEXTEND = "native" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| SUMMARY = "LUKSMeta" | ||
| DESCRIPTION = "Welcome to LUKSMeta! LUKSMeta is a simple library for storing \ | ||
| metadata in the LUKSv1 header. This library is licensed under the GNU LGPLv2+." | ||
| HOMEPAGE = "https://github.com/latchset/luksmeta" | ||
| SECTION = "security" | ||
| LICENSE = "LGPL-2.1-or-later" | ||
| LIC_FILES_CHKSUM = "\ | ||
| file://COPYING;md5=4e9dfcb21c14eb0c40ae8ba436d3bb7a \ | ||
| " | ||
|
|
||
| DEPENDS = "\ | ||
| cryptsetup \ | ||
| " | ||
|
|
||
|
|
||
| SRC_URI = "\ | ||
| https://github.com/latchset/luksmeta/releases/download/v10/luksmeta-10.tar.bz2 \ | ||
| " | ||
| SRC_URI[sha256sum] = "a842538ba39680c8319c41dac0bcc082fe40fb43342561761925c0daa1a48f28" | ||
|
|
||
|
|
||
| inherit autotools pkgconfig | ||
|
|
||
| # ============================================================================== | ||
| # PACKAGING | ||
| # ============================================================================== | ||
|
|
||
|
|
||
| BBCLASSEXTEND = "native" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: not sorted. Maybe break out tpm related packages into their own
RDEPENDS:${PN}:append:x64section if we want to keep them together?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It gets fixed up by the final commit in the patchset. These items are moved into
packagegroup-ni-tpm.