how to update the revision information
Hi All, The blow information can be found when we boot up the system, also can use command uname -v my question is how can I change this, and I cannot rebuild it ,because on my freebsd, I dont have src anymore . [image: Inline image 1] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: how to update the revision information
On 04/07/2012 12:13, Bill Yuan wrote: The blow information can be found when we boot up the system, also can use command uname -v Unfortunately the mailing list software has stripped your attachment. For this sort of thing, its good to put your image up on a pastebin site and include the link in your e-mail. my question is how can I change this, and I cannot rebuild it ,because on my freebsd, I dont have src anymore . Well, the info that uname(1) prints out is generated from the source code at compile time. Recompiling the kernel, or updating the kernel via eg. freebsd-update(8) are the only ways to change it. If you're asking about the perennial I just security-patched my system with freebsd-update, but uname still shows the old patch-level thing, then yeah. Unless freebsd-update supplies you with a whole new kernel image, which only happens when a security bug involves the kernel, then the uname output will not be changed. It's a flaw, but any solutions involving being able to tweak uname settings without changing kernels open up a whole can of security worms[*] which are, on the whole, worse than living with some mildly outdated data. Cheers, Matthew [*] J. Random Blackhat could fake you into thinking the system was patched and up to date when in fact it was still vulnerable to exploitation. -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey signature.asc Description: OpenPGP digital signature
Re: how to update the revision information
Thanks very much, I found the source code of the loader, on the newvers.sh it will generate a vers.c I changed this script, and manually created this vers.c file. it will be inlcude in all other sources. and it contains all system version. that's my way to change it . thanks, On Wed, Jul 4, 2012 at 9:43 PM, Matthew Seaman matt...@freebsd.org wrote: On 04/07/2012 12:13, Bill Yuan wrote: The blow information can be found when we boot up the system, also can use command uname -v Unfortunately the mailing list software has stripped your attachment. For this sort of thing, its good to put your image up on a pastebin site and include the link in your e-mail. my question is how can I change this, and I cannot rebuild it ,because on my freebsd, I dont have src anymore . Well, the info that uname(1) prints out is generated from the source code at compile time. Recompiling the kernel, or updating the kernel via eg. freebsd-update(8) are the only ways to change it. If you're asking about the perennial I just security-patched my system with freebsd-update, but uname still shows the old patch-level thing, then yeah. Unless freebsd-update supplies you with a whole new kernel image, which only happens when a security bug involves the kernel, then the uname output will not be changed. It's a flaw, but any solutions involving being able to tweak uname settings without changing kernels open up a whole can of security worms[*] which are, on the whole, worse than living with some mildly outdated data. Cheers, Matthew [*] J. Random Blackhat could fake you into thinking the system was patched and up to date when in fact it was still vulnerable to exploitation. -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org