Fully verify comp_req__log__file_descriptor_flags (File Descriptor Flags)

オープン 初心者向け
#498 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
43

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-score/logging のほかの issue

eclipse-score/logging の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。