@@ -18,31 +18,24 @@ Assumed environment
* Installed packages: `docker-ce`, `qemu-system`
* Users who does the following actions must be in the groups `docker` and `kvm`
-Create kas file
----------------
-
-Create a kas file named `opt-security.yml` to add security settings.
-
-Add security packages to rootfs
--------------------------------
+Create image recipe
+-------------------
-Set `IMAGE_PREINSTALL` to the list of packages required to enable
-the security features. This variable can be set through the kas file.
+Create the recipe `recipes-core/images/cip-core-image-security.bb`
+to generate a image including required packages.
+We can install existing Debian packages by setting
+`IMAGE_PREINSTALL` in the image recipe.
Example:
-```
-local_conf_header:
- security: |
IMAGE_PREINSTALL = "openssl"
-```
Build images
------------
-Build images for QEMU x86 64bit machine:
+Build images for QEMU x86 64bit machine.
- $ ./kas-docker --isar build kas.yml:board-qemu-amd64.yml:opt-security.yml
+ $ ./kas-docker --isar build --target cip-core-image-security kas.yml:board-qemu-amd64.yml
Run on QEMU
-----------
deleted file mode 100644
@@ -1,34 +0,0 @@
-#
-# KAS configuration for CIP Core generic profile to enable security features
-#
-# Copyright (c) Toshiba Corporation, 2020
-#
-# Authors:
-# Kazuhiro Hayashi <kazuhiro3.hayashi@toshiba.co.jp>
-#
-# SPDX-License-Identifier: MIT
-#
-
-header:
- version: 8
-
-local_conf_header:
- security: |
- # TODO: Add sudo or sudo-ldap
- IMAGE_PREINSTALL = "\
- openssl libssl1.1 \
- fail2ban \
- openssh-server openssh-sftp-server openssh-client \
- syslog-ng-core syslog-ng-mod-journal \
- aide aide-common \
- libnftables0 nftables \
- libpam-pkcs11 \
- chrony \
- tpm2-tools \
- tpm2-abrmd \
- libtss2-esys0 libtss2-udev \
- libpam-cracklib \
- acl \
- libauparse0 audispd-plugins auditd \
- uuid-runtime \
- "
\ No newline at end of file
new file mode 100644
@@ -0,0 +1,37 @@