Fully verify comp_req__log__file_descriptor_flags (File Descriptor Flags)

Open Beginner friendly
#498 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
testing

Research direction

Start by reading the file recorder and writer factory tests named in the issue, then locate where those tests create or open file descriptors. Add verification that each descriptor owned by the logging component has the FD_CLOEXEC flag, as described in the requirement. The work is done when the relevant tests check the flag and pass.

Written by the indexing model from the issue text.

Description

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.

Dominant language
C++
Stars
2
Forks
35
Avg merge
1d 18h
Merged PRs (30d)
43

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eclipse-score/logging

All issues in eclipse-score/logging

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.