[CentOS] SELinux file permissions

Mon Jan 23 18:57:14 UTC 2017
Tim Smith <r.a.n.d.o.m.d.e.v.4+centos at gmail.com>


I'm trying to grant dovecot the ability to manage its socket within
the postfix spool directory.

I have added the below to file_contexts.local :

/var/spool/postfix/private/dovecot-auth system_u:system_r:dovecot_t:s0

However, running "restorecon -v
/var/spool/postfix/private/dovecot-auth" gives me the following error

restorecon:  lstat(/var/spool/postfix/private/dovecot-auth) failed:
No such file or directory

I cannot create the socket file in advance, because dovecot manages
it, and if you "touch" the file, dovecot complains.

Where am I going wrong ?

Thanks !