compiling errors!
dear list;
i'd like to make some changes in checkpolicy package according to a project in my college.
so i clone the git repo and "make install".
$ git clone http://oss.tresys.com/git/selinux.git $ cd selinux $ make DESTDIR=~/obj install
but it makes some errors, which i have attached them (in result file). i have to say that my os is fc11 and i have installed "Development Libraries".
i'd be appreciated if you could help me.
best regards.
Quoted 9 lines · mina elnino
dear list;
i'd like to make some changes in checkpolicy package according to a project in my college.
so i clone the git repo and "make install".$ git clone http://oss.tresys.com/git/selinux.git $ cd selinux $ make DESTDIR=~/obj install
Quoted 5 lines
but it makes some errors, which i have attached them (in result file). i have to say that my os is fc11 and i have installed "Development Libraries".
i'd be appreciated if you could help me.
best regards.
You need to install the ustr library headers, by running:
yum install ustr-devel
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
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.
best regards.
Quoted 30 lines · Stephen Smalley
Quoted 6 lines · mina elnino
thank you. it got solved by installing "ustr-devel". now i should have my source policy files. so according to what you said, i used:
$ yumdownloader --source selinux-policyQuoted 8 lines
then i had my "src.rpm" package. but i dont know how to install it. the reason is that i am not so familiar with fedora. i have used ubuntu and never worked with rpm packages.
i used "Package Installer" but it didn't work! "Backend will not install a src rpm file" was the message. i am not sure if i should have my "policy.conf" file in
/etc/selinux/targeted/src/. and what's more, where is the strict type of selinux??Stay on list, please.
You can just rpm -i the .src.rpm file, and that will expand it under ~/rpmbuild, where you can follow the instructions in Dan Walsh's blog that I pointed you to earlier.
targeted and strict policies have been merged together; you can map users to confined roles via semanage login or system-config-selinux.
--
Stephen Smalley
National Security Agency
{Spam?} C Code Compilation Errors
RE: compiling errors!
Bokertov Mina,
Linux is OpenSource, but setting logical names 4 input datasets (especially ODBC live connections with MySQL or ORACLE instances executing OLTP) can create extreme confusion. Especially now that we are replacing big Harddisks by Flash Memory Caches.
I hate to ask you, but do you have a pre- and postcondition matrix of the constants and variables used in the Alghoritm? If yes, then we could apply a regression testing procedure. We had considerable problems integrating C++ and C# (Microsoft C) runlibs,.Because SQL Server 2000 would always run out of Tablespace we needed to migrate the POSTFIX header database to SQLServer 2005.
I hope this helps,
Yours sincerely,
~remmolt
_____
From: [email protected] [mailto:[email protected]] On Behalf Of mina elnino
Sent: donderdag 30 juli 2009 7:22
To: [email protected]
Subject: Re: compiling errors!
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.
best regards.
On Wed, Jul 29, 2009 at 8:24 PM, Stephen Smalley <[email protected]> wrote:
Quoted 6 lines · mina elnino
thank you. it got solved by installing "ustr-devel". now i should have my source policy files. so according to what you said, i used:
$ yumdownloader --source selinux-policy
Quoted 8 lines
then i had my "src.rpm" package. but i dont know how to install it. the reason is that i am not so familiar with fedora. i have used ubuntu and never worked with rpm packages.
i used "Package Installer" but it didn't work! "Backend will not install a src rpm file" was the message. i am not sure if i should have my "policy.conf" file in
/etc/selinux/targeted/src/. and what's more, where is the strict type of selinux??
Stay on list, please.
You can just rpm -i the .src.rpm file, and that will expand it under ~/rpmbuild, where you can follow the instructions in Dan Walsh's blog that I pointed you to earlier.
targeted and strict policies have been merged together; you can map users to confined roles via semanage login or system-config-selinux.
--
Stephen Smalley
National Security Agency
Quoted 14 lines · mina elnino
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
Quoted 4 lines
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.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
to build it:
$ make conf $ make policy
the second make made an error (in the attached file). and also it generated policy.conf
Quoted 41 lines · Stephen Smalley
Quoted 14 lines · mina elnino
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.rpmQuoted 4 lines
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 refpolicyNote 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
Quoted 7 lines · mina elnino
to build it:
$ make conf $ make policythe second make made an error (in the attached file). and also it generated policy.conf
Looks like a bug in the policy sources in that .src.rpm; probably only shows up in a monolithic build (normal Fedora policy build is modular). You might want to just use the upstream refpolicy release or git repo.
Quoted 53 lines
On Thu, Jul 30, 2009 at 4:52 PM, Stephen Smalley <[email protected]> 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 refpolicyNote 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
Signature · 7 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
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 configurationis it importanr? if it is not, i'd better comment it!
Quoted 53 lines · mina elnino
to build it:
$ make conf $ make policythe second make made an error (in the attached file). and also it generated policy.conf
Quoted 41 lines · Stephen Smalley
Quoted 14 lines · mina elnino
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.rpmQuoted 4 lines
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 refpolicyNote 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
Quoted 67 lines · mina elnino
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 configurationis it importanr? if it is not, i'd better comment it!
On Thu, Jul 30, 2009 at 6:02 PM, mina elnino <[email protected] <mailto:[email protected]>> wrote:
to build it:
$ make conf
$ make policythe 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 <[email protected] <mailto:[email protected]>> 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 refpolicyNote 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.
Quoted 6 lines
--
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.