All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Justin P. Mattock" <justinmattock@gmail.com>
To: mina elnino <potushka@gmail.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: compiling errors!
Date: Mon, 03 Aug 2009 07:19:57 -0700	[thread overview]
Message-ID: <4A76F20D.4090601@gmail.com> (raw)
In-Reply-To: <f7d5075c0907300742q8745ec7pd17fd59677af1e86@mail.gmail.com>

mina elnino wrote:
> and also when i compile the policy.conf the same error arises:
>
> $ ./obj/usr/bin/checkpolicy 
> ./rpmbuild/BUILD/serefpolicy-3.6.12/policy.conf
> ./obj/usr/bin/checkpolicy:  loading policy configuration from 
> ./rpmbuild/BUILD/serefpolicy-3.6.12/policy.conf
> policy/modules/services/hal.te":11:ERROR 'syntax error' at token 
> 'typeattribute' on line 1035303:
> #line 11
>     typeattribute hald_t daemon;
> checkpolicy:  error(s) encountered while parsing configuration
>
> is it importanr? if it is not, i'd better comment it!
>
> On Thu, Jul 30, 2009 at 6:02 PM, mina elnino <potushka@gmail.com 
> <mailto:potushka@gmail.com>> wrote:
>
>     to build it:
>
>     $ make conf
>     $ make policy
>
>     the second make made an error (in the attached file).
>     and also it generated policy.conf
>
>
>     On Thu, Jul 30, 2009 at 4:52 PM, Stephen Smalley
>     <sds@tycho.nsa.gov <mailto:sds@tycho.nsa.gov>> wrote:
>
>         On Thu, 2009-07-30 at 09:51 +0430, mina elnino wrote:
>         > well, i have to say that i went through the steps in:
>         >
>         > http://danwalsh.livejournal.com/26428.html
>         >
>         > and at last i realized that this page is for the ones who
>         want to make
>         > policies from the source. now i have packages:
>         >
>         > $ ls ~/rpmbuild/RPMS/noarch/
>         > selinux-policy-3.6.12-62.fc11.noarch.rpm
>         > selinux-policy-doc-3.6.12-62.fc11.noarch.rpm
>         > selinux-policy-minimum-3.6.12-62.fc11.noarch.rpm
>         > selinux-policy-mls-3.6.12-62.fc11.noarch.rpm
>         > selinux-policy-targeted-3.6.12-62.fc11.noarch.rpm
>         >
>         > none of them is the source policy package. i mean i need
>         that old m4
>         > macros, "*.te" files and "policy.conf" which could be
>         installed by
>         > "selinux-policy-targeted-source" or
>         "selinux-policy-strict-source" in
>         > fc4.
>
>         If you want to just unpack the source tree along with any
>         Fedora-specific patches applied, you can do:
>         rpm -i selinux-policy*.src.rpm
>         cd ~/rpmbuild/SPECS
>         rpmbuild -bp selinux-policy.spec
>         cd ../BUILD/serefpolicy*
>         Then you can build it in the usual manner.
>
>         You can also clone the upstream refpolicy repository if you want:
>         git clone http://oss.tresys.com/git/refpolicy.git
>         cd refpolicy
>
>         Note however that Fedora policy is built modular rather than
>         monolithic,
>         so there is no policy.conf file per se.  But if you run make
>         with the
>         default build.conf, you'll end up with a policy.conf file.
>
>         --
>         Stephen Smalley
>         National Security Agency
>
>
>
I think this might be due to checkpolicy
being built with not a certain *.h file, or lib.
(but could be wrong).

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.

  reply	other threads:[~2009-08-03 14:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-29 11:05 compiling errors! mina elnino
2009-07-29 11:57 ` Stephen Smalley
     [not found] ` <CIEOKAFOMGPNJIPMMMAHMELCCBAA.remmolt@zwartsenberg.eu>
     [not found]   ` <f7d5075c0907290626t1c772fd3l9f60c7a710c6152@mail.gmail.com>
     [not found]     ` <f7d5075c0907290704x9b2b426sb6c3bb928a11a98b@mail.gmail.com>
     [not found]       ` <1248882850.11627.64.camel@moss-pluto.epoch.ncsc.mil>
2009-07-30  5:21         ` mina elnino
2009-07-30  9:31           ` {Spam?} C Code Compilation Errors Remmolt G. Zwartsenberg
2009-07-30 12:22           ` compiling errors! Stephen Smalley
2009-07-30 13:32             ` mina elnino
2009-07-30 14:42               ` mina elnino
2009-08-03 14:19                 ` Justin P. Mattock [this message]
2009-07-30 20:00               ` Stephen Smalley

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=4A76F20D.4090601@gmail.com \
    --to=justinmattock@gmail.com \
    --cc=potushka@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.