Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2011 08:32:01 -0400
From:      Christopher Hilton <chris@vindaloo.com>
To:        Alano Conraz <aconraz@gmail.com>
Subject:   Re: how to use cfs (cryptographic file system) ?
Message-ID:  <A40E160C-8CEB-4D1B-A574-E167A379BF9A@vindaloo.com>
Resent-Message-ID: <0LLC00HU7C2OC9W0@mta1.srv.hcvlny.cv.net>
In-Reply-To: <BANLkTi=A8AX5WQJXfmcTeu4-DVCzpq0HfQ@mail.gmail.com>
References:  <BANLkTik8QSoasSPpCcq8_maVhJQoJQG_RQ@mail.gmail.com> <BANLkTimw4fUVvPiYFmf_w7wfDJXmvKr8xw@mail.gmail.com> <4DC42368.3040902@exonetric.com> <BANLkTikpyP0Y=gdQsPNs9cjeek1X44S9ZQ@mail.gmail.com> <B5EF6D43-86A7-4BB0-B52B-30D6938A91B3@vindaloo.com> <BANLkTi=A8AX5WQJXfmcTeu4-DVCzpq0HfQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
No problem:

I looked up my solution to the problem because I submitted a patch to fix things. It's here (ports pr #155788):

    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/155788

After this you should be able to create an encrypted filesystem with cmkdir and attach it with cattach and detach it with cdetach.

-- Chris

On May 17, 2011, at 6:53 AM, Alano Conraz wrote:

> I tried this and it seems to work. 
> Thank you very much for your help!
> 
> Have a good day.
> 
> While still being useful cfsd is old and doesn't conform to the latest practices in nfs servers. In particular, it doesn't: use tcp, use IPv6, or do nfs v3 or later.
> 
> I changed the line in the .../rc.d/cfsd script that came with the port to the following:
> 
> mount -o port="$cfsd_port",nfsv2,udp 127.0.0.1:${cfsd_bootstrap} "$cfsd_mountpoint"
> 
> I changed the mount to use udp and nfsv2. I also coded the localhost address rather than the name. Finally, I made the bootstrap and the mountpoint controllable via configuration variables. I'm pretty sure that I sent these modifications to the cfs port maintainer as a patch to the port. I also probably included a KEYWORD: shutdown in the port to get by an annoying warning and the second startup.
> 
> -- Chris Hilton
> 
> 
> Chris Hilton                                   e: chris|at|vindaloo|dot|com
> ----------------------------------------------------------------------------
>                 "The pattern juggler lifts his hand; The orchestra begin.
>     As slowly turns the grinding wheel in the court of the crimson king."
>                                          -- Ian McDonald / Peter Sinfield
> 
> 
> 
> 

Chris Hilton                       tildeChris -- http://myblog.vindaloo.com
                                       e: -- chris /at/ vindaloo /dot/ com
.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.--.~~.
                       "I'm on the outside looking inside, What do I see?
                             Much confusion, disillusion, all around me."
                                       -- Ian McDonald / Peter Sinfield




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A40E160C-8CEB-4D1B-A574-E167A379BF9A>