From: Ian Jackson Subject: [PATCH OSSTEST] ts-logs-capture: ensure captured log files are readable. Date: Wed, 4 Feb 2015 11:44:23 +0000 Message-ID: <21714.1559.718080.309546@mariner.uk.xensource.com> References: <1423043580-18870-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1423043580-18870-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH OSSTEST] ts-logs-capture: ensure captured log files are readable."): > At least /var/log/libvirt/libvirtd.log is 0600 on the target machine > and this gets preserved in the captured logfile, eventually meaning > that apache on the log server cannot read the file to serve it ("You > don't have permission to access..."). > > There seems to be no harm in setting all log files to 0664, so do so. ... > + chmod(0664, "$stash/$llogfile") or die "chmod $stash/$llogfile $!"; I think this is an unwarranted assumption about the umask, sadly. Maybe you want 0666&~umask ? Ian.