selinux-policy-default
I'm running debian unstable with a 2.6.2 kernel se-enabled. I was following the new selinux how to ( http://sourceforge.net/docman/display_doc.php?docid=20372&group_id=21266 ) and I've gotten stuck on the selinux-policy-default install. It seems that the types for xxx_locate_t aren't defined.
[ snip lots of yes/no questions ]
Installing the new SE Linux policy/usr/bin/checkpolicy: loading policy configuration from /etc/security/selinux/src/policy.conf domains/admin.te:32:ERROR 'unknown type sysadm_locate_t' at token ';' on line 5974:
allow sysadm_locate_t { sysadm_mozilla_ro_t sysadm_mozilla_rw_t }:dir { getattr search };
I searched for type lines for sysadm_locate_t but couldn't find any in any of the .te files and I don't know what they should look like to generate my own. Can someone point me to documentation that would explain these types?
Thanks,
Eric
Quoted 5 lines · Eric Estabrooks
domains/admin.te:32:ERROR 'unknown type
sysadm_locate_t' at token ';' on line 5974:
allowsysadm_locate_t{sysadm_mozilla_ro_tsysadm_mozilla_rw_t}:dir { getattr
search };
I came across similar problem yesterday evening. I think problem is that *_locate_t domains are not created in user_domain and admin_domain macros. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=231343 , there you can find simple patch which solved problem for me. Can anyone look at it and tell if my solution is correct?
th.
--
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.
Quoted 7 lines · Tomas Hoger
Quoted 5 lines · Eric Estabrooks
domains/admin.te:32:ERROR 'unknown type
sysadm_locate_t' at token ';' on line 5974:
allowsysadm_locate_t{sysadm_mozilla_ro_tsysadm_mozilla_rw_t}:dir { getattr
search };
Quoted 5 lines
I came across similar problem yesterday evening. I think problem is that
*_locate_tdomains are not created inuser_domainandadmin_domainmacros. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=231343 , there you can find simple patch which solved problem for me. Can anyone look at it and tell if my solution is correct?
I'll upload a new version of the package to fix this shortly.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 7 lines · Eric Estabrooks
/usr/bin/checkpolicy: loading policy configuration from/etc/security/selinux/src/policy.confdomains/admin.te:32:ERROR 'unknown typesysadm_locate_t' at token ';' on line 5974:
allowsysadm_locate_t{sysadm_mozilla_ro_tsysadm_mozilla_rw_t}:dir { getattr
search };
I'll upload a new policy package to fix that tomorrow.
Anyway using the locate policy for Debian is not a good idea. Debian does not have a SE Linux patched locate and is not likely to have one in the forseeable future. I think that locate is simply a bad idea and have no plans to support it in Debian.
Quoted 1 line
I searched for type lines for
sysadm_locate_tbut couldn't find any in
Look at macros/program/locate_macros.te .
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 19 lines · Russell Coker
Quoted 9 lines · Eric Estabrooks
/usr/bin/checkpolicy: loading policy configuration from/etc/security/selinux/src/policy.confdomains/admin.te:32:ERROR 'unknown typesysadm_locate_t' at token ';' on line 5974:
allowsysadm_locate_t{sysadm_mozilla_ro_tsysadm_mozilla_rw_t}:dir { getattr
search };I'll upload a new policy package to fix that tomorrow.
Anyway using the locate policy for Debian is not a good idea. Debian does not have a SE Linux patched locate and is not likely to have one in the forseeable future. I think that locate is simply a bad idea and have no plans to support it in Debian.
Quoted 8 lines
Quoted 3 lines
I searched for type lines for
sysadm_locate_tbut couldn't find any inLook at macros/program/locate_macros.te .
Easiest thing to do is remove slocate.te from domain/program and then do a make reload.
Dan
--
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.