From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 216.126.196.41 ([216.126.196.41]) by ur; Wed Dec 9 17:27:30 EST 2015 To: 9front@9front.org From: Matthew Veety Subject: Patch to allow listen(8) pass the remote address to the service Date: Wed, 9 Dec 2015 17:27:29 -0500 Message-ID: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shared abstract shader-oriented CSS persistence-aware frontend MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Henesy noted earlier that /sys/log/auth doesn't have the remote address listed when you get a failed auth request (cr-fail messages specifically). listen(8) didn't have the code to pass this to the process it starts, so I made a quick patch to do it. It gets the caller's address with getnetconninfo and passes it as an environment var to the service handler. If they're no objections I'll throw it in 9front. Patch: http://okturing.com/src/3328/body -- Veety