OpenShift Container Platform 4.4 安装
KMOD_CONTAINER_BUILD_FILE=Dockerfile.rhel KMOD_SOFTWARE_VERSION=dd1a7d4 KMOD_NAMES="simple-kmod simple-procfs-kmod" 7. 为您的内核模块创建一个 kmods-via-containers@.service 实例(在这个示例中是 simple- kmod )并启用它: $ sudo make 2020-01-12 23:49:49 EST; 5s ago... 9. 要确认载入了内核模块,请使用 lsmod 命令列出模块: $ lsmod | grep simple_ simple_procfs_kmod 16384 0 simple_kmod 16384 0 10. simple-kmod 示例还有几个其它方法来测试它是否可以正常工作。使用 dmesg 761332] Hello world from simple_kmod. 在 /proc 中检查 simple-procfs-kmod 的值: 第 第 3 章 章 安装配置 安装配置 11 $ sudo cat /proc/simple-procfs-kmod simple-procfs-kmod number = 0 运行 spkut 命令从模块中获取更多信息: $ sudo spkut 440 码力 | 40 页 | 468.04 KB | 1 年前3OpenShift Container Platform 4.12 专用硬件和驱动程序启用
/lib/modules/${KVER}/simple-kmod.ko /lib/modules/${KVER}/ COPY --from=builder /lib/modules/${KVER}/simple-procfs-kmod.ko /lib/modules/${KVER}/ RUN depmod ${KVER} strategy: dockerStrategy: buildArgs: "-v", "-a" , "simple-kmod", "simple-procfs-kmod"] preStop: exec: command: ["modprobe", "-r", "-a" , "simple-kmod", "simple-procfs-kmod"] securityContext: 40s $ oc exec -it pod/simple-kmod-driver-container-p45cc -- lsmod | grep simple simple_procfs_kmod 16384 0 simple_kmod 16384 0 第 第 2 章 章 驱动 驱动程序工具包 程序工具包 9 第 3 章 NODE FEATURE0 码力 | 54 页 | 591.48 KB | 1 年前3OpenShift Container Platform 4.10 专用硬件和驱动程序启用
40s $ oc exec -it pod/simple-kmod-driver-container-p45cc -- lsmod | grep simple simple_procfs_kmod 16384 0 simple_kmod 16384 0 第 第 2 章 章 驱动 驱动程序工具包 程序工具包 9 第 3 章 特殊资源 OPERATOR kind: Values apiVersion: sro.openshift.io/v1beta1 kmodNames: ["simple-kmod", "simple-procfs-kmod"] buildArgs: - name: "KMODVER" value: "SRO" driverContainer: source: simple-kmod -it pod/simple-kmod-driver-container-12813789169ac0ee-mjsnh -- lsmod | grep simple simple_procfs_kmod 16384 0 simple_kmod 16384 0 OpenShift Container Platform 4.10 专 专用硬件和 用硬件和驱动0 码力 | 36 页 | 360.64 KB | 1 年前3云原生安全威胁分析与能力建设白皮书(来源:中国联通研究院)
感文件或目录挂载到容器内 部 , 将 会 导 致 容 器 逃 逸 风 险 。 例 如 Docker Socket 套 接 字 文 件 (/var/run/docker.sock)、宿主机的 procfs 文件等敏感文件。 程序漏洞导致的容器逃逸:参与到容器生态中的服务端、客户端程序自身存 在的漏洞都可能导致容器逃逸的风险,例如 CVE-2019-5736 漏洞。 2.3.3 拒绝服务攻击0 码力 | 72 页 | 2.44 MB | 1 年前3OpenShift Container Platform 4.7 安装
world" 信息: 输出示例 出示例 在 /proc 中检查 simple-procfs-kmod 的值: KMOD_CONTAINER_BUILD_FILE=Dockerfile.rhel KMOD_SOFTWARE_VERSION=dd1a7d4 KMOD_NAMES="simple-kmod simple-procfs-kmod" $ sudo make install $ sudo kmods-via-containers grep simple_ simple_procfs_kmod 16384 0 simple_kmod 16384 0 $ dmesg | grep 'Hello world' [ 6420.761332] Hello world from simple_kmod. $ sudo cat /proc/simple-procfs-kmod OpenShift Container 钥。对于这两种方式,simple-kmod 服务示例都会创建一个 systemd 单元文件,它需要一个 kmods-via- containers@simple-kmod.service 注意 注意 simple-procfs-kmod number = 0 $ sudo spkut 44 KVC: wrapper simple-kmod for 4.18.0-147.3.1.el8_1.x86_64 Running0 码力 | 2276 页 | 23.68 MB | 1 年前3OpenShift Container Platform 4.8 安装
KMOD_CONTAINER_BUILD_FILE=Dockerfile.rhel KMOD_SOFTWARE_VERSION=dd1a7d4 KMOD_NAMES="simple-kmod simple-procfs-kmod" $ sudo make install $ sudo kmods-via-containers build simple-kmod $(uname -r) $ sudo systemctl lsmod | grep simple_ simple_procfs_kmod 16384 0 simple_kmod 16384 0 $ dmesg | grep 'Hello world' 第 第 17 章 章 安装配置 安装配置 2549 输出示例 出示例 在 /proc 中检查 simple-procfs-kmod 的值: 输出示例 出示例 运行 spkut 对象一起打包,您可以在安装时或通过 Machine Config [ 6420.761332] Hello world from simple_kmod. $ sudo cat /proc/simple-procfs-kmod simple-procfs-kmod number = 0 $ sudo spkut 44 KVC: wrapper simple-kmod for 4.18.0-147.3.1.el8_1.x86_640 码力 | 2586 页 | 27.37 MB | 1 年前3OpenShift Container Platform 4.10 安装
KMOD_CONTAINER_BUILD_FILE=Dockerfile.rhel KMOD_SOFTWARE_VERSION=dd1a7d4 KMOD_NAMES="simple-kmod simple-procfs-kmod" $ sudo make install $ sudo kmods-via-containers build simple-kmod $(uname -r) $ sudo systemctl simple_ simple_procfs_kmod 16384 0 simple_kmod 16384 0 OpenShift Container Platform 4.10 安装 安装 3106 使用 dmesg 在内核环缓冲中查找 "Hello world" 信息: 输 输出示例 出示例 检查 /proc 中的 simple-procfs-kmod 值: 输 grep 'Hello world' [ 6420.761332] Hello world from simple_kmod. $ sudo cat /proc/simple-procfs-kmod simple-procfs-kmod number = 0 $ sudo spkut 44 KVC: wrapper simple-kmod for 4.18.0-147.3.1.el8_1.x86_640 码力 | 3142 页 | 33.42 MB | 1 年前3OpenShift Container Platform 4.14 安装
KMOD_CONTAINER_BUILD_FILE=Dockerfile.rhel KMOD_SOFTWARE_VERSION=dd1a7d4 KMOD_NAMES="simple-kmod simple-procfs-kmod" 第 第 24 章 章 安装配置 安装配置 3823 9. 启 启用 用 kmods-via-containers@.service 实 实例: Active: active (exited) since Sun 2020-01-12 23:49:49 EST; 5s ago... $ lsmod | grep simple_ simple_procfs_kmod 16384 0 simple_kmod 16384 0 OpenShift Container Platform 4.14 安装 安装 3824 world" 信息: 信息: 输 输出示例 出示例 检查 检查 /proc 中的 中的 simple-procfs-kmod 值 值: : 输 输出示例 出示例 运 运行 行 spkut 命令从模 命令从模块 块中0 码力 | 3881 页 | 39.03 MB | 1 年前3OpenShift Container Platform 4.13 安装
KMOD_CONTAINER_BUILD_FILE=Dockerfile.rhel KMOD_SOFTWARE_VERSION=dd1a7d4 KMOD_NAMES="simple-kmod simple-procfs-kmod" OpenShift Container Platform 4.13 安装 安装 4582 9. 启 启用 用 kmods-via-containers@ Active: active (exited) since Sun 2020-01-12 23:49:49 EST; 5s ago... $ lsmod | grep simple_ simple_procfs_kmod 16384 0 simple_kmod 16384 0 第 第 27 章 章 安装配置 安装配置 4583 12. 可 可选 world" 信息: 信息: 输 输出示例 出示例 检查 检查 /proc 中的 中的 simple-procfs-kmod 值 值: : 输 输出示例 出示例 运 运行 行 spkut 命令从模 命令从模块 块中0 码力 | 4634 页 | 43.96 MB | 1 年前3
共 9 条
- 1