[Feature Request] daemon sighup support

オープン
#1,602 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
linux, python

調査の方向性

まず、daemon の SIGHUP またはシグナル処理のエントリポイントと、設定読み込みの経路を特定します。設定の再読み込みで保護機構と長期間維持されるホスト名接続を保持する方法を確認し、次に daemon が完全な再起動なしに再読み込みされ、既存の接続が許可されたホスト名を保持することを検証します。

索引モデルが issue の本文から書いたものです。

説明

feature

I have not found a similar issue/request

Summary:

It is a common feature in *nix daemons that a SIGHUP message sent to a service will cause the service to reload all configurations with zero (or near-zero) downtime. Currently the only option we have is to restart the service completely - but this means that the "protections" available from the service are temporarily unavailable.

Reason for noticing:

I've been crafting rules and finding that they didn't quite work or aren't loaded properly unless I restart the daemon completely. This is partly my own fault for having bad rules - but also it does highlight how fragile the service can be.

Other consequences

This also highlights an issue with existing long-lived connections to hostname destinations, where the link between the IP and the "allowed hostname" is forgotten. When the service restarts, these destinations are only recognised as IP addresses instead of their full hostnames. So when Steam happens to connect to "api.steampowered.com" that was allowed ; but after the restart, the connection to that same host 23.52.28.42 no longer links to that allowed hostname and gets blocked. I'm not sure if I should file a separate feature request for that. It is already two feature requests in quick succession so far from me. :-)

主要言語
Python
スター
14.3k
フォーク
689
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

evilsocket/opensnitch のほかの issue

evilsocket/opensnitch の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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