Problem install Reference Policy
hello waqar, I used to get this problem.after then, i edit file build.conf in some way ,then make . make successfully!
but I've got another problem . after i install the policy (by editting /etc/ selinux/config ,reboot) ,my graphic user interface failed to start up.and i don't kown why.
I run "semanage login -l" ,found "login" of root is root: sysadm_r.but default targeted in Fedora-11. root 's "login" is "unconfined_u: unconfined_r".
2009-09-07
zheyeung
发件人: waqar afridi
发送时间: 2009-09-05 15:44:44
收件人: selinux
抄送:
主题: Problem install Reference Policy
Hello Every One,
I am new to selinux, I am using Ubuntu and i am trying to install reference Policy on it, after running command make load, I get this error, I dont know whats wrong
/usr/bin/checkpolicy policy.conf -o /etc/selinux/refpolicy/policy/policy.23/usr/bin/checkpolicy: loading policy configuration from policy.conf policy/modules/services/ifplugd.te":67:ERROR 'type netutils_exec_t is not within scope' at token ';' on line 362418:
allow ifplugd_t netutils_exec_t:file { getattr open read execute };#line 67
checkpolicy: error(s) encountered while parsing configuration
make: *** [/etc/selinux/refpolicy/policy/policy.23] Error 1
Signature · 1 line
Waqar Afridi
Quoted 3 lines · zheyeung
hello waqar, I used to get this problem.after then, i edit file build.conf in some way ,then make . make successfully!
but I've got another problem . after i install the policy (by editting/etc/selinux/config ,reboot) ,my graphic user interface failed to start up.and i don't kown why. I run "semanage login -l" ,found "login" of root is root: sysadm_r.but default targeted in Fedora-11. root 's "login" is "unconfined_u:unconfined_r".
you might try make clean, make enableaudit, make policy this will generate some more avc's that you might need to allow to startx.
Quoted 14 lines
2009-09-07
------------------------------------------------------------------------
zheyeung
------------------------------------------------------------------------
*发件人:* waqar afridi
*发送时间:* 2009-09-05 15:44:44
*收件人:* selinux
*抄送:*
*主题:* Problem install Reference Policy
Hello Every One,I am new to selinux, I am using Ubuntu and i am trying to install reference Policy on it, after running command make load, I get this error, I dont know whats wrong
Quoted 11 lines
/usr/bin/checkpolicypolicy.conf -o/etc/selinux/refpolicy/policy/policy.23/usr/bin/checkpolicy: loading policy configuration from policy.conf policy/modules/services/ifplugd.te":67:ERROR 'typenetutils_exec_tis not within scope' at token ';' on line 362418:allow ifplugd_t netutils_exec_t:file { getattr open read execute };#line 67
checkpolicy: error(s) encountered while parsing configuration
make: *** [/etc/selinux/refpolicy/policy/policy.23] Error 1Signature · 1 line
Waqar Afridi
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.
*Thanx zheyeung*, But If I do leave the original *Build.conf* I get the following error
/usr/bin/checkpolicy policy.conf -o /etc/selinux/refpolicy/policy/policy.23 /usr/bin/checkpolicy: loading policy configuration from policy.conf
make: *** [/etc/selinux/refpolicy/policy/policy.23] Killed
Is it due to less memory or some thing else, I also turned off some
unwanted modules from *modules.conf*, but didnt help, What should I do?
Quoted 48 lines · Justin P. Mattock
Quoted 9 lines · zheyeung
hello waqar, I used to get this problem.after then, i edit file build.conf in some way ,then make . make successfully!
but I've got another problem . after i install the policy (by editting/etc/selinux/config ,reboot) ,my graphic user interface failed to start up.and i don't kown why.
I run "semanage login -l" ,found "login" of root is root: sysadm_r.but default targeted in Fedora-11. root 's "login" is "unconfined_u:unconfined_r".you might try make clean, make enableaudit, make policy this will generate some more avc's that you might need to allow to startx.
2009-09-07
Quoted 19 lines
------------------------------------------------------------------------
zheyeung
------------------------------------------------------------------------
*发件人:* waqar afridi
*发送时间:* 2009-09-05 15:44:44
*收件人:* selinux
*抄送:*
*主题:* Problem install Reference Policy
Hello Every One,I am new to selinux, I am using Ubuntu and i am trying to install reference Policy on it, after running command make load, I get this error, I dont know whats wrong
/usr/bin/checkpolicypolicy.conf -o/etc/selinux/refpolicy/policy/policy.23/usr/bin/checkpolicy: loading policy configuration from policy.conf policy/modules/services/ifplugd.te":67:ERROR 'typenetutils_exec_tis not within scope' at token ';' on line 362418:Quoted 9 lines
allow ifplugd_t netutils_exec_t:file { getattr open read execute };#line 67
checkpolicy: error(s) encountered while parsing configuration
make: *** [/etc/selinux/refpolicy/policy/policy.23] Error 1--
Waqar AfridiJustin P. Mattock
Signature · 1 line
Waqar Afridi
Quoted 12 lines · waqar afridi
*Thanx zheyeung*, But If I do leave the original *Build.conf* I get the following error
/usr/bin/checkpolicypolicy.conf -o/etc/selinux/refpolicy/policy/policy.23/usr/bin/checkpolicy: loading policy configuration from policy.conf
make: *** [/etc/selinux/refpolicy/policy/policy.23] KilledIs it due to less memory or some thing else, I also turned off some unwanted modules from *modules.conf*, but didnt help, What should I do?
Not sure, I was receiving an error
from checkpolicy, but I think I'm missing
a dependency.(keep in mind this is a custom clfs
system).
In your case if your using a distro
checkpolicy should be functioning properly.
have you tried a fresh git pull of the refpolicy and compiled it with vary little changes to the policy?
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.
Usually turning off modules shouldn't help to free a lot of memory as they usually are small things that don't take up much RAM anyway.
How much RAM do you have in your PC?
Quoted 58 lines
*Thanx zheyeung*, But If I do leave the original *Build.conf* I get the following error
/usr/bin/checkpolicypolicy.conf -o/etc/selinux/refpolicy/policy/policy.23/usr/bin/checkpolicy: loading policy configuration from policy.conf
make: *** [/etc/selinux/refpolicy/policy/policy.23] KilledIs it due to less memory or some thing else, I also turned off some
unwanted modules from *modules.conf*, but didnt help, What should I do?On Mon, Sep 7, 2009 at 10:14 AM, Justin P. Mattock
Quoted 45 lines · <[email protected]>wrote:
Quoted 8 lines · zheyeung
hello waqar, I used to get this problem.after then, i edit file build.conf in some way ,then make . make successfully!
but I've got another problem . after i install the policy (by editting/etc/selinux/config ,reboot) ,my graphic user interface failed to start up.and i don't kown why.
I run "semanage login -l" ,found "login" of root is root: sysadm_r.but default targeted in Fedora-11. root 's "login" is "unconfined_u:unconfined_r".you might try make clean, make enableaudit, make policy this will generate some more avc's that you might need to allow to startx.
2009-09-07
Quoted 19 lines
------------------------------------------------------------------------
zheyeung
------------------------------------------------------------------------
*发件人:* waqar afridi
*发送时间:* 2009-09-05 15:44:44
*收件人:* selinux
*抄送:*
*主题:* Problem install Reference Policy
Hello Every One,I am new to selinux, I am using Ubuntu and i am trying to install reference Policy on it, after running command make load, I get this error, I dont know whats wrong
/usr/bin/checkpolicypolicy.conf -o/etc/selinux/refpolicy/policy/policy.23/usr/bin/checkpolicy: loading policy configuration from policy.conf policy/modules/services/ifplugd.te":67:ERROR 'typenetutils_exec_tis not within scope' at token ';' on line 362418:Quoted 8 lines
allow ifplugd_t netutils_exec_t:file { getattr open read execute };#line 67
checkpolicy: error(s) encountered while parsing configuration
make: *** [/etc/selinux/refpolicy/policy/policy.23] Error 1--
Waqar AfridiJustin P. Mattock