LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-26-2006, 06:44 AM   #1
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429
Blog Entries: 2

Rep: Reputation: 30
Linux Security Primer


Hello!

After much learning experience (and toil), I finally managed to configure a system to my likings. It is a laptop, so things were a bit more complicated.

However, I am seeing now that there are many security issues, and I feel a bit deseperate with them. I patched up my 2.6.12 kernel with all the laptop configs, only to find out that I should upgrade my kernel because of security issues. And upgrading a kernel means patching, configuring, installing, etc.

Also, I see Firefox and other applications have holes as well. So does this mean I need to run updates all the time? I am not interested in newer versions of applications, because they can many times need new configuring, just because of security issues.

Any help getting the security thing straight would be great.

Murdock
 
Old 04-26-2006, 07:19 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Since you didn't list which distro you're using, let's pretend it's Slackware.

Why would you need to upgrade from 2.6.12 because of security issues? You can compile that kernel with no modules, everything built in, and it should be as secure as any later version. If not, you can either get the new sources and recompile using your present .config file, or patch it. New sources is easier for me, and I like that better than patches -- but it's just personal preference. You can do this in perhaps 10 minutes or less depending upon your CPU.

For Slackware there is a ChangeLog that contains updated apps for security issues. I've linked you to Slackware-10.2, since it's the latest stable version as of this date. You could easily search and find the same for a different version.

With Slackware all you need do is get the Slackpacks from an official Slackware mirror, then upgrade your system by issuing as root "upgradepkg --install-new <packagename>" and it's done for you. Can't be easier, or work better, than that.
 
Old 04-26-2006, 07:25 AM   #3
Murdock1979
Member
 
Registered: Oct 2003
Distribution: Slackware Debian VectorLinux
Posts: 429

Original Poster
Blog Entries: 2

Rep: Reputation: 30
Thank you for the straightforward pragmatic reply.

As for upgrading because of kernel holes, here's a typical example: http://www.securityfocus.com/bid/17587
Bugs in the kernel are being patched all of the time.

So the question is how often I should recompile my kernel if I am happy with the current system?

Murdock
 
Old 04-26-2006, 07:59 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Please accept my apology for the reply -- I had to Google "define: pragmatic" to learn.

At the moment I can't provide a link, but believe that I've read that a kernel is not vulnerable if you compile it without modules. For instance, on my server this is the output:
Code:
mingdao@paul:~$ lsmod
Module                  Size  Used by    Not tainted
mingdao@paul:~$
Though it took using a proxy server from here, I navigated to the link you provided and read:
Quote:
Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com
While there are some security issues, it seems that reading the Kernel.org Changelog will let you know if there is one that warrants a new kernel.

As for patching, configuring, installing -- I don't have those issues. For maybe 2 years I've been running 2.6 kernels, and this is all I do.

1 - download source from Kernel.org via wget to the kernel-source directory on my server
2 - cp to kernel build directory on comp on the LAN and cd to there
3 - tar -xvjf linux-2.6.16.11.tar.bz2
4 - cd ./linux-2.6.16.11
5 - make silentoldconfig (answering any changes, which you are aware of because of the Changelog previously read)
6 - make
7 - cp System.map /boot/System.map-2.6.16.11 ; ln -sf /boot/System.map-2.6.16.11 /boot/System.map
8 - make modules_install (if you have any modules, not if you don't)
9 - cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.16.11
10 - edit /etc/lilo.conf
11 - lilo
12 - reboot and enjoy shiny new Linux kernel

That is really how simple it is, and this AMD Athlon(tm) 64 Processor 3200+ has a 1M L2 cache, and runs make on full, new, virgin kernel source in about 8 minutes. So the whole process really is less than 15 minutes.

Now, on my server, I'm still running Slackware-10.1 with patched apps and a custom 2.4.31

And I tried RedHat and Debian before Slackware. Their package managers, IMO, can't compare with Slackware's pkgtool. And Pat posts patched apps, so it's really quite easy. I live in China, where bad guys on the internet rule, and in three years have had nothing hurt. I do have quite a bit of security presence, but I think that's easy for anybody willing to learn.

But it goes without saying I'm not a security expert, so I should never have replied maybe. What I do for kernels on mission critical systems is read the Changelogs. There are lots of changes that have nothing whatsoever to do with my hardware, which is basically why my server is still running a 2.4.31 kernel after all this time. You know, if it ain't broke, don't fix it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Killing With Linux: A Primer LXer Syndicated Linux News 0 04-25-2006 09:33 PM
Help. Need a Library Primer xflow7 Linux - General 1 10-23-2004 02:44 AM
Primer on web browsers requested Franklin Linux - Software 1 08-11-2004 11:46 PM
DHCP Server Primer?? QuadMonk Linux - Networking 2 04-25-2002 03:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration