Skip to content

feat(logger): write logs to /var/log/biopass#111

Open
phucvinh57 wants to merge 1 commit into
fix/ignore-service-inputfrom
feat/logger
Open

feat(logger): write logs to /var/log/biopass#111
phucvinh57 wants to merge 1 commit into
fix/ignore-service-inputfrom
feat/logger

Conversation

@phucvinh57

Copy link
Copy Markdown
Member

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b0bb0dc6ff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread auth/pam/helper.cc
Comment on lines +50 to +52
std::filesystem::create_directories(log_path);

auto logger = spdlog::daily_logger_mt("biopass", log_path + "/biopass.log", 0, 0, false, 30);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restrict permissions on per-user PAM logs

When the PAM helper runs as root and debug logging is enabled, create_directories and the daily file sink inherit the process umask (commonly 022), so /var/log/biopass/<username> can be 0755 and the daily log 0644. Those logs include biometric-auth details such as face match scores, spoofing decisions, camera/device paths, and enrolled image paths, which makes another local user able to read a user's authentication telemetry; set restrictive directory/file permissions (or a temporary umask/chmod) before opening the sink.

Useful? React with 👍 / 👎.

@phucvinh57 phucvinh57 linked an issue Jun 7, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write logs to a file

1 participant