Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Hardened-sources patched up with Xen patches. Possible?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
nlindblad
Guru
Guru
User avatar
Posts: 476
Joined: Thu Jun 30, 2005 1:07 pm
Location: Lund, Sweden
Contact:
Contact nlindblad
Website

Hardened-sources patched up with Xen patches. Possible?

  • Quote

Post by nlindblad » Thu Feb 23, 2006 6:25 pm

Hello fellow Gentooists.

After a few days reading about the Gentoo Hardened Project I decided to set up a test server to apply what I'd learnt. It all worked like a charm and I configured a system intended to act as a shell server. I used the hardened-sources kernel with grsecurity activated along with PaX and the hardened toolchain. The shell server part took advantage of the chroot-ssh patch for opensshd that let's you chroot a user directly at login into a chroot I put up at /chroot. Inside that chroot the users had limited tools and binaries to avoid abuse.

I was very happy with this configuration and I found it very flexible (and secure). But then I realized a chroot is still a part of the main system (same kernel, same ABI, same API, etc.) so I started looking for alternatives and especially at Xen.

I'm not really preparded to sacrifice the hardened kernel and toolchain to get Xen compatibilty. The ideal setup would be to use a hardened system as a hypervisor and setup a hardened system as non-privileged domain too.

I've been nagging about this on #gentoo-hardened for quite a while asking whether a setup like that would be possible without heavy system modifications or ending up with a broken system.

I don't feel like I've got a good answer enough on this topic. So now I'm asking you:
Would it be possible to run a kernel inside Xen that has the hardened patches applied to it (grsecurity and PaX)?
Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved.
Top
Unther
Apprentice
Apprentice
Posts: 163
Joined: Sun Feb 20, 2005 2:29 am

  • Quote

Post by Unther » Fri Feb 24, 2006 11:47 pm

You could try it and see...

It is possible nobody has yet!
Top
meetra
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 135
Joined: Mon Nov 18, 2002 3:33 pm
Location: Porto, Portugal

  • Quote

Post by meetra » Sun Feb 26, 2006 5:34 pm

bump, interesting stuff.
Top
piersdd
n00b
n00b
Posts: 2
Joined: Thu Mar 16, 2006 1:24 am
Location: Sydney, Australia

Hardened sources inside and out of Xen wll be essential

  • Quote

Post by piersdd » Thu Mar 16, 2006 1:33 am

I agree that hardened sources for Xen will be essential.
Any machine that offers services to the net really should be hardened with pic and rsbac/selinux as a minimum.
The prospect of being able to run mulitple virtual servers that can migrate to machines in the even of system failure seams to me to be the future of network services.
Imagine taking a server offline to upgrade hardware and having the virtual server/service migrate to other hardware automatically whilst offline. Or snapshotting a virtual machine, installing new drivers or whatever, bringing online, taking offline due to conflicts, resuming the snapshot, all with other virtual servers taking up the slack, all in the knowledge that the actual underlying hardware was fully redundant.
These sorts of features, which I envisage to be manatory on five-9s services like virtual PBXs, really should be protected to the full. Bring on hardened and xen.
How can I help?
Piers
Top
nlindblad
Guru
Guru
User avatar
Posts: 476
Joined: Thu Jun 30, 2005 1:07 pm
Location: Lund, Sweden
Contact:
Contact nlindblad
Website

  • Quote

Post by nlindblad » Thu Mar 16, 2006 4:28 pm

How about starting a small project analyzing the possibilities of running Gentoo Hardened under Xen and if necessary report what would need to be improved in order to make it work?
Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved.
Top
piersdd
n00b
n00b
Posts: 2
Joined: Thu Mar 16, 2006 1:24 am
Location: Sydney, Australia

Integration of GNAP and Xen could be an elegent solution

  • Quote

Post by piersdd » Fri Mar 17, 2006 1:27 am

not that there ever is 'a [single|good] solution'
I understand that GNAP uses the hardened kernel, GRsec, PaX, PIE/SSP.

given that, in my opinion, the funkest feature of Xen's implementation of para-virtualisation is,
the "decoupling the operating system and its applications from the underlying physical server..." thereby the capacity for "dynamic provisioning and migration in cases of server failure.." "..less than 100 ms migration"

To me this spells out that the hardware really becomes an appliance. Pool'em togther. Virtual servers drift from one appliance to the next, network storage comes into play. Probably AFS suits best.

So we need GNAP extentions for Xen. Is that possible? In addition to the previously discussed need for hardened sources within Xen.

end rant.

links:
http://www.gentoo.org/proj/en/base/embedded/gnap.xml
http://www.xensource.com/files/xen_3.0_datasheet.pdf
Top
kang
Retired Dev
Retired Dev
Posts: 60
Joined: Fri May 17, 2002 3:00 pm
Contact:
Contact kang
Website

  • Quote

Post by kang » Tue May 16, 2006 9:20 am

Btw, while RSBAC does not hook yet into Xen, latest RSBAC svn and latest Xen mercurial repos patch, compile and work fine together (means you can have RSBAC protecting your hypervisor using traditional target list[1]. there should be the special XEN targets someday ^^)

I dont know about the SELinux+Xen status.


[1] RSBAC targets: http://rsbac.org/documentation/rsbac_ha ... d_requests

edit:
1 - we just changed the target&request link in documentation ;)
2 - while updating doc i found this out:
http://wiki.adamantix.org/cgi-bin/wiliki.cgi?XenSupport
Someguy having rsbac+xen made this small info page (on adamantix)
Last edited by kang on Wed May 17, 2006 3:29 pm, edited 1 time in total.
Top
nlindblad
Guru
Guru
User avatar
Posts: 476
Joined: Thu Jun 30, 2005 1:07 pm
Location: Lund, Sweden
Contact:
Contact nlindblad
Website

  • Quote

Post by nlindblad » Tue May 16, 2006 2:48 pm

kang wrote:Btw, while RSBAC does not hook yet into XEN, latest RSBAC svn and latest XEN mercurial repos patch, compile and work fine together (means you can have RSBAC protecting your hypervisor using traditional target list[1]. there should be the special XEN targets someday ^^)

I dont know about the SELinux+XEN status.


[1] RSBAC targets: http://rsbac.org/documentation/targets_and_requests
An interesting update, thank you for letting us know.

Anyone who has tried the combination mentioned above? (SELinux+XEN)?
Please provide detailed tracebacks and your emerge --info when posting compile errors.
Add [SOLVED] to the thread's topic if you feel that your question has been anwered or your problem is solved.
Top
DNAspark99
Guru
Guru
User avatar
Posts: 321
Joined: Fri Sep 03, 2004 4:39 am

  • Quote

Post by DNAspark99 » Thu Mar 01, 2007 12:08 am

well, here I am, trying right now to merge hardened+xen patches into the same kernel, not having any luck.
Any update on this?
Top
roock
n00b
n00b
Posts: 32
Joined: Thu Feb 06, 2003 10:18 am
Location: Korneuburg, Austria

  • Quote

Post by roock » Thu Mar 01, 2007 7:44 pm

there was some interesting post in the grsecurtiy-forums about xen+grsec/pax and seems to work for x86_64. but i didn't try the patches nor didI use more than grsec/pax from the hardened-gentoo-projekt (without xen)

http://forums.grsecurity.net/viewtopic.php?t=1490
Top
Post Reply

10 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy