microsoft / microsoft/SysmonForLinux
Network Accept tracker to handle empty address
まだ誰も着手していません。
- 主要言語
- C
- スター
- 2.2k
- フォーク
- 220
- 平均マージ
- 11日 22時間
- マージ済み PR(30日)
- 2
説明
If an application calls accept() with the addr argument set to NULL, then the remote IP address and port will be set to 0. The networkTracker::seenAccept() function needs to recognise this situation and look up the details in /proc using the file descriptor. If the connection isn't in /proc then it should return true with both addresses and ports set to 0, so that the received connection is still reported, even though the addresses and ports are empty.
A further enhancement would be to track calls to bind() and store the local address and port against the file descriptor, so that in the condition where addr is NULL, the local port can be used to match against the cache of connections.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
networkTracker::seenAccept() から開始し、accept() が NULL の addr 引数をどのように処理するかを追跡します。ファイルディスクリプタによる /proc の検索と、既存の接続報告経路を調査します。/proc エントリが存在しない場合でも、接続がアドレスとポートをゼロにした状態で引き続き報告されれば完了です。オプションの bind() トラッキングは別の機能強化です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- c
- 領域
- networking
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100