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
On Thu, 2005-02-10 at 12:32, David Hampton wrote:
Index: file_contexts/program/dovecot.fc
+/var/spool/dovecot(/.*)? system_u:object_r:dovecot_data_t;
No semicolon terminators in file contexts files. They are just newline delimited.
On Thu, 2005-02-10 at 12:31 -0500, Stephen Smalley wrote:
On Thu, 2005-02-10 at 12:32, David Hampton wrote:
Index: file_contexts/program/dovecot.fc
+/var/spool/dovecot(/.*)? system_u:object_r:dovecot_data_t;
No semicolon terminators in file contexts files. They are just newline delimited.
Thanks. (Boy do I feel silly.)
David
selinux@lists.fedoraproject.org