Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2014 02:37:24 +0400
From:      Morhold <freebsd-security@morhold.ru>
To:        freebsd-security@freebsd.org
Subject:   Re: freebsd-update.conf IgnorePaths linker.hints not working
Message-ID:  <53A0C324.20200@morhold.ru>
In-Reply-To: <5386957E.2070000@calorieking.com>
References:  <5382A982.6090304@calorieking.com> <86vbssr665.fsf@nine.des.no> <538494E8.2060302@rsle.net> <5386957E.2070000@calorieking.com>

next in thread | previous in thread | raw e-mail | index | archive | help
29.05.2014 6:03, Gregory Orange пишет:
> On 27/05/14 21:36, R. Scott Evans wrote:
>> On 05/26/14 10:00, Dag-Erling Smørgrav wrote:
>>> This was supposed to be fixed by the following errata notice:
>>> http://www.freebsd.org/security/advisories/FreeBSD-EN-14:04.kldxref.asc
>>
>> Well it is still broken after the 9.2-RELEASE-p6 also in that errata.
>>
>> The relevant thread in freebsd-questions:
>> http://lists.freebsd.org/pipermail/freebsd-questions/2014-May/258238.html 
>>
>
> I'm left wondering what to do next:
> * Should I simply delete linker.hints - would that cause unwanted 
> behaviour?
> * Should I instead move linker.hints aside before freebsd-update cron 
> & freebsd-update install, then move it back again? That seems to work 
> on a manual test, but seems ugly.
> * Should I post an official PR somewhere?
>
> Greg.
> _______________________________________________
> freebsd-security@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-security
> To unsubscribe, send any mail to 
> "freebsd-security-unsubscribe@freebsd.org"
>

Same here with 9.1-RELEASE-p14:

# freebsd-update fetch
...
The following files will be updated as part of updating to 9.1-RELEASE-p15:
/boot/kernel/linker.hints
#

So I just did like this:
   - copied /usr/sbin/freebsd-update to /usr/sbin/freebsd-update,my
   - applied to /usr/sbin/freebsd-update,my the following patch:

--- /usr/sbin/freebsd-update    2014-06-18 02:04:54.000000000 +0400
+++ /usr/sbin/freebsd-update,my 2014-06-18 02:08:12.000000000 +0400
@@ -2078,6 +2078,13 @@
         # Fetch files.
         fetch_files || return 1

+       mv INDEX-PRESENT INDEX-PRESENT,orig
+       grep -v '/boot/kernel/linker.hints' INDEX-PRESENT,orig > 
INDEX-PRESENT
+       rm INDEX-PRESENT,orig
+       mv INDEX-NEW INDEX-NEW,orig
+       grep -v '/boot/kernel/linker.hints' INDEX-NEW,orig > INDEX-NEW
+       rm INDEX-NEW,orig
+
         # Create and populate install manifest directory; and report what
         # updates are available.
         fetch_create_manifest || return 1

  - in /etc/crontab replaced "freebsd-update cron" to "freebsd-update,my 
cron"

Now waiting what will happen after.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53A0C324.20200>