[OpenAFS] Limiting mount point to known cells

Jeffrey E Altman jaltman@auristor.com
Fri, 26 Aug 2022 22:13:53 -0400


This is a cryptographically signed message in MIME format.

--------------ms080700060202060509000703
Content-Type: multipart/alternative;
 boundary="------------P0k01Cv2W0aprnLJHufecRMN"

--------------P0k01Cv2W0aprnLJHufecRMN
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 8/26/2022 5:13 PM, Ingo van Lil (inguin@gmx.de) wrote:
> Hello OpenAFS experts,
>
> is there any way to run an AFS client with both the -dynroot and -afsdb
> options, but still limit the /afs mount point to known cells
> (specifically: only my home cell)?

There is no explicit support for this behavior in OpenAFS but you might be
able to approximate it by

  * enabling -dynroot
  * disabling -afsdb
  * removing the OpenAFS distributed CellServDB file
  * creating a CellServDB file contain only one line for the cell and no
    servers
     >my.cell # My personal cell

A cell entry with no servers is an implicit request to lookup the 
servers via DNS.
I do not remember if this works with -afsdb disabled but it might.

>
> Longer explanation of my problem:
>
> When I run "git status" somewhere inside the AFS hierarchy it freezes
> for a minute or two. git tries to access the directory /afs/.git, and I
> see that afsd sends multiple DNS requests to the loopback address
> 127.0.0.53. Not sure why it does that, it seems to be somehow related to
> systemd-resolved in Fedora Linux.
>
> Running without -dynroot solves the issue, but according to the manual
> it will keep my machine from booting in case my home cell can't be
> contacted. Not very attractive.
>
> Running without -afsdb solves the issue. That's what I do now, but it
> requires to manually specify the servers for my home cell in CellServDB.
> Ideally I'd like to get that info from DNS.
>
> Thanks in advance for any advice you can give!
>
> Regards,
> Ingo
>
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info
--------------P0k01Cv2W0aprnLJHufecRMN
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 8/26/2022 5:13 PM, Ingo van Lil (<a
        class="moz-txt-link-abbreviated moz-txt-link-freetext"
        href="mailto:inguin@gmx.de">inguin@gmx.de</a>) wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:aa7229eb-69f2-3a2c-67a0-864cbc870e6f@gmx.de">Hello
      OpenAFS experts, <br>
      <br>
      is there any way to run an AFS client with both the -dynroot and
      -afsdb <br>
      options, but still limit the /afs mount point to known cells <br>
      (specifically: only my home cell)? <br>
    </blockquote>
    <p>There is no explicit support for this behavior in OpenAFS but you
      might be<br>
      able to approximate it by</p>
    <ul>
      <li>enabling -dynroot</li>
      <li>disabling -afsdb</li>
      <li>removing the OpenAFS distributed CellServDB file</li>
      <li>creating a CellServDB file contain only one line for the cell
        and no servers<br>
        &gt;my.cell # My personal cell</li>
    </ul>
    <p>A cell entry with no servers is an implicit request to lookup the
      servers via DNS.  <br>
      I do not remember if this works with -afsdb disabled but it might.<br>
    </p>
    <blockquote type="cite"
      cite="mid:aa7229eb-69f2-3a2c-67a0-864cbc870e6f@gmx.de"> <br>
      Longer explanation of my problem: <br>
      <br>
      When I run "git status" somewhere inside the AFS hierarchy it
      freezes <br>
      for a minute or two. git tries to access the directory /afs/.git,
      and I <br>
      see that afsd sends multiple DNS requests to the loopback address
      <br>
      127.0.0.53. Not sure why it does that, it seems to be somehow
      related to <br>
      systemd-resolved in Fedora Linux. <br>
      <br>
      Running without -dynroot solves the issue, but according to the
      manual <br>
      it will keep my machine from booting in case my home cell can't be
      <br>
      contacted. Not very attractive. <br>
      <br>
      Running without -afsdb solves the issue. That's what I do now, but
      it <br>
      requires to manually specify the servers for my home cell in
      CellServDB. <br>
      Ideally I'd like to get that info from DNS. <br>
      <br>
      Thanks in advance for any advice you can give! <br>
      <br>
      Regards, <br>
      Ingo <br>
      <br>
      _______________________________________________ <br>
      OpenAFS-info mailing list <br>
      <a class="moz-txt-link-abbreviated moz-txt-link-freetext"
        href="mailto:OpenAFS-info@openafs.org">OpenAFS-info@openafs.org</a>
      <br>
      <a class="moz-txt-link-freetext"
        href="https://lists.openafs.org/mailman/listinfo/openafs-info">https://lists.openafs.org/mailman/listinfo/openafs-info</a>
      <br>
    </blockquote>
  </body>
</html>

--------------P0k01Cv2W0aprnLJHufecRMN--

--------------ms080700060202060509000703
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
DHEwggXSMIIEuqADAgECAhBAAYJpmi/rPn/F0fJyDlzMMA0GCSqGSIb3DQEBCwUAMDoxCzAJ
BgNVBAYTAlVTMRIwEAYDVQQKEwlJZGVuVHJ1c3QxFzAVBgNVBAMTDlRydXN0SUQgQ0EgQTEz
MB4XDTIyMDgwNDE2MDQ0OFoXDTI1MTAzMTE2MDM0OFowcDEvMC0GCgmSJomT8ixkAQETH0Ew
MTQxMEQwMDAwMDE4MjY5OUEyRkQyMDAwMjMzQ0QxGTAXBgNVBAMTEEplZmZyZXkgRSBBbHRt
YW4xFTATBgNVBAoTDEF1cmlTdG9yIEluYzELMAkGA1UEBhMCVVMwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQCkC7PKBBZnQqDKPtZPMLAy77zo2DPvwtGnd1hNjPvbXrpGxUb3
xHZRtv179LHKAOcsY2jIctzieMxf82OMyhpBziMPsFAG/ukihBMFj3/xEeZVso3K27pSAyyN
fO/wJ0rX7G+ges22Dd7goZul8rPaTJBIxbZDuaykJMGpNq4PQ8VPcnYZx+6b+nJwJJoJ46kI
EEfNh3UKvB/vM0qtxS690iAdgmQIhTl+qfXq4IxWB6b+3NeQxgR6KLU4P7v88/tvJTpxIKkg
9xj89ruzeThyRFd2DSe3vfdnq9+g4qJSHRXyTft6W3Lkp7UWTM4kMqOcc4VSRdufVKBQNXjG
IcnhAgMBAAGjggKcMIICmDAOBgNVHQ8BAf8EBAMCBPAwgYQ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