Re: SELinux file permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

restorecon works only for existing files, for new files you are looking for
file transition rule.

Google that out, there is plenty of articles on that topic, for example:

https://fedoraproject.org/wiki/Features/SELinuxFileNameTransition

LZ

2017-01-23 19:57 GMT+01:00 Tim Smith <r.a.n.d.o.m.d.e.v.4+centos@xxxxxxxxx>:

> Hi,
>
> 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 !
>
> Tim
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> https://lists.centos.org/mailman/listinfo/centos
>



-- 
S pozdravem / Best regards
  Lukas Zapletal
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux