All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Chludzinski <john.chludzinski@vivaldi.net>
To: Brandon Whalen <brandon@quarksecurity.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: Trying to update sysadm module in CLIP
Date: Fri, 20 Mar 2015 22:56:45 +0100	[thread overview]
Message-ID: <ecf09a432d1ad30680282c795dcaa3f2@vivaldi.net> (raw)
In-Reply-To: <CAN4BvJ_b0to61G42OtsV28DFyuv13DhxuGm_tyqeMDStieDd+w@mail.gmail.com>

Nope, there is no sysadm module that shows up in the listing from 
"semodule -l".  I assume it's rolled up in some other module? But which 
one?

---John

On 2015-03-20 01:23, Brandon Whalen wrote:
> On Thu, Mar 19, 2015 at 6:38 PM, John Chludzinski
> <john.chludzinski@vivaldi.net> wrote:
>> I ran (when under the role sysadm_r and type sysadm_t):
>> 
>> $ id -Z
>> 
>> and got: Xsysadm_u:sysadm_r:sysadm_t:s0
>> 
>> So now I'm assuming the CLIP image is at "s0" sensitivity level.
>> 
>> Then I noticed that the build.conf file states: "The sensitivities 
>> will be
>> s0 to s(MLS_SENS-1)".
>> 
>> So I built using:
>> 
>> $ make modules APPS_MODS="sysadm" TYPE="mls" MLS_SENS=1
>> 
>> to get an "s0" sensitivity level.
>> 
>> Tried to install and now I get: "duplicate declaration in module:
>> type/attribute sysadm_userhelper_t".
> 
> It looks like sysadm_userhelper_t is declared in the policy already.
> Do you already have the sysadm module installed ' semodule -l' will
> tell you? If not, maybe the sysadm module was included in the base
> module.
> 
>> (A "Whac-A-Mole" game!)
>> 
>> ---John
>> 
>> 
>> 
>> On 2015-03-19 21:31, John Chludzinski wrote:
>>> 
>>> First thing ... I'm a newbie to SELinux.
>>> 
>>> I'm trying to update the sysadm module in a CLIP image. I downloaded
>>> the SELinux policy code from: https://github.com/QuarkSecurity/CLIP.
>>> I modified the sysadm policy code and built (in
>>> ~/clip/packages/clip-selinux-policy/clip-selinux-policy) using:
>>> 
>>> $ make modules APPS_MODS="sysadm"
>>> 
>>> Then I tried to install in the CLIP image using:
>>> 
>>> $ semodule -i /mnt/hdd/SELinix/sysadm.pp
>>> 
>>> and got: "tried to link in a non-MLS module with an MLS base". (I
>>> assume this means the CLIP image I'm working with is MLS?)
>>> Next I built using:
>>> 
>>> $ make modules APPS_MODS="sysadm" TYPE="mls"
>>> 
>>> Tried to load/install the module and got: "sensitivy s10 not declared 
>>> by
>>> base."
>>> 
>>> Next I tried:
>>> 
>>> $ make modules APPS_MODS="auditadm sysadm" TYPE="mls" MLS_SENS=15
>>> 
>>> and !still! got "sensitivy s10 not declared by base".
>>> 
>>> Any suggestions/thoughts?
>>> 
>>> ---John
>>> _______________________________________________
>>> Selinux mailing list
>>> Selinux@tycho.nsa.gov
>>> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
>>> To get help, send an email containing "help" to
>>> Selinux-request@tycho.nsa.gov.
>> 
>> 
>> _______________________________________________
>> Selinux mailing list
>> Selinux@tycho.nsa.gov
>> To unsubscribe, send email to Selinux-leave@tycho.nsa.gov.
>> To get help, send an email containing "help" to
>> Selinux-request@tycho.nsa.gov.

  reply	other threads:[~2015-03-20 21:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-19 20:31 Trying to update sysadm module in CLIP John Chludzinski
2015-03-19 21:54 ` Spencer Shimko
2015-03-19 22:38 ` John Chludzinski
2015-03-20  0:23   ` Brandon Whalen
2015-03-20 21:56     ` John Chludzinski [this message]
     [not found]   ` <CAGNxgPiBThm0SpAo-+1D2UsaFyVNY2AKpj56RFvt+8SrfxL-Jw@mail.gmail.com>
2015-03-20 22:14     ` John Chludzinski
2015-03-21 13:57       ` Brandon Whalen
2015-03-21 17:36         ` Thomas Hurd
     [not found]     ` <55d4ced56b5ade45f9635caa3bd622b9@vivaldi.net>
     [not found]       ` <CAGNxgPh1Tq+ipErajh4F7VSW57cMTiNC7ZWJOa+jpWYsyw_HOA@mail.gmail.com>
2015-03-23 15:16         ` John Chludzinski
2015-03-23 16:01           ` Brandon Whalen
2015-03-23 17:36             ` John Chludzinski
2015-03-23 18:12               ` Mike Palmiotto
2015-03-23 18:22               ` Brandon Whalen
2015-03-23 19:01                 ` John Chludzinski

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=ecf09a432d1ad30680282c795dcaa3f2@vivaldi.net \
    --to=john.chludzinski@vivaldi.net \
    --cc=brandon@quarksecurity.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.