On Thu, 2012-01-12 at 10:20 +0300, Eugene Budanov wrote: > Hi! > > At first, I apologize for my terrible English. > > I'm trying to make a port of SELinux for ROSA/Mandriva Linux from Fedora Linux. > But a have a problem. In general, the most functions and packages built and works fine but I cannot compile package for selinux policy. It crashes with this error: > > tmp/unconfineduser.mod.role > echo "')" >> tmp/unconfineduser.mod.role > m4 -D enable_mcs -D distro_redhat -D mls_num_sens=16 -D mls_num_cats=1024 -D mcs_num_cats=1024 -D hide_broken_symptoms -s support/divert.m4 policy/support/file_patterns.spt policy/support/ipc_patterns.spt policy/support/obj_perm_sets.spt policy/support/misc_patterns.spt policy/support/misc_macros.spt policy/support/mls_mcs_macros.spt policy/support/loadable_module.spt support/undivert.m4 tmp/generated_definitions.conf tmp/all_interfaces.conf policy/modules/roles/unconfineduser.te tmp/unconfineduser.mod.role > tmp/unconfineduser.tmp > /usr/bin/checkmodule -M -m tmp/unconfineduser.tmp -o tmp/unconfineduser.mod > /usr/bin/checkmodule: loading policy configuration from tmp/unconfineduser.tmp > policy/modules/roles/unconfineduser.te":47:ERROR 'unknown role unconfined_r' at token ';' on line 3315: > #line 47 > role unconfined_r types unconfined_t; Offhand, I would guess that this is due to a change made in the checkpolicy policy compiler that requires you to separately declare roles on their own rather than implicitly declaring them as part of any role...types declaration. So you would need to add a: role unconfined_r; to your policy. -- 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@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.