summaryrefslogtreecommitdiff
path: root/etc/daily
AgeCommit message (Collapse)Author
2019-09-09Inform about system call memory write protection and stack mappingAlexander Bluhm
violations in system accounting. This will help to find missbehaving programs and possible attacks. The flags bit field is full, so recycle the PDP-11 compatibility on VAX. lastcomm(1) prints the AMAP flag as 'M'. daily(8) prints a list of affected processes. OK deraadt@
2019-07-25Show unveil(2) violators in lastcomm(1) output and daily mail.Alexander Bluhm
input Janne Johansson, schwarze@; OK deraadt@ millert@
2018-02-06Print an explicit error if the backup volume is not present inTheo Buehler
hw.disknames. This can only happen due to a failure or user error. In either case, silent failure makes it hard to discover and debug. Now it will be easy to spot in the daily mail. ok rob, schwarze
2017-07-10Test if an acct file exists before trying to rename it. This silencesAlexander Bluhm
false warnings in the frist three daily mails after process accounting has been turned on. from Raf Czlonka
2017-06-10Report processes that were killed due to pledge or memory accessAlexander Bluhm
violations in the daily mail. OK millert@ jmc@
2016-04-29Delete invocation of mailq(1) that was present for historical reasons.Ingo Schwarze
On a real mailserver, it's too noisy and may be a privacy concern. On a machine that's not a mailserver, it's pointless. Besides, Theo points out that running subsystems that potentially parse untrusted user data daily, at a predictable time, as root is not a very good idea in the first place. Suggested by millert@; gilles@ matthieu@ deraadt@ sthen@ agree
2016-04-01Tweak rcctl wording.Antoine Jacoutot
from ian@
2016-04-01Rename the 'faulty' list action to 'failed'; it clearer.Antoine Jacoutot
prodded by matthieu@ ok millert@ jung@ sthen@
2016-01-28Run "rcctl ls faulty", which is silent when all services work as expected.Ingo Schwarze
Based on an original idea and a different patch from landry@. OK jung@ zhuk@ landry@ krw@ agreed to the general idea
2015-12-30Remove portslocks from /etc/daily. The ports LOCKDIR was moved from /tmpRobert Peichaer
to /usr/ports/pobj years ago. OK millert@, ajacoutot@
2015-04-29VERBOSESTATUS or no VERBOSESTATUS, failed or missing dumps are stillAlexander Hall
worth noting "go ahead" schwarze@
2014-11-17Make /var/tmp a symbolic link to /tmp. The creation of /var/tmp in theTheo de Raadt
often space-constrained /var filesystem was a historical mistake. There are big implications for the daemons which assume they won't run out of space, and this is a first step towards trying to improve the situation. Move /tmp to the same 7-day expiration rules that /var/tmp had. vi.recover works just as well as before, except on memory filesystems; indicating that vi should be repaired to write files into homedirs or something. done with rpe ok many
2014-07-02don't clear tmux session sockets in daily(8)'s tmp cleanup, from Rafael ZalamenaStuart Henderson
ok schwarze@
2014-04-24jmc spotted more ruptime tentaclesTed Unangst
2014-04-24rm rwhod tentaclesTed Unangst
2013-12-12Have df(1) in the daily output show the inodes used/free.Brad Smith
a few developers thought this was a reasonable/good idea.
2013-11-03ugly spacesTheo de Raadt
2013-01-06backout atactl check; I had warned that this would try a lot of codeTheo de Raadt
paths which are rarely tried. Problem reported by a few on the list.
2012-12-11Add a SMART check using atactl(8) against disks that support and haveAntoine Jacoutot
SMART enabled. Committing now so that it gets broader testing. Man page bits will be added once we are confident there is no side effect and this can stay. inputs from sthen@ halex@ weerd@ ok deraadt@
2012-02-11Fix previous fix for /altroot processing. Should now work for bothKenneth R Westerback
duid and device entries in fstab. As a bonus make commented out lines in fstab in-eligable for altroot detection. ok halex@ deraadt@
2012-02-08Let /altroot work with a duid-based fstab.Kenneth R Westerback
Reported by & fix tested by Dave Anderson. Thanks! ok deraadt@
2011-12-06closing fd 0-2 is indeed bad style and potentially dangerous, as pointedAlexander Hall
out by Arne Becker, who also supplied the diff, thanks! ok schwarze@ agreed by many
2011-04-23Even though SUIDSKIP used to be a mere shell variable, it was propagatedIngo Schwarze
to the old /etc/security script because daily sourced it. Now we fork and exec, so SUIDSKIP must be promoted to the environment. Problem reported, fix tested and ok weerd@.
2011-04-17Switch from the old shell script /etc/securityIngo Schwarze
to the new Perl script /usr/libexec/security. The new script was tested by sthen@ and ajacoutot@. Committing now due to repeated prodding from deraadt@. In case problems show up, they will be fixed in tree.
2011-04-15Silence errors in the temp dir cleanup processAlexander Hall
ok phessler@ sthen@
2010-09-22Kill msgs. Noone uses it, and it has a longjmp in it.Theo de Raadt
Lots of agreement.
2010-07-25handle portslock. reminded by antoine@Marc Espie
2009-05-26Three rdist log file name improvements on one single line:Ingo Schwarze
1) replace +%e by +%d, unescaped blanks don't work at all in file names 2) replace +%b by +%m to make log files sort better by month 3) replace the home-grown +%Y.%m.%d by the standard +%F (= +%Y-%m-%d) from Tim van der Molen <tbvdm at xs4all dot nl>, thanks! ok okan@
2009-05-25polish comments, no functional change:Ingo Schwarze
1) advertise *.local and next_part near the top of the three scripts 2) daily: mention smtpd(8) mailq behaviour (like for sendmail, postfix, exim) 3) weekly: drop a comment trivially rehashing the next two lines of code documenting next_part in the scripts was suggested by jmc@ ok sthen@ okan@ halex@; "i won't object" ajacoutot@
2009-05-24Before dd'ing raw partitions around, do stricter sanity checking:Ingo Schwarze
Do not attempt to copy a larger partition onto a smaller one. Backup of non-ffs root partitions was never supported, so don't even try. (Both of the above suggested by guenther@). Also add error messages in case ROOTBACKUP is switched on but severely misconfigured - those were silently ignored in the past: /altroot not defined or wrong type or on the same device as root. otto@ agrees that checking the sizes makes sense
2009-05-21skip the ROOTBACKUP when the destination disk device is not configured;Ingo Schwarze
suggested, tweaked and ok by guenther@
2009-05-18handle PATH in the same way as in monthly(8) and weekly(8),Ingo Schwarze
i.e. rely on the PATH set up in the root crontab(5) in case /usr/local/bin is needed, daily.local is a logical place to append it suggested by ajacoutot@; "i like this" okan@; feedback jmc@ deraadt@; "i don't strongly object" sthen@
2009-05-17move kern.version and uptime back to the top of the outputIngo Schwarze
by moving it down to the bottom of the code; "I definitely like this" ajacoutot@
2009-05-11New variable VERBOSESTATUS (=1 by default).Ingo Schwarze
When set to 0, daily(8) won't send mail unless there is something to report. Using feedback from kettenis@ henning@ jmc@ OK sthen@ jmc@
2009-05-10avoid unnecessary changes of the outputIngo Schwarze
in order not to annoy parser scripts and their owners (like henning@)
2009-05-09make weekly and monthly silent by defaultIngo Schwarze
add the same infrastructure to daily; silencing daily needs another step discussed with ajacoutot@ okan@ todd@ sthen@ deraadt@ jmc@ "immediately commit" deraadt@ (without seeing the final diff)
2009-05-03remove dead code and the associated documentationIngo Schwarze
while here, remove the misleading shbang and an unused variable and add the missing cross reference to ac(8) ok sthen@ jmc@
2006-10-26Force umask to 022 so we don't heritate 077 from root's crontab commandAntoine Jacoutot
(output logs are still umask 077) "i think this is right" deraadt@
2006-10-04make code look betterTheo de Raadt
2006-10-04Exit when asked to. OK by deraadt, spotted by lumpy.Hugh Graham
2005-12-06Remove fdescfsPedro Martelletto
2005-11-24Remove kernfs, okay deraadt@.Pedro Martelletto
2005-09-29ok, add uptime after kernel versionTheo de Raadt
2005-03-17Don't rmdir .ICE-unix from /tmp or /var/tmp either. OK deraadt@Todd C. Miller
2005-03-16Don't rmdir vi.recover or .X11-unix from /tmp or /var/tmp. OK deraadt@Todd C. Miller
2004-12-07Use df to verify that we are not booted from the altboot before doingTodd C. Miller
the / -> /altroot copy. OK deraadt@
2004-11-15add kern.version to daily report. ok deraadt@Nick Holland
2003-07-28remove check for /etc/news.expire;Jason McIntyre
ok millert@
2003-06-30some more extra mktemp randomness; millert@ okAnil Madhavapeddy
2003-06-03by means of utilising -f avoid some warnings when rotating accounting files; ↵Michael Shalayeff
millert@ ok