Fully verify comp_req__log__file_descriptor_flags (File Descriptor Flags)

未关闭 适合新手
#498 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp
领域
testing

调研方向

先阅读 issue 中提到的 recorder 和 writer factory 测试,然后找到这些测试创建或打开文件描述符的位置。按照需求中的说明,添加验证以确保 logging 组件拥有的每个描述符都设置了 FD_CLOEXEC 标志。相关测试检查该标志并通过后,工作即告完成。

由索引模型根据 Issue 内容生成。

描述

Verification gap (Only partially tested): The linked tests only partially verify this requirement.

Field Value
Item comp_req__log__file_descriptor_flags
Title File Descriptor Flags
Component mw::log Backend (comp__mw_log_backend)
Safety ASIL_B
Status valid_inspected

Linked tests: WriterFactoryFixture__WhenTheFileExistsItShallBeUnlinked (passed), FileRecorderFactoryConfigFixture__FileConfigurionShallCallFileCreationAndReturnFileRecorder (passed)

Requirement text (from the documentation):

mw::log shall ensure that file descriptors it owns are not inherited by
processes started by the application.

.. note::
This requirement can be satisfied in unit-test, by checking
``int flags = fcntl(fd, F_GETFD); assert((flags != -1) && (flags & FD_CLOEXEC));`` for every
file descriptor owned by the component.

Found in the module verification report of eclipse-score/logging.

主要语言
C++
星标
2
派生
35
平均合并
1 天 18 小时
30 天内合并 PR
43

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

eclipse-score/logging 的其他 Issue

查看 eclipse-score/logging 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。