Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Dec 2013 00:27:18 +0000
From:      dgmm <freebsd01@dgmm.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: System reboots ~3am during daily periodic 450.status-security run
Message-ID:  <201312020027.18293.freebsd01@dgmm.net>
In-Reply-To: <201312012352.01075.freebsd01@dgmm.net>
References:  <201312012352.01075.freebsd01@dgmm.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sunday 01 December 2013 23:52:00 dgmm wrote:
> My system reboots at 3am when /etc/periodic/daily/450.status-security

I've now narrowed it down to:

/etc/periodic/security/100.chksetuid

...but have no idea why it might a catastophic crash/reboot.

#!/bin/sh -
...
# $FreeBSD: release/9.1.0/etc/periodic/security/100.chksetuid 175906 
2008-02-03 00:33:05Z des $
#

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/periodic.conf ]
then
    . /etc/defaults/periodic.conf
    source_periodic_confs
fi

. /etc/periodic/security/security.functions

rc=0

case "$daily_status_security_chksetuid_enable" in
    [Yy][Ee][Ss])
        echo ""
        echo 'Checking setuid files and devices:'
        MP=`mount -t ufs,zfs | awk '$0 !~ /no(suid|exec)/ { print $3 }'`
        find -sx $MP /dev/null -type f \
            \( -perm -u+x -or -perm -g+x -or -perm -o+x \) \
            \( -perm -u+s -or -perm -g+s \) -exec ls -liTd \{\} \+ |
        check_diff setuid - "${host} setuid diffs:"
        rc=$?
        ;;
    *)
        rc=0
        ;;
esac

exit $rc



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201312020027.18293.freebsd01>