On Fri, 2012-05-11 at 00:02 -0500, Ian Pilcher wrote:
> I am getting an SELinux error every time dovecot starts, because it is
> trying to access my music directory (/srv/music). I've read the
> doveadm-mount man page, and tried:
>
> doveadm mount add /srv/music ignore
>
> but it didn't make any difference.
This removes the warning that Dovecot gives.
> Now, I certainly didn't tell dovecot to access this directory, so how
> can I tell it *not* to do so.
Does the attached patch help? If yes, I guess I could do some changes so
it isn't being called.
diff -r fac49069993a src/lib/mountpoint.c
--- a/src/lib/mountpoint.c Mon May 14 18:09:10 2012 +0300
+++ b/src/lib/mountpoint.c Mon May 14 18:19:50 2012 +0300
@@ -277,10 +277,12 @@
iter->mnt.device_path = ent->mnt_fsname;
iter->mnt.mount_path = ent->mnt_dir;
iter->mnt.type = ent->mnt_type;
+#if 0
if (stat(ent->mnt_dir, &st) == 0) {
iter->mnt.dev = st.st_dev;
iter->mnt.block_size = st.st_blksize;
}
+#endif
return &iter->mnt;
}
return NULL;