All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rlandley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
To: Nicolas Bourbaki
	<ncl.bourbaki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: PROBLEM: LXC Container, CIFS and Kerberos isolation issue
Date: Thu, 3 Feb 2011 11:44:59 -0600	[thread overview]
Message-ID: <4D4AE99B.8030500@parallels.com> (raw)
In-Reply-To: <AANLkTin8r7j2XYG5JvsAd7KVcGAW0SwW3yhQfa0LeJXa-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

cc:ing the containers list for tracking purposes...

On 02/03/2011 07:56 AM, Nicolas Bourbaki wrote:
> Hi,
> 
> I've got a problem with LXC, CIFS and Kerberos. Sorry if you're not
> the person concerned by this but I've seen you submited a patch about
> LXC and CIFS mounts recently
> 
> 
> Here is my bug report :
> 
> 
> -----------------------------------------------------------------------------------------------------------------------------
> [1.] Summary
> Kerberos credential are taken from the host context when using
> mount.cifs in an lxc container

Yeah, not surprised there's more to do there.  I only had one very
simple test case, and I stopped when I made that work.

I'm happy to fix it, the question is how do I set up a kerberos
authentication test case?  (I'm not very experienced at setting up
samba, I'm more a developer than a sysadmin.)  A quick rummage found:

  https://help.ubuntu.com/community/Samba/Kerberos

Which presumably explains it.  I'll go read that...

> [2.] Description
> When using kerberos as system authentication for CIFS, mount fails in
> an LXC container. We need to have the kerberos ticket ans keyutils in
> the host to have it works. So it seem's that there is an isolation
> problem for this particular configuration.
> 
> [2.1] Scenario 1: Host is minimalist, container fully configured
> (kerberos, CIFS, credentials, ...)
> #mount.cifs '//some-server/some-directory' /mnt -o
> iocharset=utf8,rw,sec=krb5i,user=foo
> mount error(2): No such file or directory
> 
> [2.2] Scenario 2: Host has keyutils package (ubuntu) installed but no
> credentials, container fully configured (kerberos, CIFS, credentials,
> ...)
> #mount.cifs '//some-server/some-directory' /mnt -o
> iocharset=utf8,rw,sec=krb5i,user=foo
> mount error(126): Required key not available
>
> [2.3] Scenario 3: Host has keyutils package (ubuntu) installed and
> kerberos credentials, container fully configured (kerberos, CIFS,
> credentials, ...)
> #mount.cifs '//some-server/some-directory' /mnt -o
> iocharset=utf8,rw,sec=krb5i,user=foo
> Succes !

Should be fairly straightforward to fix, I just need to set up the test
case...

> -----------------
> lxc version: 0.7.2
> -----------------
> ii  krb5-config                           2.2
>       Configuration files for Kerberos Version 5
> ii  libgssapi-krb5-2                      1.8.1+dfsg-5ubuntu0.2
>       MIT Kerberos runtime libraries - krb5 GSS-API Mechanism
> ii  libkrb5-26-heimdal                    1.4.0~git20100605.dfsg.1-2
>       Heimdal Kerberos - libraries
> ii  libkrb5-3                             1.8.1+dfsg-5ubuntu0.2
>       MIT Kerberos runtime libraries
> ii  libkrb5support0                       1.8.1+dfsg-5ubuntu0.2
>       MIT Kerberos runtime libraries - Support library
> ii  cifs-utils                            2:4.5-2
>       Common Internet File System utilities

Ok.

Thanks,

Rob

       reply	other threads:[~2011-02-03 17:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTin8r7j2XYG5JvsAd7KVcGAW0SwW3yhQfa0LeJXa@mail.gmail.com>
     [not found] ` <AANLkTin8r7j2XYG5JvsAd7KVcGAW0SwW3yhQfa0LeJXa-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-03 17:44   ` Rob Landley [this message]
     [not found]     ` <4D4AE99B.8030500-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2011-02-04  8:37       ` PROBLEM: LXC Container, CIFS and Kerberos isolation issue Nicolas Bourbaki
     [not found]         ` <AANLkTi=Napxox2UKCfeBD2OYs+7GS__CQKgcfop5FEet-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-04 20:36           ` Rob Landley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D4AE99B.8030500@parallels.com \
    --to=rlandley-bzqdu9zft3wakbo8gow8eq@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=ncl.bourbaki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.