public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Javier J. Martínez Cabezón" <tazok.id0@gmail.com>
To: gentoo-hardened@lists.gentoo.org
Subject: Re: [gentoo-hardened] Profile switch: hardened to non-hardened?
Date: Thu, 25 Dec 2008 17:30:20 +0100	[thread overview]
Message-ID: <897813410812250830i2f910883n62b426dbe5a0329a@mail.gmail.com> (raw)
In-Reply-To: <49bf44f10812250712u35f87d71l750fd67f97204dad@mail.gmail.com>

In terms of userland, non hardened profile doesn't protect you at all
against buffer overflows, you are removing one important security
layer. SSP protects you against buffer overflows in terms that the
vulnerable application gets killed when the canary is modified before
the execution of the arbitrary code. PIE protects you against return
into libc attacks that doesn't need an executable stack. PaX is not
perfect and needs them as complementary solutions. For example I think
that RANDEXEC was removed from PaX time ago, one buffer overflow that
uses return into libc attack could be succesfully against one
non-hardened binary. Since skype is a network oriented software...

2008/12/25 Grant <emailgrant@gmail.com>:
>> Hardened profiles: Yes there's a difference, no you should not switch to
>> hardened/linux/${ARCH} at this time.
>
> Is hardened/x86/2.6 still available for new installations?  My other
> systems are amd64 but none of them list hardened/amd64/2.6.
>
>> You can get skype working by downloading or building gcc 4.1.x and pointing
>> LD_LIBRARY_PATH at the shared object directory when starting skype.  skype
>> won't be using hardened toolchain but since its closed source and you're
>> willing to switch the whole machine to non-hardened I figure you probably
>> don't mind. ;)
>>
>> Example:
>> 1. Download
>> http://tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/gcc-4.1.2.tbz2
>> 2. unpack the archive to ${HOME}/tinderbox-pkgs/sys-devel/gcc/
>> 3. Run it:
>> LD_LIBRARY_PATH="${HOME}/tinderbox-pkgs/sys-devel/gcc/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/"
>> skype
>>
>> If you only require VoIP capability and not skype specifically you might be
>> interested net-im/ekiga.
>
> Thank you very much for that, but I'm trying to simplify.  You see,
> I'm only a fake sysadmin.  Does using a hardened kernel with a
> non-hardened profile still offer good protection?
>
> - Grant
>
>>> > I've been able to do so; basically I switched over to the standard
>>> > profile, disabled selinux in the kernel, and re-emerged system for new
>>> > use flags. There were some other details but overall the process was
>>> > pretty painless, anyone ambitious enough to configure a hardened system
>>> > can probably handle the switch without much problem. Not that I'm
>>> > encouraging you to drop hardened (especially on a laptop that could be
>>> > exposed to random wifi networks ;-)
>>>
>>> Is there any difference between 1 and 8 here?  Should I switch to 8?
>>>
>>> # eselect profile list
>>> Available profile symlink targets:
>>>   [1]   hardened/x86/2.6 *
>>>   [2]   selinux/2007.0/x86
>>>   [3]   selinux/2007.0/x86/hardened
>>>   [4]   default/linux/x86/2008.0
>>>   [5]   default/linux/x86/2008.0/desktop
>>>   [6]   default/linux/x86/2008.0/developer
>>>   [7]   default/linux/x86/2008.0/server
>>>   [8]   hardened/linux/x86
>>>
>>> - Grant
>>>
>>> >> Can I switch my laptop's profile from a hardened one to a non-hardened
>>> >> one?  I thought this was impossible without a complete reinstall but
>>> >> folks on the gentoo-user list seem to think it's not a problem.
>>> >>
>>> >> - Grant
>
>



  reply	other threads:[~2008-12-25 16:30 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-23 21:23 [gentoo-hardened] Profile switch: hardened to non-hardened? Grant
2008-12-23 21:33 ` Ned Ludd
2008-12-23 21:43 ` Marc Lemaire
2008-12-23 21:56   ` Grant
2008-12-23 22:15     ` Vlad "SATtva" Miller
2008-12-23 23:29       ` Cyprien Nicolas
2008-12-24 15:46     ` [gentoo-hardened] " 7v5w7go9ub0o
2008-12-23 22:31   ` [gentoo-hardened] " Grant
2008-12-24 17:03   ` Grant
2008-12-25  0:21     ` Gordon Malm
2008-12-25 15:12       ` Grant
2008-12-25 16:30         ` Javier J. Martínez Cabezón [this message]
2008-12-26  1:52           ` Grant
2008-12-26 19:17             ` Javier J. Martínez Cabezón
2008-12-26 20:47               ` Grant
2008-12-27  8:49                 ` Javier J. Martínez Cabezón
2008-12-27 15:47                   ` Grant
2008-12-27 16:18                     ` Javier J. Martínez Cabezón
2008-12-27 20:30                       ` Grant
2008-12-27 22:35                         ` Ned Ludd
2008-12-30  1:05                           ` Grant
2008-12-30  5:52                             ` Ned Ludd
2008-12-30 20:31                               ` Grant
2008-12-30 21:44                                 ` Ned Ludd
2009-01-01 16:22                                   ` Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=897813410812250830i2f910883n62b426dbe5a0329a@mail.gmail.com \
    --to=tazok.id0@gmail.com \
    --cc=gentoo-hardened@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox