From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 20064 invoked from network); 13 Jun 2021 00:19:34 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2021 00:19:34 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 1ess; Sat Jun 12 19:38:18 -0400 2021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1623540692; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=/GN5k/2voyAnIUBFpo6EOleR8IOrFwVHy1GL3TbvGEs=; b=ZrwkEvCQi044vlqSwMPapsiY9DKB4A4bVWGxWC8+F6fTqon2Pb6046wwMkhuEc4nrbszMd j+5ksVbQbeRdeaU0gr0f0wJEtNiNIX9am1PNcO0unWXY0FqMMP6FKYpMPvzLdZFrUlX22r GQ76y693QPOf3NlD8hzaSJ1ljN0TJ9E= Received: from [192.168.0.16] ( [208.38.228.1]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id 5841e33e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Sat, 12 Jun 2021 18:31:32 -0500 (CDT) To: 9front@9front.org From: Jacob Moody Message-ID: <8df1b441-8127-d25a-daa5-120be54c72f7@posixcafe.org> Date: Sat, 12 Jun 2021 18:31:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------86723603D8D63F8F6DC845B1" Content-Language: en-US List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: GPU factory high-performance optimizer Subject: [9front] [PATCH] remove /srv file reference from sam(1) and adding auth* function information to 9p(2) Reply-To: 9front@9front.org Precedence: bulk This is a multi-part message in MIME format. --------------86723603D8D63F8F6DC845B1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello, I have two quick man page patches. The first removes the references to the now deleted /srv command file used by sam from the man pages. The other documents that auth* helper functions within lib9p in 9p(2) Thanks, moody --------------86723603D8D63F8F6DC845B1 Content-Type: multipart/mixed; boundary="upas-zhdozzserwhxcgwmeuvhfgioof" Content-Disposition: inline This is a multi-part message in MIME format. --upas-zhdozzserwhxcgwmeuvhfgioof Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit from postmaster@1ess: The following attachment had content that we can't prove to be harmless. To avoid possible automatic execution, we changed the content headers. The original header was: Content-Type: text/x-patch; charset=UTF-8; name="samnosrvman.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="samnosrvman.patch" --upas-zhdozzserwhxcgwmeuvhfgioof Content-Type: application/octet-stream Content-Disposition: attachment; filename="samnosrvman.patch.suspect" From dc31d1c0ac4200541781655434f16899cbf31b67 From: Jacob Moody Date: Sat, 12 Jun 2021 18:44:17 +0000 Subject: [PATCH] sam: remove refrence to /srv file in man page --- diff c12e49ecbf4ae7933b13d592543c9f7c7dc03581 dc31d1c0ac4200541781655434f16899cbf31b67 --- a/sys/man/1/sam Sat Jun 12 13:03:26 2021 +++ b/sys/man/1/sam Sat Jun 12 13:44:17 2021 @@ -854,22 +854,13 @@ listens to the .B edit plumb port. -If plumbing is not active, -on invocation -.I sam -creates a named pipe -.BI /srv/sam. user -which acts as an additional source of commands. Characters written to -the named pipe are treated as if they had been typed in the command window. .PP .I B is a shell command that sends the named .IR files -to the edit port of the plumber. -If plumbing is not available, -it attempts to load -.IR files -through the named pipe. +to the +.B edit +port of the plumber. .SS Abnormal termination If .I sam --upas-zhdozzserwhxcgwmeuvhfgioof-- --------------86723603D8D63F8F6DC845B1 Content-Type: multipart/mixed; boundary="upas-nifciinyvuvwfuxkjcmbsxxrju" Content-Disposition: inline This is a multi-part message in MIME format. --upas-nifciinyvuvwfuxkjcmbsxxrju Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit from postmaster@1ess: The following attachment had content that we can't prove to be harmless. To avoid possible automatic execution, we changed the content headers. The original header was: Content-Type: text/x-patch; charset=UTF-8; name="lib9pauth.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lib9pauth.patch" --upas-nifciinyvuvwfuxkjcmbsxxrju Content-Type: application/octet-stream Content-Disposition: attachment; filename="lib9pauth.patch.suspect" From fd39176c0d7472347b9b50f178b05ede21a56001 From: Jacob Moody Date: Sat, 12 Jun 2021 23:12:41 +0000 Subject: [PATCH] lib9p: add auth* functions to man page --- diff c12e49ecbf4ae7933b13d592543c9f7c7dc03581 fd39176c0d7472347b9b50f178b05ede21a56001 --- a/sys/man/2/9p Sat Jun 12 13:03:26 2021 +++ b/sys/man/2/9p Sat Jun 12 18:12:41 2021 @@ -14,7 +14,7 @@ readstr, respond, responderror, -srv +srv, srvacquire, srvforker, srvrelease, @@ -23,7 +23,11 @@ threadpostsharesrv, threadpostsrv, threadsrv, -threadsrvforker - 9P file service +threadsrvforker, +auth9p, +authattach, +authread, +authwrite \- 9P file service .SH SYNOPSIS .ft L .nf @@ -114,6 +118,15 @@ .ft L extern int chatty9p; .fi +.PP +.nf +.ft L +.ta \w'\fLvoid* 'u +void auth9p(Req *r); +int authattach(Req *r); +void authread(Req *r); +void authwrite(Req *r); +.fi .SH DESCRIPTION The function .I srv @@ -813,6 +826,40 @@ (see .IR exits (2)). .PD +.PP +.I Auth9p, +.I authattach, +.I authwrite, +and +.I authread +are functions to assist in the creation of authenticated +file servers. +.I Auth9p +sets +.I afid +to point to +.B /mnt/factotum/rpc +then calls +.I respond. +It can be used as the +.I auth +service function address. +.I Authattach +will return 0 if the session has properly +authenticated or will return -1 and +call +.I respond +with an apropiate error. +.I Authread +and +.I authwrite +can be called from the +.I read +and +.I write +service functions respectfully to handle +calls on the +.I afid. .PP If the .B chatty9p --upas-nifciinyvuvwfuxkjcmbsxxrju-- --------------86723603D8D63F8F6DC845B1--