LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   SELinux: rules migration to new version - unknown type var_lib_t (https://www.linuxquestions.org/questions/fedora-35/selinux-rules-migration-to-new-version-unknown-type-var_lib_t-725205/)

zbiggy 05-11-2009 09:32 AM

SELinux: rules migration to new version - unknown type var_lib_t
 
Hello,

I try to use SELinux rule which was used previously on RHEL4 but it fails during compilation. It looks all basic types like: var_lib_t, sysadmfile, initrc_t, sysadm_t, fonts_t, proc_t and other does not exist anymore. Do you know replacements or how to port RHEL4 SELinux attribute definitions to Fedora? On RHEL4 they were stored in /etc/selinux/targeted/src/policy/domains/program directory. I tried to copy it but make ignores it:

[root@localhost devel]# make
Compiling targeted jboss module
/usr/bin/checkmodule: loading policy configuration from tmp/jboss.tmp
jboss.te:113:ERROR 'unknown type var_lib_t' at token ';' on line 92422:
allow jboss_t var_lib_t:dir search;
#allow jboss_t fonts_t:file r_file_perms;
/usr/bin/checkmodule: error(s) encountered while parsing configuration
make: *** [tmp/jboss.mod] Error 1

acid_kewpie 05-11-2009 09:43 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 10:14 AM.