Linux Container Development
 help / color / mirror / Atom feed
From: Oren Laadan <orenl@librato.com>
To: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: Linux Containers <containers@lists.osdl.org>,
	Casey Schaufler <casey@schaufler-ca.com>,
	linux-security-module@vger.kernel.org,
	Stephen Smalley <sds@epoch.ncsc.mil>,
	SELinux <selinux@tycho.nsa.gov>
Subject: Re: [PATCH 1/3] cr: add generic LSM c/r support (v4)
Date: Fri, 02 Oct 2009 18:23:27 -0400	[thread overview]
Message-ID: <4AC67D5F.2030908@librato.com> (raw)
In-Reply-To: <20091002221349.GC7446@us.ibm.com>



Serge E. Hallyn wrote:
> Quoting Oren Laadan (orenl@librato.com):
>>
>> Serge E. Hallyn wrote:
>>> (wasn't versioning the patchsets before, so randomly pick 4 as
>>> the version for this patchset...)
>>>
>>> Documentation/checkpoint/readme.txt begins:
>>> """
>>> Application checkpoint/restart is the ability to save the state
>>> of a running application so that it can later resume its execution
>>> from the time at which it was checkpointed.
>>> """
>>>

[...]

>>> +	memset(ctx->lsm_name, 0, SECURITY_NAME_MAX + 1);
>>> +	strlcpy(ctx->lsm_name, security_get_lsm_name(), SECURITY_NAME_MAX + 1);
>>> +	ret = ckpt_write_buffer(ctx, ctx->lsm_name, SECURITY_NAME_MAX + 1);
>>> +	if (ret < 0)
>>> +		return ret;
>>> +
>>> +	ret = security_checkpoint_header(ctx);
>>> +	if (ret < 0)
>>> +		return ret;
>>> +
>> This is actually a case for a 'container-global' section that would
>> appear after the header and before the rest of the image. (Would be
>> useful also for network namespaces).
> 
> But LSM's are specifically not containerized, so this is a host
> property, not a container one.

Hmmm... does that mean you can't apply one policy to one container
and another policy to another ?

Anyway, it belongs to a 'global' section, that may have 2 parts:
host and container. (Putting it between header and arch-header
seems weird...)

The header doesn't hold state, it is a declarative section about
the properties of the original host (kernel and HW).

Oren.


  reply	other threads:[~2009-10-02 22:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02  3:49 [PATCH 1/3] cr: add generic LSM c/r support (v4) Serge E. Hallyn
     [not found] ` <20091002034916.GA16871-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-02  3:51   ` [PATCH 1/1] restart: accept the lsm_name field in header and add -k flag Serge E. Hallyn
     [not found]     ` <20091002035157.GA16920-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-10-02 21:02       ` Oren Laadan
2009-10-02 20:57   ` [PATCH 1/3] cr: add generic LSM c/r support (v4) Oren Laadan
2009-10-02 22:13     ` Serge E. Hallyn
2009-10-02 22:23       ` Oren Laadan [this message]
2009-10-02 22:31         ` Serge E. Hallyn
2009-10-02  3:52 ` [PATCH 2/3] cr: add smack support to lsm c/r (v4) Serge E. Hallyn
2009-10-02  3:52 ` [PATCH 3/3] cr: add selinux support (v4) Serge E. Hallyn
2009-10-02 12:59   ` Stephen Smalley
2009-10-02 21:55     ` Serge E. Hallyn
2009-10-02 21:14   ` Oren Laadan
2009-10-02 22:05     ` Serge E. Hallyn
2009-10-02 22:14       ` Serge E. Hallyn

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=4AC67D5F.2030908@librato.com \
    --to=orenl@librato.com \
    --cc=casey@schaufler-ca.com \
    --cc=containers@lists.osdl.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=sds@epoch.ncsc.mil \
    --cc=selinux@tycho.nsa.gov \
    --cc=serue@us.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox