All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Daniel De Graaf <dgdegra@tycho.nsa.gov>, selinux@tycho.nsa.gov
Cc: xen-devel@lists.xenproject.org
Subject: Re: [Xen-devel] [PATCH 2/4] Add device tree ocontext nodes to Xen policy
Date: Thu, 12 Mar 2015 18:04:20 +0000	[thread overview]
Message-ID: <5501D524.8080402@linaro.org> (raw)
In-Reply-To: <5501CD9E.4020805@tycho.nsa.gov>

On 12/03/15 17:32, Daniel De Graaf wrote:
> On 03/12/2015 01:27 PM, Julien Grall wrote:
>> Hi Daniel,
>>
>> On 12/03/15 17:12, Daniel De Graaf wrote:
>>>                   ;
>>> +dtree_context_def    : DEVICETREECON path security_context_def
>>> +                {if (define_devicetree_context()) return -1;}
>>> +                ;
>>
>> The regex for matching the device tree path is different from a path.
>>
>> the pathname convention is:
>>
>> node-name@unit-address
>>
>> The characters allowed for node-name/unit-name are:
>>     0-9 a-z A-Z , . _ + -
>>
>> Although the @unit-address may be ommitted.
>>
>> So the regex should be something like:
>> "/"({alnum}|['\._\+\-@])*
> 
> This is addressed in patch 4, where a quoted version of the path
> expression is added which allows these characters (and others).

Right sorry for the noise.

Regards,

-- 
Julien Grall

WARNING: multiple messages have this Message-ID (diff)
From: Julien Grall <julien.grall@linaro.org>
To: Daniel De Graaf <dgdegra@tycho.nsa.gov>, selinux@tycho.nsa.gov
Cc: xen-devel@lists.xenproject.org
Subject: Re: [PATCH 2/4] Add device tree ocontext nodes to Xen policy
Date: Thu, 12 Mar 2015 18:04:20 +0000	[thread overview]
Message-ID: <5501D524.8080402@linaro.org> (raw)
In-Reply-To: <5501CD9E.4020805@tycho.nsa.gov>

On 12/03/15 17:32, Daniel De Graaf wrote:
> On 03/12/2015 01:27 PM, Julien Grall wrote:
>> Hi Daniel,
>>
>> On 12/03/15 17:12, Daniel De Graaf wrote:
>>>                   ;
>>> +dtree_context_def    : DEVICETREECON path security_context_def
>>> +                {if (define_devicetree_context()) return -1;}
>>> +                ;
>>
>> The regex for matching the device tree path is different from a path.
>>
>> the pathname convention is:
>>
>> node-name@unit-address
>>
>> The characters allowed for node-name/unit-name are:
>>     0-9 a-z A-Z , . _ + -
>>
>> Although the @unit-address may be ommitted.
>>
>> So the regex should be something like:
>> "/"({alnum}|['\._\+\-@])*
> 
> This is addressed in patch 4, where a quoted version of the path
> expression is added which allows these characters (and others).

Right sorry for the noise.

Regards,

-- 
Julien Grall

  reply	other threads:[~2015-03-12 18:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 17:12 [PATCH 0/4] Xen/FLASK policy updates for device contexts Daniel De Graaf
2015-03-12 17:12 ` [PATCH 1/4] Expand Xen IOMEMCON to 64 bits Daniel De Graaf
2015-03-12 17:12   ` Daniel De Graaf
2015-03-12 17:34   ` [Xen-devel] " Julien Grall
2015-03-12 17:34     ` Julien Grall
2015-03-12 17:12 ` [PATCH 2/4] Add device tree ocontext nodes to Xen policy Daniel De Graaf
2015-03-12 17:12   ` Daniel De Graaf
2015-03-12 17:27   ` [Xen-devel] " Julien Grall
2015-03-12 17:27     ` Julien Grall
2015-03-12 17:32     ` [Xen-devel] " Daniel De Graaf
2015-03-12 17:32       ` Daniel De Graaf
2015-03-12 18:04       ` Julien Grall [this message]
2015-03-12 18:04         ` Julien Grall
2015-03-12 17:12 ` [PATCH 3/4] checkpolicy: add output for Xen policy version support Daniel De Graaf
2015-03-12 17:12   ` Daniel De Graaf
2015-03-12 17:43   ` Stephen Smalley
2015-03-12 17:43   ` Stephen Smalley
2015-03-12 17:12 ` [PATCH 4/4] checkpolicy: Expand allowed character set in paths Daniel De Graaf
2015-03-12 17:12   ` Daniel De Graaf

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=5501D524.8080402@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=xen-devel@lists.xenproject.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.