From archie@dellroad.org  Tue Jan 28 08:00:11 2003
Return-Path: <archie@dellroad.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 23A8237B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Jan 2003 08:00:11 -0800 (PST)
Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 259D443E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Jan 2003 08:00:10 -0800 (PST)
	(envelope-from archie@dellroad.org)
Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20])
	by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id HAA24913
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Jan 2003 07:45:30 -0800 (PST)
Received: from arch20m.dellroad.org (localhost [127.0.0.1])
	by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id h0SHjMjM004189
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Jan 2003 09:45:22 -0800 (PST)
	(envelope-from archie@arch20m.dellroad.org)
Received: (from archie@localhost)
	by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id h0SHjMux004188;
	Tue, 28 Jan 2003 09:45:22 -0800 (PST)
	(envelope-from archie)
Message-Id: <200301281745.h0SHjMux004188@arch20m.dellroad.org>
Date: Tue, 28 Jan 2003 09:45:22 -0800 (PST)
From: Archie Cobbs <archie@dellroad.org>
Reply-To: Archie Cobbs <archie@dellroad.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: daily security run complains if timezone changes
X-Send-Pr-Version: 3.113

>Number:         47596
>Category:       conf
>Synopsis:       [periodic] daily security run complains if timezone changes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 28 08:00:16 PST 2003
>Closed-Date:    
>Last-Modified:  Sat May 24 17:15:48 UTC 2008
>Originator:     Archie Cobbs
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Packet Design
>Environment:
System: FreeBSD arch20m.dellroad.org 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Nov 23 14:42:21 PST 2002 archie@arch20m.dellroad.org:/usr/obj/usr/src/sys/THINKPAD i386


>Description:

I changed the timezone on my system. That night, I got the
daily security check email, containing this:

Checking setuid files and devices:
arch20m.dellroad.org setuid diffs:
1,238c1,238
< 133 -r-sr-xr-x  1 root  wheel     249576 Oct  9 07:44:10 2002 /bin/rcp
< 1228 -r-xr-sr-x  1 root  kmem       65944 Oct  9 07:45:20 2002 /sbin/ccdconfig
< 1274 -r-sr-xr-x  1 root  wheel     201836 Oct  9 07:45:27 2002 /sbin/ping
< 1275 -r-sr-xr-x  1 root  wheel     202816 Oct  9 07:45:27 2002 /sbin/ping6
< 1279 -r-sr-xr-x  1 root  wheel     198488 Oct  9 07:45:28 2002 /sbin/route
< 1284 -r-sr-x---  1 root  operator  168272 Oct  9 07:45:28 2002 /sbin/shutdown

[ ... snip ... ]

---
> 133 -r-sr-xr-x  1 root  wheel     249576 Oct  9 05:44:10 2002 /bin/rcp
> 1228 -r-xr-sr-x  1 root  kmem       65944 Oct  9 05:45:20 2002 /sbin/ccdconfig
> 1274 -r-sr-xr-x  1 root  wheel     201836 Oct  9 05:45:27 2002 /sbin/ping
> 1275 -r-sr-xr-x  1 root  wheel     202816 Oct  9 05:45:27 2002 /sbin/ping6
> 1279 -r-sr-xr-x  1 root  wheel     198488 Oct  9 05:45:28 2002 /sbin/route
> 1284 -r-sr-x---  1 root  operator  168272 Oct  9 05:45:28 2002 /sbin/shutdown


It thinks that the files have changed simply because their timestamps
are shown in a different local time.

>How-To-Repeat:

Change timezone, wait for security check email.

>Fix:

List the timzones in GMT instead.



>Release-Note:
>Audit-Trail:

From: mwm@mired.org
To: bug-followup@FreeBSD.org, archie@dellroad.org
Cc:  
Subject: Re: bin/47596: daily security run complains if timezone changes
Date: 21 Jun 2005 21:22:45 -0000

 The fix to this problem - doing the timezone in GMT - is to add the line
 
 export TZ=GMT
 
 near the start of the /etc/periodic/security/100.chksetuid, which seems to be the
 only script in /etc/periodic/security that is doing an ls and checking for
 changes.
 
 	<mike
 
 
>Unformatted:
