From: "Justin P. Mattock" <justinmattock@gmail.com>
To: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: Question about SELinux userspace library and scripts?
Date: Wed, 24 Dec 2008 00:10:49 -0800 [thread overview]
Message-ID: <4951EE89.2080007@gmail.com> (raw)
In-Reply-To: <20081224075329.3A0E31807B@m024.s.css.fujitsu.com>
Atsushi SAKAI wrote:
> Hi,
>
> Thank you for your comments.
>
> I just want to know that
> where is the ALL userland source code?
>
> For example, I thought user-land code is only in userspace library.
> But further investigatin found the code also in refpolicy/support.
>
> I am worrying about other unread code or script exists.
>
> Thanks
> Atsushi SAKAI
>
>
> "Justin P. Mattock" <justinmattock@gmail.com> wrote:
>
>
>> Atsushi SAKAI wrote:
>>
>>> Hi,
>>>
>>> I have a question about user-space library and script.
>>> As far as I know, following 6-library and 1-script are exists.
>>>
>>> Userspace library(6-libs(utils included))
>>> http://userspace.selinuxproject.org/trac/wiki/Userland
>>>
>>> macro for reference policy(scripts in following dir)
>>> serefpolicy-3.5.13/support
>>>
>>> Any other library and script exists ?
>>> and
>>> some explanation about serefpolicy macros?
>>>
>>>
>>> Thanks
>>> Atsushi SAKAI
>>>
>>>
>>>
>>>
>>> --
>>> 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.
>>>
>>>
>>>
>> From experience with userland
>> just do a git-pull..
>> should give the the proper files
>> except for python-selinux to build a custom policy
>> (as for macros not too sure);
>>
>> regards;
>>
>> Justin P. Mattock
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> 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.
>>
>
>
>
>
Using the userland sourcecode is nice
everything is needed to build a policy i.g.
git clone http://oss.tresys.com/git/selinux.git
then after downloading the source, compile
(you will need certain packages; libpam-dev
flex, gawk, libustr-dev, gettext, sysvinit etc..)
then after compiling and installing,
you only need the python-selinux package.
(for the userland libraries and tools to work, and a policy);
then go grab you're policy
then after compiling the policy;
and making /selinux in you're tree,
you should just reboot and the policy should load
{boot params audit=1 selinux=1 enforcing=0/1};
(after loading the policy you should make relabel,
just to be safe); Userland provides all of the essentials
to build a policy.
Then once the policy is running you need to add you're
entry's in /etc/pam.d/* for newrole to work.
If you need help there's plenty of people to help you.
just don't be afraid to ask.
regards;
Justin P. mattock
--
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.
prev parent reply other threads:[~2008-12-24 8:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-24 6:28 Question about SELinux userspace library and scripts? Atsushi SAKAI
2008-12-24 7:30 ` Justin P. Mattock
2008-12-24 7:53 ` Atsushi SAKAI
2008-12-24 8:10 ` Justin P. Mattock [this message]
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=4951EE89.2080007@gmail.com \
--to=justinmattock@gmail.com \
--cc=sakaia@jp.fujitsu.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.