From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH/RFC v3] Introduce xdg types
Date: Tue, 15 Nov 2011 09:23:08 -0500 [thread overview]
Message-ID: <4EC275CC.8010307@tresys.com> (raw)
In-Reply-To: <20111115073337.GA28333@siphos.be>
On 11/15/11 02:33, Sven Vermeulen wrote:
> On Mon, Nov 14, 2011 at 03:35:20PM -0500, Christopher J. PeBenito wrote:
>>> (1.) Enhance userdom_user_home_dir_filetrans with a fourth argument
>>> (filename) and use that in its filetrans_pattern() call
>>> (2.) Enhance xdg.if with the xdg_*_home_filetrans statements that accomplish
>>> something like
>>> userdom_user_home_dir_filetrans($1, xdg_cache_home_t, dir, ".cache")
>>> for the xdg_cache_home_filetrans (others very related)
>>
>> These two are fine. I've attached my working patch for interfaces with optional
>> parameters to support name filetrans. I'm trying to decide (with CIL in mind)
>> if we really want interfaces with optional parameters.
>
> As opposed to different interface names? Like using a _named_filetrans:
> userdom_user_home_dir_filetrans versus
> userdom_user_home_dir_named_filetrans (just a hypothetical example) ?
Yes.
> I'm okay with either. If you were to allow optional parameters, you probably
> will end up with at most one optional parameter (if you have two, how would
> you allow having the second one set but not the first).
I don't have a compelling argument either way. I suspect that if we did go the optional parameter route, the refpolicy->CIL compiler would have to convert optional parameter interfaces into to two CIL macros with different names anyway.
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
next prev parent reply other threads:[~2011-11-15 14:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-13 14:06 [refpolicy] [PATCH/RFC v3] Introduce xdg types Sven Vermeulen
2011-11-13 20:33 ` Sven Vermeulen
2011-11-14 20:35 ` Christopher J. PeBenito
2011-11-15 7:33 ` Sven Vermeulen
2011-11-15 14:23 ` Christopher J. PeBenito [this message]
2012-05-01 7:31 ` Sven Vermeulen
2012-05-10 13:57 ` Christopher J. PeBenito
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=4EC275CC.8010307@tresys.com \
--to=cpebenito@tresys.com \
--cc=refpolicy@oss.tresys.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 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.