From: "Christopher J. PeBenito" <cpebenito@tresys.com>
To: Dominick Grift <dominick.grift@gmail.com>
Cc: "Moyer, Thomas - 0668 - MITLL" <thomas.moyer@ll.mit.edu>,
"selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>
Subject: Re: Question about policy module error message
Date: Wed, 24 Oct 2012 12:06:00 -0400 [thread overview]
Message-ID: <508811E8.4090704@tresys.com> (raw)
In-Reply-To: <1351025344.2774.13.camel@d30.localdomain>
On 10/23/12 16:49, Dominick Grift wrote:
>
>
> On Tue, 2012-10-23 at 16:30 -0400, Moyer, Thomas - 0668 - MITLL wrote:
>> So it turns out that the name I used it didn't like and the second name I
>> used (ui-interface) is also didn't like.
>>
>> When I tried uiInterface, things started working again. I don't know what
>> the difference is, but maybe someone can enlighten me as to why the
>> SELinux policy generation tools don't like things with hyphens in the name?
>>
>> -Tom
>>
>
> I suspect that it chokes on "interface". The hyphen might make
> ui-interface seem like ui and interface to it or so
>
> interface is used in the m4 macro's (it is a part of what makes selinux
> policy modular):
>
>> ##############################
>> #
>> # In the future interfaces should be in loadable modules
>> #
>> # interface(name,rules)
>> #
>> define(`interface',` dnl
>> ifdef(`$1',`refpolicyerr(`duplicate definition of $1(). Original definition on '$1.) define(`__if_error')',`define(`$1',__line__)') dnl
>> `define(`$1',` dnl
>> pushdef(`policy_call_depth',incr(policy_call_depth)) dnl
>> policy_m4_comment(policy_call_depth,begin `$1'(dollarsstar)) dnl
>> $2
>> popdef(`policy_call_depth') dnl
>> policy_m4_comment(policy_call_depth,end `$1'(dollarsstar)) dnl
>> '')
>> ')
>>
>
> So as long as you avoid keywords like (-)?interface(-)?, (-)?template(-)? (and maybe some others) it may work
I'll see what I can do to fix this situation. I think we should be able to adjust the refpolicy infrastructure to not have these keyword problems since the only macro we really need for processing .fc files is gen_context().
--
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2012-10-24 16:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-23 19:28 Question about policy module error message Moyer, Thomas - 0668 - MITLL
2012-10-23 19:52 ` Dominick Grift
2012-10-23 20:30 ` Moyer, Thomas - 0668 - MITLL
2012-10-23 20:49 ` Dominick Grift
2012-10-24 16:06 ` Christopher J. PeBenito [this message]
2012-10-24 13:30 ` Daniel J Walsh
2012-10-24 13:47 ` Daniel J Walsh
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=508811E8.4090704@tresys.com \
--to=cpebenito@tresys.com \
--cc=dominick.grift@gmail.com \
--cc=selinux@tycho.nsa.gov \
--cc=thomas.moyer@ll.mit.edu \
/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.