All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Moyer, Thomas - 0668 - MITLL" <thomas.moyer@ll.mit.edu>
To: Dominick Grift <dominick.grift@gmail.com>
Cc: "selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>
Subject: Re: Question about policy module error message
Date: Tue, 23 Oct 2012 16:30:48 -0400	[thread overview]
Message-ID: <CCAC7590.2211%thomas.moyer@ll.mit.edu> (raw)
In-Reply-To: <1351021973.2774.2.camel@d30.localdomain>

[-- Attachment #1: Type: text/plain, Size: 2729 bytes --]

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

-- 
Thomas Moyer, Technical Staff		voice: (781) 981-1374
Cyber Systems Technology Group		mobile: (857) 268-0493
MIT Lincoln Laboratory				email: thomas.moyer@ll.mit.edu
244 Wood Street
Lexington, MA 02420







On 10/23/12 3:52 PM, "Dominick Grift" <dominick.grift@gmail.com> wrote:

>
>
>On Tue, 2012-10-23 at 15:28 -0400, Moyer, Thomas - 0668 - MITLL wrote:
>> I am trying to build an SELinux policy module for a piece of software
>> I am writing. I used sepolgen to create an initial skeleton policy
>> (running on Red Hat Enterprise Linux 6). I get the following error
>> when I try and install the policy:
>> 
>> 
>> sudo ./interface.sh
>> Building and Loading Policy
>> + make -f /usr/share/selinux/devel/Makefile
>> make: Nothing to be done for `all'.
>> + /usr/sbin/semodule -i interface.pp
>> libsemanage.semanage_fc_sort: WARNING: semanage_fc_sort: Incomplete
>> context.
>> libsepol.sepol_context_from_string: malformed context "dnl"
>> libsepol.sepol_context_from_string: could not construct context from
>> string
>> libsepol.context_from_string: could not create context structure
>> libsepol.sepol_context_to_sid: could not convert dnl to sid
>> invalid context dnl
>> libsemanage.semanage_install_active: setfiles returned error code 1.
>> /usr/sbin/semodule:  Failed!
>> 
>> 
>> Below is the interface.fc file since I think the error might be in
>> there.
>> /usr/local/bin/interface --
>> gen_context(system_u:object_r:interface_exec_t,s0)
>> /usr/local/libexec/interface gen_context(system_u:object_r:usr_t,s0)
>> /usr/local/libexec/interface/WebApp.jar --
>> gen_context(system_u:object_r:httpd_sys_content_t,s0)
>> /usr/local/libexec/interface/keystore --
>> gen_context(system_u:object_r:interfaceKey_t,s0)
>> /usr/local/libexec/interface/ui-files(/.*)?
>> gen_context(system_u:object_r:httpd_sys_content_t,s0)
>> 
>
>Maybe "interface" is a keyword. Could you try another name for the sake
>of testing?
>
>The .fc contents look OK to me.
>
>Also make sure that the .fc has a newline at the end ( but i do not
>think this is what causes this
>
>> Not sure how to go about debugging this.
>> 
>> 
>> Thanks for the help.
>> 
>> 
>> -Tom
>> 
>> 
>> -- 
>> Thomas Moyer, Technical Staff voice: (781) 981-1374
>> Cyber Systems Technology Group mobile: (857) 268-0493
>> MIT Lincoln Laboratory email: thomas.moyer@ll.mit.edu
>> 244 Wood Street
>> Lexington, MA 02420
>
>

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5142 bytes --]

  reply	other threads:[~2012-10-23 20:30 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 [this message]
2012-10-23 20:49     ` Dominick Grift
2012-10-24 16:06       ` Christopher J. PeBenito
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=CCAC7590.2211%thomas.moyer@ll.mit.edu \
    --to=thomas.moyer@ll.mit.edu \
    --cc=dominick.grift@gmail.com \
    --cc=selinux@tycho.nsa.gov \
    /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.