* Compiling Selinux from Source
@ 2013-03-16 12:06 Kernel freak
2013-03-18 14:08 ` Stephen Smalley
2013-03-18 14:12 ` Christopher J. PeBenito
0 siblings, 2 replies; 3+ messages in thread
From: Kernel freak @ 2013-03-16 12:06 UTC (permalink / raw)
To: selinux
[-- Attachment #1: Type: text/plain, Size: 808 bytes --]
Hello,
I want to make some modifications to SElinux itself for some of my
work. I am currently using Fedora v18 with KDE. I downloaded the Linux
kernel, and also the reference policy source. Both seem to give me an
error. The errors are
While compiling the policy '@localhost serefpolicy-3.11.1]$ sudo make conf
make: *** No rule to make target `policy/modules/contrib/metadata.xml',
needed by `tmp/admin.xml'. Stop.'
While compiling Selinux from Linux kernel 3.7.10
'@localhost selinux]$ make
make: *** No rule to make target `/include/classmap.h', needed by
`/flask.h'. Stop.'
I fail to understand what am i missing here. I checked the contrib
directory, it turns out to be empty. Also, i downloaded the serefpolicy
using yum-utils. Kindly let me know or some links. Thank you for your time.
[-- Attachment #2: Type: text/html, Size: 876 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Compiling Selinux from Source
2013-03-16 12:06 Compiling Selinux from Source Kernel freak
@ 2013-03-18 14:08 ` Stephen Smalley
2013-03-18 14:12 ` Christopher J. PeBenito
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Smalley @ 2013-03-18 14:08 UTC (permalink / raw)
To: Kernel freak; +Cc: selinux
On 03/16/2013 08:06 AM, Kernel freak wrote:
> Hello,
> I want to make some modifications to SElinux itself for some
> of my work. I am currently using Fedora v18 with KDE. I downloaded the
> Linux kernel, and also the reference policy source. Both seem to give me
> an error. The errors are
> While compiling the policy '@localhost serefpolicy-3.11.1]$ sudo make conf
> make: *** No rule to make target `policy/modules/contrib/metadata.xml',
> needed by `tmp/admin.xml'. Stop.'
>
> While compiling Selinux from Linux kernel 3.7.10
> '@localhost selinux]$ make
> make: *** No rule to make target `/include/classmap.h', needed by
> `/flask.h'. Stop.'
>
> I fail to understand what am i missing here. I checked the contrib
> directory, it turns out to be empty. Also, i downloaded the serefpolicy
> using yum-utils. Kindly let me know or some links. Thank you for your time.
If you downloaded the selinux-policy source rpm and installed it, then
you have the spec file, so you can either build it via rpmbuild -bb
selinux-policy.spec or duplicate the instructions from the spec file to
build it by hand. If you checked out the upstream refpolicy sources,
then you have to run git submodule commands to check out the contrib
directory, as described in:
http://oss.tresys.com/projects/refpolicy/wiki/RepositoryCheckout
refpolicy-specific questions should go to the refpolicy mailing list
however.
For the kernel, it looks like you cd'd into security/selinux before
running make. That isn't how it is done. Configure your kernel and run
make at top-level. Then it will generate the headers and ultimately
build the selinux/built-in.o that gets linked into the kernel. It is
not a loadable kernel module (LKM).
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Compiling Selinux from Source
2013-03-16 12:06 Compiling Selinux from Source Kernel freak
2013-03-18 14:08 ` Stephen Smalley
@ 2013-03-18 14:12 ` Christopher J. PeBenito
1 sibling, 0 replies; 3+ messages in thread
From: Christopher J. PeBenito @ 2013-03-18 14:12 UTC (permalink / raw)
To: Kernel freak; +Cc: selinux
On 03/16/13 08:06, Kernel freak wrote:
> Hello,
> I want to make some modifications to SElinux itself for some of my work. I am currently using Fedora v18 with KDE. I downloaded the Linux kernel, and also the reference policy source. Both seem to give me an error. The errors are
> While compiling the policy '@localhost serefpolicy-3.11.1]$ sudo make conf
> make: *** No rule to make target `policy/modules/contrib/metadata.xml', needed by `tmp/admin.xml'. Stop.'
[...]
> I fail to understand what am i missing here. I checked the contrib directory, it turns out to be empty.
You also need to check out the contrib submodule:
$ git submodule init
$ git submodule update
See http://oss.tresys.com/projects/refpolicy/wiki/RepositoryCheckout for more details.
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-18 14:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-16 12:06 Compiling Selinux from Source Kernel freak
2013-03-18 14:08 ` Stephen Smalley
2013-03-18 14:12 ` Christopher J. PeBenito
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.