installation problems about apol and seuser
Hi:
I have installed the setools for 2.6-based SELinux on Redhat9.0. But I have problems about apol and seuser.
1.apol:
How can I install it with mls support? I modified the Makefile and let the CFLAGS include the -DCONFIG_SECURITY_SELINUX_MLS flag,is it right? But there was errors when I want to open the mls policy config file. When I exited the program it said as below:
----------------------------------------------------------------------------------------------
error in the statement ending on line 434 (token ';'): sensitivity definition in non-MLS configuration
error(s) encountered while parsing configuration (first pass)
error reading policy
-----------------------------------------------------------------------------------------------
I think it must because I didn't correctly configure the mls support in the Makefile.
However I can analyze the non-mls policy file with apol.
2.seuser
I couldn't install seuser tool.The error messages is below:
----------------------------------------------------------------------------------------------
ERROR 'syntax error' at token 'every_domain' on line 33340:every_domain(seuser_t)
# FIX: Should be more resticted than this./usr/bin/checkpolicy: error(s) encountered while parsing configuration
make[2]: *** [/etc/security/selinux/policy.15-mls] Error 1
make[1]: *** [policy-install] Error 2
make: *** [install-seuser] Error 2
-----------------------------------------------------------------------------------------------
I guess that seuser tool must use the every_domain but selinux didn't define it so the checkpolicy display the error.
The sepct tool can work well.
3.Another question:
I want to know whether the setools can only run under X window since I can't run them in textmode. The error message is:
----------------------------------------------------------------------------------------------
Application initialization failed: no display name and no $DISPLAY
environment variable
-----------------------------------------------------------
Thanks a lot!
lky