From 4f938478d7f780d18691ac30bd7c211336312115 Mon Sep 17 00:00:00 2001 From: Mike Hibler Date: Thu, 29 Jan 2015 16:12:13 -0700 Subject: [PATCH] Only export approved project dirs to boss on behalf of users. The /proj and /groups directories don't exist for unapproved projects and that was causing mountd to get all uppity. --- tbsetup/exports_setup.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tbsetup/exports_setup.in b/tbsetup/exports_setup.in index cbe17a405..e0a0b05d7 100644 --- a/tbsetup/exports_setup.in +++ b/tbsetup/exports_setup.in @@ -263,7 +263,9 @@ if ($WITHZFS && $ZFS_NOEXPORT) { "left join users as u on u.uid_idx=s.uid_idx ". "left join group_membership as m on ". " m.uid_idx=u.uid_idx and m.pid=m.gid ". + "left join projects as p on p.pid=m.pid ". "where u.status='" . USERSTATUS_ACTIVE() . "' and ". + " p.approved=1 and ". " (((UNIX_TIMESTAMP(now()) - ". " UNIX_TIMESTAMP(s.last_activity)) <= $limit) or ". " ((UNIX_TIMESTAMP(now()) - ". -- GitLab