<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in accounting</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>d0b2dbfa - Remove $FreeBSD$: one-line sh pattern</title>
        <link>http://172.16.0.5:8080/history/freebsd-14.2/libexec/rc/rc.d/accounting#d0b2dbfa</link>
        <description>Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

            List of files:
            /freebsd-14.2/libexec/rc/rc.d/accounting</description>
        <pubDate>Wed, 16 Aug 2023 17:55:03 +0000</pubDate>
        <dc:creator>Warner Losh &lt;imp@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>1e121c3e - Limit access to system accounting files.</title>
        <link>http://172.16.0.5:8080/history/freebsd-14.2/libexec/rc/rc.d/accounting#1e121c3e</link>
        <description>Limit access to system accounting files.In 2013 the security chapter of the Handbook was updated in r42501 tosuggest limiting access to the system accounting file [*1] by creating theinitial file with a mode of 0600. This was in part based on a discussion inthe forums [*2]. Unfortunately, this advice is overridden by the fact that anew file is created as part of periodic daily processing, and the file modeis set by the rc.d/accounting script.These changes update the accounting script to create the directory with mode0750 if it doesn&apos;t already exist, and to create the daily file with mode0640. This limits write access to root only, read access to root and membersof wheel, and eliminates world access completely. For admins who want toprevent even members of wheel from accessing the files, the mode of the/var/account directory can be manually changed to 0700, because the scriptnever creates or changes that directory if it already exists.The accounting_rotate_log() function now also handles the error cases of noexisting log file to rotate, and attempting to rotate the file multipletimes (.0 file already exists).Another small change here eliminates the complexity of the mktemp/chmod/mvsequence for creating a new acct file by using install(1) with the flagsneeded to directly create the file with the desired ownership andmodes. That allows coalescing two separate if checkyesno accounting_enableblocks into one.These changes were inspired by my investigation of PR 202203.[1] https://www.freebsd.org/doc/handbook/security-accounting.html[2] http://forums.freebsd.org/showthread.php?t=41059PR:		202203Differential Revision:	https://reviews.freebsd.org/D20876

            List of files:
            /freebsd-14.2/libexec/rc/rc.d/accounting</description>
        <pubDate>Sat, 13 Jul 2019 16:07:38 +0000</pubDate>
        <dc:creator>Ian Lepore &lt;ian@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>0696600c - Move the rc framework out of sbin/init into libexec/rc.</title>
        <link>http://172.16.0.5:8080/history/freebsd-14.2/libexec/rc/rc.d/accounting#0696600c</link>
        <description>Move the rc framework out of sbin/init into libexec/rc.The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with   every package update because an rc script was touched.   (a follow-up commit will make init its own package) * having rc in its own place will allow more easy replacement   of the rc framework with alternatives, such as openrc.Discussed with:		brd (during BSDCam), kmooreRequested by:		cem, bzPR:			231522Approved by:		re (gjb)

            List of files:
            /freebsd-14.2/libexec/rc/rc.d/accounting</description>
        <pubDate>Wed, 17 Oct 2018 16:49:11 +0000</pubDate>
        <dc:creator>Bjoern A. Zeeb &lt;bz@FreeBSD.org&gt;</dc:creator>
    </item>
</channel>
</rss>
