"invalid contex" question

David Hampton hampton at employees.org
Thu Feb 10 17:32:59 UTC 2005


I'm running an FC3 system with the latest rawhide strict policy.  I'm
currently trying to tweak the dovecot files for my system and am running
into an invalid context error.  My changes so far:


Index: domains/program/dovecot.te

+type dovecot_data_t, file_type, sysadmfile;
+create_dir_file(dovecot_t, dovecot_data_t)

Index: file_contexts/program/dovecot.fc

+/var/spool/dovecot(/.*)?  system_u:object_r:dovecot_data_t;


The problem is that after a 'make reload' when I try to relabel
the /var/spool/dovecot directory, I get the error message:

/etc/selinux/strict/contexts/files/file_contexts:  line 999 has invalid
context system_u:object_r:dovecot_data_t;

Doing a 'make install' in the policy directory gives me this same error.
Is there something else I need to do to create this new type?
Thanks.

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-selinux-list/attachments/20050210/adf2d238/attachment.sig>


More information about the fedora-selinux-list mailing list