* compiling errors!
@ 2009-07-29 11:05 mina elnino
2009-07-29 11:57 ` Stephen Smalley
[not found] ` <CIEOKAFOMGPNJIPMMMAHMELCCBAA.remmolt@zwartsenberg.eu>
0 siblings, 2 replies; 9+ messages in thread
From: mina elnino @ 2009-07-29 11:05 UTC (permalink / raw)
To: selinux
[-- Attachment #1.1: Type: text/plain, Size: 445 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 588 bytes --]
[-- Attachment #2: result --]
[-- Type: application/octet-stream, Size: 3637 bytes --]
genhomedircon.c:37:18: error: ustr.h: No such file or directory
genhomedircon.c: In function ‘fcontext_matches’:
genhomedircon.c:176: warning: implicit declaration of function ‘ustr_dup_cstr’
genhomedircon.c:176: warning: assignment makes pointer from integer without a cast
genhomedircon.c:177: error: ‘USTR_NULL’ undeclared (first use in this function)
genhomedircon.c:177: error: (Each undeclared identifier is reported only once
genhomedircon.c:177: error: for each function it appears in.)
genhomedircon.c:179: warning: implicit declaration of function ‘ustr_add_cstr’
genhomedircon.c:183: warning: implicit declaration of function ‘ustr_cmp_suffix_cstr_eq’
genhomedircon.c:185: warning: implicit declaration of function ‘ustr_del’
genhomedircon.c:205: warning: implicit declaration of function ‘ustr_cstr’
genhomedircon.c:205: warning: passing argument 2 of ‘regcomp’ makes pointer from integer without a cast
/usr/include/regex.h:556: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
genhomedircon.c:214: warning: implicit declaration of function ‘ustr_free’
genhomedircon.c: At top level:
genhomedircon.c:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
genhomedircon.c:445: error: expected ‘)’ before ‘*’ token
genhomedircon.c:461: error: expected declaration specifiers or ‘...’ before ‘Ustr’
genhomedircon.c: In function ‘check_line’:
genhomedircon.c:467: warning: implicit declaration of function ‘extract_context’
genhomedircon.c:467: error: ‘line’ undeclared (first use in this function)
genhomedircon.c:467: warning: assignment makes pointer from integer without a cast
genhomedircon.c: In function ‘write_home_dir_context’:
genhomedircon.c:495: error: ‘Ustr’ undeclared (first use in this function)
genhomedircon.c:495: error: ‘line’ undeclared (first use in this function)
genhomedircon.c:495: error: ‘USTR_NULL’ undeclared (first use in this function)
genhomedircon.c:501: warning: implicit declaration of function ‘replace_all’
genhomedircon.c:504: error: too many arguments to function ‘check_line’
genhomedircon.c:505: warning: implicit declaration of function ‘ustr_io_putfileline’
genhomedircon.c:508: warning: implicit declaration of function ‘ustr_sc_free’
genhomedircon.c: In function ‘write_home_root_context’:
genhomedircon.c:524: error: ‘Ustr’ undeclared (first use in this function)
genhomedircon.c:524: error: ‘line’ undeclared (first use in this function)
genhomedircon.c:524: error: ‘USTR_NULL’ undeclared (first use in this function)
genhomedircon.c:530: error: too many arguments to function ‘check_line’
genhomedircon.c: In function ‘write_user_context’:
genhomedircon.c:553: error: ‘Ustr’ undeclared (first use in this function)
genhomedircon.c:553: error: ‘line’ undeclared (first use in this function)
genhomedircon.c:553: error: ‘USTR_NULL’ undeclared (first use in this function)
genhomedircon.c:559: error: too many arguments to function ‘check_line’
genhomedircon.c: In function ‘write_context_file’:
genhomedircon.c:893: error: ‘Ustr’ undeclared (first use in this function)
genhomedircon.c:893: error: ‘temp’ undeclared (first use in this function)
genhomedircon.c:905: warning: passing argument 6 of ‘write_home_dir_context’ makes pointer from integer without a cast
genhomedircon.c:484: note: expected ‘const char *’ but argument is of type ‘int’
make[2]: *** [genhomedircon.o] Error 1
make[1]: *** [install] Error 2
make: *** [install] Error 1
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: compiling errors! 2009-07-29 11:05 compiling errors! mina elnino @ 2009-07-29 11:57 ` Stephen Smalley [not found] ` <CIEOKAFOMGPNJIPMMMAHMELCCBAA.remmolt@zwartsenberg.eu> 1 sibling, 0 replies; 9+ messages in thread From: Stephen Smalley @ 2009-07-29 11:57 UTC (permalink / raw) To: mina elnino; +Cc: selinux On Wed, 2009-07-29 at 15:35 +0430, mina elnino wrote: > 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. You need to install the ustr library headers, by running: yum install ustr-devel -- 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 majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message. ^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <CIEOKAFOMGPNJIPMMMAHMELCCBAA.remmolt@zwartsenberg.eu>]
[parent not found: <f7d5075c0907290626t1c772fd3l9f60c7a710c6152@mail.gmail.com>]
[parent not found: <f7d5075c0907290704x9b2b426sb6c3bb928a11a98b@mail.gmail.com>]
[parent not found: <1248882850.11627.64.camel@moss-pluto.epoch.ncsc.mil>]
* Re: compiling errors! [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 0 siblings, 2 replies; 9+ messages in thread From: mina elnino @ 2009-07-30 5:21 UTC (permalink / raw) To: selinux [-- Attachment #1: Type: text/plain, Size: 1892 bytes --] 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 <sds@tycho.nsa.gov> wrote: > On Wed, 2009-07-29 at 18:34 +0430, mina elnino wrote: > > 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 > > > > 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 > > [-- Attachment #2: Type: text/html, Size: 2557 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* {Spam?} C Code Compilation Errors 2009-07-30 5:21 ` mina elnino @ 2009-07-30 9:31 ` Remmolt G. Zwartsenberg 2009-07-30 12:22 ` compiling errors! Stephen Smalley 1 sibling, 0 replies; 9+ messages in thread From: Remmolt G. Zwartsenberg @ 2009-07-30 9:31 UTC (permalink / raw) To: 'mina elnino'; +Cc: selinux [-- Attachment #1: Type: text/plain, Size: 2786 bytes --] 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: owner-selinux@tycho.nsa.gov [mailto:owner-selinux@tycho.nsa.gov] On Behalf Of mina elnino Sent: donderdag 30 juli 2009 7:22 To: selinux@tycho.nsa.gov 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 <sds@tycho.nsa.gov> wrote: On Wed, 2009-07-29 at 18:34 +0430, mina elnino wrote: > 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 > > 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 [-- Attachment #2: Type: text/html, Size: 8263 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling errors! 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 ` Stephen Smalley 2009-07-30 13:32 ` mina elnino 1 sibling, 1 reply; 9+ messages in thread From: Stephen Smalley @ 2009-07-30 12:22 UTC (permalink / raw) To: mina elnino; +Cc: selinux, Daniel J Walsh 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 -- 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] 9+ messages in thread
* Re: compiling errors! 2009-07-30 12:22 ` compiling errors! Stephen Smalley @ 2009-07-30 13:32 ` mina elnino 2009-07-30 14:42 ` mina elnino 2009-07-30 20:00 ` Stephen Smalley 0 siblings, 2 replies; 9+ messages in thread From: mina elnino @ 2009-07-30 13:32 UTC (permalink / raw) To: selinux [-- Attachment #1.1: Type: text/plain, Size: 1694 bytes --] 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> 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 > > [-- Attachment #1.2: Type: text/html, Size: 2428 bytes --] [-- Attachment #2: result --] [-- Type: application/octet-stream, Size: 322 bytes --] m4:policy/modules/services/razor.te:9: Warning: excess arguments to builtin `ifdef' ignored 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 make: *** [policy.24] Error 1 ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling errors! 2009-07-30 13:32 ` mina elnino @ 2009-07-30 14:42 ` mina elnino 2009-08-03 14:19 ` Justin P. Mattock 2009-07-30 20:00 ` Stephen Smalley 1 sibling, 1 reply; 9+ messages in thread From: mina elnino @ 2009-07-30 14:42 UTC (permalink / raw) To: selinux [-- Attachment #1: Type: text/plain, Size: 2337 bytes --] 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> 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>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 >> >> > [-- Attachment #2: Type: text/html, Size: 3368 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling errors! 2009-07-30 14:42 ` mina elnino @ 2009-08-03 14:19 ` Justin P. Mattock 0 siblings, 0 replies; 9+ messages in thread From: Justin P. Mattock @ 2009-08-03 14:19 UTC (permalink / raw) To: mina elnino; +Cc: selinux 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. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: compiling errors! 2009-07-30 13:32 ` mina elnino 2009-07-30 14:42 ` mina elnino @ 2009-07-30 20:00 ` Stephen Smalley 1 sibling, 0 replies; 9+ messages in thread From: Stephen Smalley @ 2009-07-30 20:00 UTC (permalink / raw) To: mina elnino; +Cc: selinux On Thu, 2009-07-30 at 18:02 +0430, mina elnino wrote: > to build it: > > $ make conf > $ make policy > > the 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. > On Thu, Jul 30, 2009 at 4:52 PM, Stephen Smalley <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 > > > -- 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 majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-08-03 14:23 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2009-07-30 20:00 ` Stephen Smalley
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.