Slashdot Mirror


HP-LX 1.0 Secure Linux

kengreenebaum writes: "Webtechniques has a short but interesting article on HP's approach to a secure but expensive LINUX distro. Basically they started with RedHat 7.1 and added compartments; an extension to the age-old chroot jail concept where the processes representing major services run. Kernel extensions allow HP (or the administrator) to specify which compartments can access which kernel resources including individual files, network stacks, and each other. HP has Technical Product Brief as well as other material online. Interesting to compare HP's approach to that of the NSA's Secure Linux projects. These concepts sound like a solid way to prevent buffer overflow type security holes in individual services from compromising the entire machine. At $3000 HP-LX is too expensive for many to experiment with but the NSA's code seems to be more readily available. Anybody have experience with these distributions or with similar approaches to Linux security?"

182 comments

  1. NSA SELinux by joshamania · · Score: 4, Interesting

    I'd just like to comment upon the NSA's Security-Enhanced Linux project.

    It is certainly more accessible, and I've prompted my company to look into it. Considering the current political environment, I believe this is a good way for small consulting companies to distinguish themselves.

    "Why, yes, Mr. Customer, we are very familiar with computer security and specialize in using products developed by the National Security Agency. If it's good enough for the NSA, don't you think it is good enough for your business?

    1. Re:NSA SELinux by SmittyTheBold · · Score: 1

      Why, yes, Mr. Customer, we are very familiar with computer security and specialize in using products developed by the National Security Agency. If it's good enough for the NSA, don't you think it is good enough for your business?

      Somewhat like Magic Lantern? Or was that some other USGov organization?

      I'm not so sure I want to trust "government-level" security these days...

      --
      ± 29 dB
    2. Re:NSA SELinux by ZPO · · Score: 1

      The difference is its a set of kernel patches. You can read them and see if there is anything improper going on..

    3. Re:NSA SELinux by Anonymous Coward · · Score: 0

      The difference is its a set of kernel patches. You can read them and see if there is anything improper going on..

      if he/she is qualified enough to be a kernel hacker. Unfortunately, not that many people are.

    4. Re:NSA SELinux by Malcontent · · Score: 2

      How many people need to read them? Just one or two and it's good enough for me. I am sure that by now people who are kernel hacker have at least looked at it since nobody was screaming about it I presume every thing is hunky dory.

      --

      War is necrophilia.

  2. What about GPL, GNU, etc? by headkase · · Score: 2, Insightful

    Doesn't HP have to release their source code to comply with the GPL?

    --
    Shh.
    1. Re:What about GPL, GNU, etc? by pmcneill · · Score: 5, Insightful

      Yes and no. They have to release the source to the people to whom the product is distributed. However, they don't have to make it publically available. The catch is that the people who receive the source can also redistribute it at will. As someone else pointed out, the source is available here.

      I expect, however, that HP has some proprietary stuff that's included in non-GPLd binaries.

    2. Re:What about GPL, GNU, etc? by gomadtroll · · Score: 1

      While this is a good question, (gpl, gnu) I don't believe it should be the first question raised about contributions to the GNU/Linux code base. Just my own HO, but a thanks to HP for coming to the party .

      Grteg

    3. Re:What about GPL, GNU, etc? by Mike+McCune · · Score: 2, Insightful

      The kernel modifications are released under GPL but the administration tools are traditional closed source, which complies with the GPL. Anyone is free to write their own administration tools if the wish. Many large companies would prefer the support of HP rather than "rolling their own".

      --

      In a world that is Free and Open, who needs Windows and Gates?

    4. Re:What about GPL, GNU, etc? by Anonymous Coward · · Score: 0

      Good luck, HP.

      Was thinking about applying for a job there, but they're bleeding badly this year. Sigh.

    5. Re:What about GPL, GNU, etc? by Radical+Rad · · Score: 1

      The last time we bought an HP 9000 at work, the sales people said that it could run Linux instead of HP-UX if we wanted. But this article doesn't mention PA-RISC at all. Does anyone know if these high-security features of HP-LX are already in the PA-RISC version of linux?

  3. NSA Linux distribution by Anonymous Coward · · Score: 5, Funny

    I installed their distribution and it works fine, except for the GUI login which says "Welcome to wiretap029114.nsa.gov". How do I change it back to "localhost.localdomain"?

    1. Re:NSA Linux distribution by primal39 · · Score: 1

      Have you tried running the hostname command as root?
      root@wiretap029114.nsa.gov:/ > hostname localhost.localdomain

      --
      Eschew Obfuscation
    2. Re:NSA Linux distribution by Anonymous Coward · · Score: 0

      Oh come on now moderators. Did you get your
      sense of humour surgically removed or something?
      That _was_ funny you know...

    3. Re:NSA Linux distribution by negacao · · Score: 0

      hehehehehehehehe.. uhhh.. nah, not point in proclaiming the obvious.. hell, not even a point to this post! (damn auto-sumbit junk... lol)

  4. Get your source code... by TrumpetPower! · · Score: 5, Informative

    ...here.

    b&

    --
    All but God can prove this sentence true.
  5. kerberos anyone? by Zule_Boy · · Score: 2

    In the article they mentioned programs use authentication based on ssh private keys. This is all fine and dandy, but what about doing this for $0 rather then $3000 and just kerberizing your own apps. Then you can have total control over more than just some of the admin functions, plus you start off with a nice base for more infrastructure later.

    1. Re:kerberos anyone? by Anonymous Coward · · Score: 0
      what about doing this for $0 rather then $3000

      The option of doing things for $0 is only available to those whose own time has no value.

    2. Re:kerberos anyone? by Type-R · · Score: 1

      You think it'll take any more or less time to learn the HP stuff?

  6. Eh? How can they get away with selling that? by SumDeusExMachina · · Score: 1, Interesting
    First of all, I'd like to know what the hell they were thinking when they did this? I mean, it's a glorified chroot jail, and we all know what a breeze those are to administrate (like compiling a seperate set of libs for each app that runs in one). Really, one could do this for free either by using FreeBSD's superior security features or just going with the NSA's linux distro.

    Secondly, I'd like to know exactly how they can get away with this and not violate the GPL? They are clearly writing software that interacts with the components of a GPL'ed piece of software (the Linix kernel), and according to the GPL, that means that their extensions ought to be under the GPL as well. So where are the source code downloads, HP? Hmmm? Maybe you'll be getting a letter from the FSF's legal team sometime soon.

    --

    Is your company running tools written by ma
  7. There are major problems with compartmentalization by va_willy · · Score: 5, Interesting
    Having worked on a similar project in the past, I can tell you that UNIX kernels are not as amenable to compartmentalization as HP would have you believe. Consider the following potential holes:
    • Buffer overflows and improper argument checking plague every modern UNIX kernel. Think about the recent sysctl() input validation hole in Linux. Or the recent /proc bugs in FreeBSD. Or the LDT handling bugs in NetBSD, Solaris, and many others.
    • Most kernels were not designed with least privilege in mind. For instance, the mount() syscall allows ordinary users to mount and umount filesystems. Access checks are performed (to make sure it is mounted nosuid, and such) but there are undoubtedly holes waiting to be discovered.
    • Until only recently, Linux had several bugs allowing users to commandeer each others' shared memory segments. This could be used to corrupt memory used by init(1) and several other critical programs, causing a major security breach.
    • Because the X server needs low level hardware access, most OS kernels allow access to iopl(2) and ioperm(2). This means that attackers can talk directly with the hardware, bypassing the OS security. The alternative, of course, is to ban the use of graphical interfaces on that system; but usually that is unacceptable.
    Although these issues can all be addressed, the problem of proper kernel security is at best a "whack a mole" situation in which a new hole will arise shortly after an existing hole is patched. Thus, the HP-LX software probably isn't worth the CD it is pressed onto.

    vw

  8. Low confidence in anything from HP by Anonymous Coward · · Score: 4, Informative
    As a very happy former HP employee (voluntarily former), I have a very low level of confidence in HP being able to do anything productive in the Linux community. Just a couple of years ago I was explaining what Linux and GNU software was to senior people in what was then their Unix Development Lab. This was when I started having some real misgivings about the company.


    Over the next couple of years I saw high level managment with no comprehension of the Unix/Linux/GNU world whatsoever do some very strange things. The HP environment is rife with strange little tribes that lie and steal from one another with no real reason. Their Linux community is no different.


    And as far as HP contributing to the open source world - don't count on it. They will happily steal code, re-write it, and release it binary-only if they think they can get away with it. I've seen them do it. The whole damn company has a prima-donna attitude and will do pretty much whatever they think they can get away with.


    And as far as HP and security go - take a look at their own damn HP-UX OS for a security model and ask yourself why they think they can release a unique and decent secure linux product if they can't even release their own OS with any semblence of security?

    1. Re:Low confidence in anything from HP by Bruce+Perens · · Score: 5, Insightful
      I agree that the HPUX folks do sometimes seem to lose sight of the fact that there is an outside world that, for the most part, doesn't run HPUX. But fortunately I work on Linux. HP has contributed a lot to free software: the IA-64 port of the Linux kernel is led by David Mosberger of HP and is all GPL, of course. HP spends about 1/2 Million per year just on salaries, benefits, and overhead for 4 of the key Samba developers. And a number of HP projects like Cooltown have come under the GPL. And of course they pay for all of my political efforts on behalf of free software - working on software patent issues, speaking, writing, etc.

      Bruce

    2. Re:Low confidence in anything from HP by Anonymous Coward · · Score: 0

      disclaimer: bruce does work for hp, last time I checked.

    3. Re:Low confidence in anything from HP by Roxy · · Score: 1

      AFAIK the B1 level code HP uses are from SecureWare (which they bought a number of years ago). It is the same basis as the code in OSF/1 (and subsequently Digital UNIX). I agree that HP never really understood security (their absence or non-participation in the X/Open and IEEE committees in the beginning and mid-90s talk for themselves).

      The SecureWare code is decent (I've once worked on it), but what I really would like is to get Data General to release their code (which is supposed to come from Adamax, now defunct I believe). THAT code I really respect and I believe it would be advantageous to get a real audit sub-system into Linux. I'll even settle for the AIX 4.x code for the audit sub-system, as it is already SMP-ready (I was the architect, so it would be extremely easy to retrofit it into Linux).

      Off-topic, I know....

      Roland B.

      --
      -- Roland Buresund MBA, MCMI, CISSP
    4. Re:Low confidence in anything from HP by kathka · · Score: 1

      "As a very happy former HP employee (voluntarily former)" You forgot to mention disgruntled.

      As a current HP employee I would tell you that the quality of it's products all depends on the origin from within HP. HP is highly comparmentalized, and many of the things this poster comments about can be characterized as semi-accurate in certain circumstances. However, HP-LX comes out of the Virtual Vault Group, the guys who have been making the security software that is used by a number of major Banks for online banking and the like. It uses much of the same mindset and the same technology, so if it's crap...then I would suggest you abandone your online banking. It might very well be powered by HP.

      As far as HP contributing to the Open Source community. Like any other company, HP is driven by the all-mighty dollar (many times without a conscience), so they're going to do what they think will make them a decent buck. Right now, upper management thinks that Linux products and services will make them a decent buck, which is deffinately beneficial to the open source community whether their motives are pure or not.

    5. Re:Low confidence in anything from HP by Anonymous Coward · · Score: 0
      If you work at HP and aren't just a little disgruntled then you need to check your pulse.


      "the quality of it's products all depends on the origin from within HP. HP is highly comparmentalized..." - yeah, the left hand of HP couldn't give a shit what the right hand is doing.


      A select few in HP will make sure that someone at HP makes a buck, kathka, and they'll do it without giving a shit about you or the free software developers and architects whom they are now trying to leach off of to save their dying company.

    6. Re:Low confidence in anything from HP by Anonymous Coward · · Score: 0
      After the Open-Mail debacle, I don't see how anyone could rely on Linux or Unix software from a company that is more concerned about it's "Microsoft Partner" than it's own customer base.
      What happens to HP-LX when Bill Gates decides that it's causing "friction" between M$ and HP. I'll tell you what, One phone call from Bill to Carly, and HP-LX is as dead as a doornail.


      Hey Bruce, does HP actually use HP-LX in it's own (100 % Microsoft) Corporate IT environment. Can HP employees use Linux at work? I am an HP employee (actively seeking gainful employment with a real Unix Company) and I can tell you the answer is no & no. Most of our important internal web sites are "IE only", HP cut off remote access to non-MS clients, Our MS Exchange servers are configured to work only with MS-Outlook, (when they're up). HP's IT department behaves as though their paychecks come straight from Redmond. Sux2bHP

    7. Re:Low confidence in anything from HP by Anonymous Coward · · Score: 0

      If HP pays 4 developers to work on Samba,
      why is the HP-UX version of Samba such a
      crappy pile of garbage? Their "latest" version
      is still the prior architecture, it has to be
      bounced constantly because of some flaw (I assume it's a memory leak), and it's not even
      as good as their previous "ASU" product.

    8. Re:Low confidence in anything from HP by bfree · · Score: 2

      Last Christmas Eve (thanks /./search.pl) an Ask Slashdot of mine was posted which asked what we wanted to ask IBM for, seeing as though they were "offering" AIX as a plate. Not too many people came up with actual solid items we should have been looking to leverage, perhaps you have just come up with one and perhaps you are even the person to get the job rolling.

      --

      Never underestimate the dark side of the Source

  9. that's nothing gnu by Anonymous Coward · · Score: 0


    some of us, will be pleased to wait for the GNU version, at a cost of: free, as in download.

  10. HP was committed to Debian... by leandrod · · Score: 4, Interesting

    ...whatever happened to that commitment? I mean, were there any technical or (and) historical reasons for choosing Red Hat, or is that yet another instance of choice by misinformation or herd instinct?

    --
    Leandro Guimarães Faria Corcete DUTRA
    DA, DBA, SysAdmin, Data Modeller
    GNU Project, Debian GNU/Lin
    1. Re:HP was committed to Debian... by Anonymous Coward · · Score: 0

      Perhaps they realized that RedHat is the _standard_ in enterprise Linux for a reason?

    2. Re:HP was committed to Debian... by leandrod · · Score: 2

      > Perhaps they realized that RedHat is the _standard_ in enterprise Linux for a reason?

      Perhaps. But my question is exactly, which would be such a reason?

      --
      Leandro Guimarães Faria Corcete DUTRA
      DA, DBA, SysAdmin, Data Modeller
      GNU Project, Debian GNU/Lin
    3. Re:HP was committed to Debian... by Bruce+Perens · · Score: 3, Informative
      HP does internal development on Debian and has contributed two Debian ports: PA-RISC and IA-64, both have been accepted for the upcoming Debian release. The secure Linux system will appear on more distributions than just Red Hat.

      Thanks

      Bruce

    4. Re:HP was committed to Debian... by leandrod · · Score: 2

      Thanks for the timely information, Bruce... but it still doesn't answer my question.

      Does HP commitment to Debian does not translate into Debian being used as a development, reference and first release platform? Or this has happened for some technical reason? Or for historical ones, like the effort being started before HP's Debian commitment?

      --
      Leandro Guimarães Faria Corcete DUTRA
      DA, DBA, SysAdmin, Data Modeller
      GNU Project, Debian GNU/Lin
    5. Re:HP was committed to Debian... by leandrod · · Score: 2

      BTW, Red Hat may be the most popular distribution of GNU/Linux in US enterprises, but (1) it is not a standard, (2) being popular means nothing technicallly, (3) HP is an US company, but it has global reach, and (4) HP has also the technical, government, educational and domestic markets to cater to.

      --
      Leandro Guimarães Faria Corcete DUTRA
      DA, DBA, SysAdmin, Data Modeller
      GNU Project, Debian GNU/Lin
    6. Re:HP was committed to Debian... by Anonymous Coward · · Score: 0

      Would you please stop posting this redundant crap over and over again? No one cares.

    7. Re:HP was committed to Debian... by Bruce+Perens · · Score: 2
      Debian is the internal development platform. Released products are targeted to all LSB-compliant systems. This one is a little unusual, because it's a full Linux distribution. The target customer for this product wanted it on RH first - we asked.

      This product is just begging for someone to take the GPL component and run with it. It could be on Debian tomorrow, without the $3000 fee. Consider that a challenge.

      Bruce

    8. Re:HP was committed to Debian... by Anonymous Coward · · Score: 0

      fuck off

    9. Re:HP was committed to Debian... by Skapare · · Score: 2
      Released products are targeted to all LSB-compliant systems.

      Doesn't that mean a lot of different distributions? Or is the development focus really aimed at various components in the kernel and on the outside that can be "dropped in" onto most distributions (e.g. the LSB-compliant ones)? I'm sure the target customer, being one who is swayed by the RH popularity, wasn't capable of just dropping in the individual components onto a RH (despite the "ease" of RPM) box, hence a whole distribution is needed. While as a geek, a whole distribition isn't of interest to be, I can certainly see how it gives PHBs that warm and cuddly feeling.

      Maybe you can clarify. I've read LSB and it certainly comes across to me as vague in this area, and I've heard conflicting interpretations that say yes and say no. Does LSB require the multiple runlevel separated directories of symlinks pointing to the init.d directory? As a security-conscious sysadmin, I do not want packages to touch my system initialization whatsoever (and some have). So I moved things around (and eliminated the symlinks altogether). The old directories are still there as a sort of "honeypot" but changes to them have no effect. Of course, for more security, I'm moving to doing more of the installs from source instead of packages.

      BTW, it is chapter 13, in section VII (LSB's weird two parallel section numbering scheme that isn't really hierarchical is certainly confusing), that by itself makes me want to avoid LSB. Why can't they accept other packaging systems? Why do they have to mandate the bloated and goofy one?

      --
      now we need to go OSS in diesel cars
    10. Re:HP was committed to Debian... by Menthos · · Score: 1
      Why do they have to mandate the bloated and goofy one?

      What is "bloated and goofy"?

      --

      GNU/Linux. The Freshmaker.

  11. Re:Eh? How can they get away with selling that? by J'raxis · · Score: 2

    Youre right, but whoever buys it is then free to do whatever he wishes with it, including give it away, sell it for less (or for more), or print it out and use it for napkins. So whats the point of HP selling it when all they have to do is make one sale, then the buyer could turn around and give it away to thousands of people? They cannot stop this from happening, because the code must be GPLed, and the GPL allows that.

  12. As I have said before... by farrellj · · Score: 3, Interesting

    HP is dumping HP-UX, and will be moving people to Linux...no one ever listens...

    ttyl
    Farrell

    --
    CAN-CON 2019 - Ottawa's only book oriented Science Fiction Convention! October 18-20, Sheraton Hotel, Ottawa, Canada h
    1. Re:As I have said before... by Anonymous Coward · · Score: 0

      Do you actually have any insider info, or is this just your impression?

    2. Re:As I have said before... by omega9 · · Score: 4, Troll

      Either post links, facts, or other references, or don't expect anyone to listen to you.

      And I especially don't care for users who think they've got clout just because they have a low UID. Remember, if you win a race in the special olympics you may have first place, but you're still retarded.

      --
      I'm against picketing, but I don't know how to show it.
    3. Re:As I have said before... by Anonymous Coward · · Score: 0

      You're kidding, right?

      "linux" is just a check-box for real-life unix vendors. Make press releases mentioning it, etc. No one inside the company, and none of the company's customers that matter give a turd about linux.

    4. Re:As I have said before... by Anonymous Coward · · Score: 0

      Hahaha. Now that is just funny.

  13. NSA selinux by jlkinsel · · Score: 2, Interesting

    I've been developing some firewall products and distributed IDS nodes based around NSA's secure linux kernel and tools. Takes some time to get used to, but the marketability plus just starting with a base that's been *really* hardened is a pretty nice combo on an already good thing. John

  14. More than just kernel modifications! by inburito · · Score: 4, Informative

    Typical slashdot ranting about gpl violations and how this is nothing new etc.. I wonder if anyone even read the article.

    This is much more than just a few kernel modifications but rather a full distribution that comes on 4 cd's. Instead of just having some hacks that improve security the whole distribution is build from ground up with security in mind.

    For example: You can't access shell unless you're on a console or use ssh. You can't access the configuration tools unless you are in posession of administrators private ssh key. Also, the installer forces you to set the system up with security in mind instead of installing everything and the kitchen sink..

    Best part of this is that it comes with support from a highly reputable vendor. Sure it has it's price tag but imagine the amount of work required to make a full distribution that's security conscious and backing it up with hp's name!

    And yes, you can download the source code that goes into kernel..

    1. Re:More than just kernel modifications! by Mordant · · Score: 0

      Yeah, well, you can't access a shell on my Slackware boxes without using ssh or the console, either - because I edited /etc/inetd.conf and HUPed inetd. And since I run Slackware, I don't have any 'configuration tools'.

      I'll happy to come over and edit your inetd.conf, HUP your inetd, and delete your lame Red Hat GUI tools for only $1500 - only half the price of HP-LX!

    2. Re:More than just kernel modifications! by Anonymous Coward · · Score: 0

      Great, so they're being HPDrake..

    3. Re:More than just kernel modifications! by Anonymous Coward · · Score: 0

      I'm glad to hear that you enjoy spending time learning the god-awful format of sendmail config files.

      I'll stick with a GUI generation tool and a few hand-tweaks, thank you very much.

    4. Re:More than just kernel modifications! by lazy_greenhouse_gas · · Score: 0

      Did they generate a nice default key for BD users or do they insist you have to gen your own? minorityspeak: I hate ssh. Thank god for deslogin.

    5. Re:More than just kernel modifications! by Anonymous Coward · · Score: 0

      I'm glad you'll never be able to configure sendmail right, or on any platform that doesn't have those tools, or if redhat goes under and you, god forbid, have to UPGRADE and want new features. Yes I'm glad to hear that you like your GUI tools, thats another job for someone who deserves it.

  15. I'm not sure it helps enough by markj02 · · Score: 3, Interesting
    Purely as an engineering tradeoff, I'm not sure that this helps very much. While this may slow down a determined attacker, this kind of approach tends to fall like a series of domnios: the first one gets compromised giving the attacker a few more capabilities, then the next one, etc. The Linux kernel was simply not designed with ensuring this kind of isolation.

    As a practical matter, it may help a lot because it makes the machine different from other Linux machines. It may be not too hard conceptually to work out how to break through this kind of security, it will likely protect systems from common exploits of common bugs.

    However, in the long term, the only solution I see to security problems is to build on foundations that have support for guarding against common bugs and analyzing security-related program properties. That means, among other things, using languages with built-in default checks for buffer overruns and using languages with type systems that can be used to verify that data doesn't get where it isn't supposed to get (Perl's notion of "tainted" is a simple runtime example; similar static type checking is also possible in some cases). Decades of UNIX, Windows, and Linux software development and bug tracking have shown that without such support, even skilled programmers simply cannot write software containing very serious security problems in actual releases. In different words, the Linux and Windows kernels and daemons will have to be rewritten in something other than C or C++. Sorry.

    1. Re:I'm not sure it helps enough by FlowerPotAdmin · · Score: 1

      In different words, the Linux and Windows kernels and daemons will have to be rewritten in something other than C or C++.

      May I suggest Cyclone?

      --
      -Justin
      That's enough posting for now lads, there're trolls afoot.
    2. Re:I'm not sure it helps enough by jrbrtsn · · Score: 1

      Why rewrite the kernel and daemons? What can be done in any high level language that cannot also be done in C or C++? Answer: nothing. So why would it be necessary to rewrite the kernel and daemons in another language?

      Simply providing security minded functions in a library, e.g. snprintf() and vsnprintf(), and employing them is all that is really needed.

      Kernel and daemon developers commonly use C and C++ because they are time tested tools that produce efficient and maintainable code for those applications. This isn't likely to change any time soon.

    3. Re:I'm not sure it helps enough by rhekman · · Score: 1
      Purely as an engineering tradeoff ... Linux kernel was simply not designed with ensuring this kind of isolation.

      Of course it's a tradeoff, all information security is a tradeoff. What you're trading is ease of use, simplicity, and convenience for accountability, verifiability, and access control. Having these tools for security is less like dominos and more like roadblocks. The more you throw up, the more you slow down attackers, and the more that are going to give up before they do any damage. Your whole post indicates a desire for bandaids to hide real bugs.

      Linux implements traditional Unix security with some twists in its own unique way. We still have all the traditional tools. If you want to design a program to utilize things like chroot jails and capabilities you can do that today. HP's tools are just a nice addition to this. Linux having poor subsystem isolation is not the same as having no security at all. Now that I think about it, until we're all running Security Enhanced HURD, we won't have the overdesigned hyper-secure OS you're describing.

      However, in the long term, the only solution I see to security problems is to build on foundations that have support for guarding against common bugs and analyzing security-related program properties. That means, among other things, using languages with built-in default checks for buffer overruns and using languages with type systems that can be used to verify that data doesn't get where it isn't supposed to get...

      Oh you mean like this.

      In different words, the Linux and Windows kernels and daemons will have to be rewritten in something other than C or C++. Sorry.

      Oops, sorry, I guess SE HURD won't be enough then. I'll just have to go back and see if I have my OS/360 tapes handy ;-)

      Regards,
      Reid

      --
      I like teamwork. It's easier to assign blame that way.
    4. Re:I'm not sure it helps enough by Anonymous Coward · · Score: 0

      He's talking about bufer overflows. Relying on your programmers to catch ALL of them is a losing gambit.

    5. Re:I'm not sure it helps enough by Anonymous Coward · · Score: 0

      Damn, beat me to posting the link.

      Ya...C is not a bad language. It just doesn't have the ability to remove a few specific freedoms (for backwards compatibility reasons) that make both safety (which Cyclone addresses) and optimization (need compiler-level support for something like Cyclone) problems.

    6. Re:I'm not sure it helps enough by Anonymous Coward · · Score: 0

      Uh, huh. Right.

      You just go ahead and rewrite the Linux kernel in whatever language you're thinking of: Python, Lisp, SML, Ruby...whatever. Then show us acceptable memory usage and speed.

      Despite all the people that attack C and C , there really isn't any substitute for their performance. I don't care how "close" your language is under optimal conditions. If you walk up to me and hand me a kernel that eats at least six times the amount of CPU, uses more memory, is even further away from real-time guarantees and has lots more things to break, I'm just not going to be interested. There's a reason C is still around today.

      In different words, the Linux and Windows kernels are not going to be written in something other than C or C . Sorry.

    7. Re:I'm not sure it helps enough by markj02 · · Score: 2
      What can be done in any high level language that cannot also be done in C or C++? Answer: nothing.

      Why do we need safety belts and airbags? Can't people just drive carefully?

      Kernel and daemon developers commonly use C and C++ because they are time tested tools that produce efficient and maintainable code for those applications.

      Yes, indeed, we know exactly what kind of code real programmers produce in C and C++: systems full of security holes and buffer overruns. The fact that these bugs keep occurring even though programmers know better is exactly what demonstrates that C/C++ are not up to the task.

    8. Re:I'm not sure it helps enough by markj02 · · Score: 2
      Despite all the people that attack C and C , there really isn't any substitute for their performance.

      There are many systems programming languages that are as fast as C/C++ and have similar memory footprints. Examples are Ada, Modula, and various Pascal derivatives. These languages allow you to do everything you can do in C/C++, they simply are safe by default.

    9. Re:I'm not sure it helps enough by Pussy+Is+Money · · Score: 1
      The problem with this kind of argument, though, is that you are presupposing that even the most skillful and most dedicated of programmers are careless and/or incompetent, in which case switching to a language that eliminates buffer overflows helps only very marginally.

      The point is that for any real world task, the problem-specific requirements dwarf all other considerations. The hard part is not some abstract "checking your input" -- the hard part is knowing what to check for.

      Programming is just hard. It's a complete fallacy to suggest that you can make it easier by shielding programmers from the implementation detail. Because it's exactly the implementation detail that we are being paid to get right.

      --
      Pushin' 'n dealin', shovin' 'n stealin'
    10. Re:I'm not sure it helps enough by Alan+Cox · · Score: 2

      The trade offs you have to make in basic compartmentalisation are hard to get right. There are so many different ways to break a "jail" on any system where the security is at the main OS level.

      Instinctively I've never trusted jail based solutions Linux or otherwise. If you want to compartmentalise build a small reasonably verifyable core and run Linux unpriviledged on it - its one of the uses for real microkernels (not Mach but something thats actually -micro-).

    11. Re:I'm not sure it helps enough by J.+J.+Ramsey · · Score: 1

      How low-level can these languages get? From what I've understood, one of the reasons C is used as a *systems* programming language is because it can work close to the bare metal, which one would need if one was writing the code for an operating system. Complaining about people using C for apps is one thing, but complaining about people using C for the low-level layers of a system is quite another.

    12. Re:I'm not sure it helps enough by markj02 · · Score: 2
      Other systems programming languages (e.g., Ada or Modula) allow you to access any memory location as any type and to convert between arbitrary types, just like C. The difference is that when you do so, you have to say so explicitly. In C, something like "p[i]" might be a completely safe and portable high-level array subscripting operation, or it might be an unportable and dangerous way of accessing a memory-mapped I/O location. The fact that you can't tell is a very serious and fundamental flaw of the language.

      C++ is a little better than C in that it at least lets you define a reasonably safe framework, but the Linux kernel developers have been strenuously opposed even to C++.

      Prior to the rise of UNIX and Windows, most kernels were written in other languages, so it's not hard to do.

    13. Re:I'm not sure it helps enough by markj02 · · Score: 2

      Cyclone probably is too slow and too complex, and it seems to have a non-trivial runtime. Ada might be an OK choice, but it is also a very big language. Traditional language choices that have worked fine for writing kernels include various Pascal and Modula variants.

    14. Re:I'm not sure it helps enough by BoydWaters · · Score: 1

      Alan Cox wrote:

      If you want to compartmentalise build a small reasonably verifyable core and run Linux unpriviledged on it - its one of the uses for real microkernels (not Mach but something thats actually -micro-).

      I Am Not A Kernel Hacker (IANAKH) but..

      Jonathan Shapiro's Ph.D. thesis work impressed me in this regard - a "nanokernel"-based OS that attempts to better support low-level security:

      It would be nice to implement a linux-like system on top of this, or perhaps use such a system to provide virtual machines on top of the hardware (like IBM mainframes or VMWare GSX Server).

    15. Re:I'm not sure it helps enough by Anonymous Coward · · Score: 0

      > How low-level can these languages get?

      How skillful can a compiler developer be? Take Pascal itself, if you are worried about code tightness (and the compiler is good), use Inc(i) instead of i:=i+1, use PChar instead of String...

      A not so coward but yet anonymous
      (don't want to register for just posting)

    16. Re:I'm not sure it helps enough by GypC · · Score: 2

      Lisp dammit!

      What this world needs is a free Lisp OS (with the low-level stuff written in Modula or something if necesssary.)

      Too bad all the free Lisp OS projects deteriorate into arguments about implementation details...

  16. Missed Point: HP all about business by EchoMirage · · Score: 3, Insightful

    There's a missed point in discussing whether or not HP-LX is practical or whether or not it's worth $3000. HP's target market is and always has been big businesses. What they've done in providing a secure, robust Linux implementation is to take away IT manager's number one fear about Linux: that's it's somehow "insecure."

    Practically speaking, it's safe to assume that nobody is going to run out and nuke HP-UX 11 off their servers in favor of this - HP-UX is still very far ahead of Linux (and some of its competition) in several important areas. However, for IT managers interested in considering a partial migration to Linux, this gives them a stable and secure path on which to begin to venture down, and undoubtedly one that's also covered by their existing support contracts with HP.

  17. Re:Eh? How can they get away with selling that? by Anonymous Coward · · Score: 0

    i never said you couldnt do that. But do you think some giant corporation that buys a HP solution for their enterprise is gonna go and put this distro up on some ftp just for the hell of it? unlikely.

  18. Re:Eh? How can they get away with selling that? by Graymalkin · · Score: 4, Funny

    Charging 3000$ for the CD set means that 99% of the jackasses who would use the GPL in order to buy something and then turn around and release it for free can't afford it while the 1% that can have to pay a pretty penny to be jackasses. I can pretty much assure you some jackass Linux zealot with no understanding on the GPL is sitting in his bedroom right now trying to figure out how he can raise 3k so he can be a folk hero by releasing the code an evil company is keeping secret. At the very least HP is giving some idiot something to do.

    --
    I'm a loner Dottie, a Rebel.
  19. Would this have prevented LT hacks? by Anonymous Coward · · Score: 0

    So this seems like it would have prevented the
    website defacement to Linuxtoday and other glorious
    VA sites. How come VA did not use either the NSA or
    the HP product? Think they know too much, eh? Or
    are they running out of cash faster than anyone
    realizes?

    Well, whaddya know, Linux Today got hacked 2 weeks
    ago.

  20. Re:Eh? How can they get away with selling that? by Anonymous Coward · · Score: 0

    excuse me but you are way off. anything I write that doesnt use sourcecode from a GPL product can be sold as closed source-evilware or whatever. I love this how you zealots create FUD about the things you hold dear.

    No they dont have to, and if they do it will be because they are gracious to the rest of us and NOT because you whined about it.

    READ THE GPL you twit.

  21. $3000 if you're the Kernel fearing type by KidSock · · Score: 2

    At $3000 HP-LX is too expensive for many to experiment with...

    That is only if you're afraid to do a little kernel hacking. Unless it's a binary only module (I doubt it, the're not hiding info about hardware) kernel patches should be available for Free. And really, $3000 beans isn't a whole lot for what sounds like a dreamy setup for internet boxen serving holy DNS and FTP. This is how internet services really should be ran by default. Unlike IIS that runs as user profile SYSTEM so that it can do impersonation (sorry for the M$ dig, but it's a really good example of how not to run internet services).

    1. Re:$3000 if you're the Kernel fearing type by cscx · · Score: 1
      Will the Slashdot Windows-haters please stand up?

      Wrong! IIS does not run as system! Instead, it runs as IUSR_[servername]. A sepearate login like www or nobody. Right. Get the facts straight before you flame Microsoft.

    2. Re:$3000 if you're the Kernel fearing type by KidSock · · Score: 2

      Wrong! IIS does not run as system!

      We'll it depends. This article explains it all but at one point the author says:

      Where does the ASP .NET worker process run, anyway? Well, as of this writing, it runs as SYSTEM. Yikes!

      The article is from Nov 2001. This is WRT web services with authentication options on.

  22. Re:There are major problems with compartmentalizat by Minupla · · Score: 2

    The alternative, of course, is to ban the use of graphical interfaces on that system; but usually that is unacceptable.
    On a server? I never install X, too many performance and security trade offs.

    --
    On the whole, I find that I prefer Slashdot posts to twitter ones because I don't get limited to 140 chars before
  23. HP's kernel component is GPL-ed. by Bruce+Perens · · Score: 4, Informative
    The kernel component of HP's secure Linux is GPL-ed. Get it here.
    The user-mode component is not GPL, but given the kernel API, it's pretty easy to make up the user part.

    Bruce

  24. Re:Eh? How can they get away with selling that? by inburito · · Score: 4, Insightful

    Uh.. How about you go download the GPLed code from hp's site right now instead of speculating about what people could do.

    However.. You are not going to get the closed source administration tools without which the kernel mod's are almost worthless. You also don't get a fully set up distribution with all the configuration and will have to duplicate all the effort that went into creating it.

    If you want to be reasonably sure that your version is secure you'd have to perform extensive testing on it and have a lot of really smart people take a look at it. This is actually the easiest part as it follows normal linux development method. Still, whose ass is on the line if things are not as secure as they should be?

    And you can bet your ass that anything that doesn't need to be GPLed is not and it comes with a very strict HP license that specifically forbids any disassembly, resale, etc.. Support contracts probably also include a clause that you have to have purchased the official hp distribution..

  25. NSA's distribution by jd · · Score: 4, Informative
    I've been using this since their earlier versions. It's extremely powerful, in that it provides for a heirarchical access control mechanism, rather than a mere on/off switch. (Unlike a certain other manufacturer, who shall not be named). The same account can have multiple login types, allowing a user to place fine-grain controls on what a given application they run can do under that account.


    The fact that SELinux (NSA's system) now uses the LSM framework means that it can be extended easily. You can either extend the SELinux modules or add further LSM modules of your own.


    It should be extremely trivial to provide a complete, and more flexible, clone of the entire HP security framework inside LSM, as all you're really doing is providing a set of capabilities to each thread, with pre-set defaults.


    In fact, you'd probably want to exploit SELinux' existing framework for this, so that you could create pre-set defaults on a per-user/per-login-type/per-thread basis.


    All in all, HP's setup doesn't sound novel enough to be worth 3K, but does sound intriguing enough to copy. Which, really, is something the LSM guys seem to already be doing. They've ported a decent portion of the OpenWall framework, which does a lot of this kind of stuff already.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:NSA's distribution by Anonymous Coward · · Score: 0

      It sure does sound good at $3000USD. in fact that's dowright cheap. considering that you will get a support contract with that. No hokey Microsoft type support but real support. We had to use HP support for a HP-UX machine here last year. The tech support guy on the phone, refused to give up until he had a solution. My one expierience with MS support cost twice the price as the 1 year service contract with HP, and ended with a reccomendation that we wipe the drives and re-install.

      I am sure it comes with 1 year of support like HP-UX did. so it's dirt cheap.

  26. Re:Eh? How can they get away with selling that? by mark-t · · Score: 1


    Why not? They've paid for it, sure... but once that's been done it's no money out of their pockets to give it away to other people. And since the GPL allows it, I don't see any reason why they wouldn't other than the rather irrational view that if they had to pay so much for it, then so should everyone else. But giving it away in that case would only be injurious to their pride, not their actual financial situation.



    This raises what in my mind is an interesting question: is it possible to pirate GPL code? That is, say a school buys this and then some student who has access copies it and then gives it away. Since the student hasn't personally forked over the $3K, he's not going to be motivated by pride to not give it away. Further, keeping in mind that all he would have copied is stuff that was GPL'd anyways, would the student have actually done anything wrong? If not, then it's as good as certain that HP-LX will be freely available in a relatively short time. Apologies for digressing from the topic somewhat, but I believe that such a scenario illustrates the can of worms that might be opened by charging for a GPL project.

  27. Wow! by Anonymous Coward · · Score: 0

    That's something I never expected to see on Slashdot -- anyone deciding that going for a product by the NSA is a _good_ idea.

  28. Re:There are major problems with compartmentalizat by Anonymous Coward · · Score: 0

    You're still not safe though, since the kernel is designed to permit it if you decided to install it.

  29. TrustedBSD by Anonymous Coward · · Score: 0

    On my large cluster site, I run TrustedBSD, which already has all the features talked about here.

    Why keep on re-inventing the wheel?

  30. Re:Eh? How can they get away with selling that? by Anonymous Coward · · Score: 0

    Ya gee i'm sure morgan stanley or citicorp is really gonna put up a big high bandwith ftp server and put the distro on it just becuase "information wants to be free dude!".

    Get real.

  31. Security concerns with HP-LX by JonathanF · · Score: 2, Interesting

    I've heard at least one or two people here worry about HP's security in HP-LX (and HP-UX) and I have to say this: anyone who depends on their OS as the primary basis of security - at least in this day and age - is not properly looking at security in the first place.

    If you are (or were) a network admin, would you host an Internet server without a firewall just because you used one OS and not another? I don't think so. Total security involves additional layers on top of the OS - firewalls, requiring passwords for many or all access points, and so on - as well as an admin that keeps up to date on security holes and works to plug them.

    That's not to excuse OS developers who leave their products ripe for abuse, but so long as reasonable steps are taken as part of the OS I wouldn't be slandering its maker - that is, unless they're promising something they know they can't deliver.

  32. Looks like "Secure Linux for Retards" by dwbryson · · Score: 4, Insightful
    Ok, I feel that putting some peices of security in an OS kernel is a good idea. It allows you to have a lot of control over what goes on on a system, however it's not always the best idea for certain things. This distro it seems is that + *basic* system security...
    HP-LX includes pretty much every security tool for Unix imaginable, and defaults are set up with security in mind right out of the box. For example, HP-LX allows command shell access only via the system console or SSH (encrypted) connections. HP forces you to use OpenSSH by including a procedure for creating and installing the keys during the OS installation.
    This is a no brainer for anybody who is semi secruity concious. And
    HP-LX's installer won't install unneeded services. This is probably one of the best things you could do on your existing server; remove everything that you don't absolutely need.
    Comon people, every semi decent sysadmin knows this. Maybe I'm expecting too much from people (the number of people that complain to me about not being able to use telnet is disgusting) The added chroot jail stuff is neat, and no doubt helpful, but this distro really looks like it is not worth 3k. Any competent Linux admin could set this up with a couple days work. That doesn't mean his manager will approve... they would buy the MP distro because it would make them feel warm and fuzzy inside, even if their admin could design a better distro. When the article first off proclaims things like:
    Pros: Currently the most secure commercially available Linux system.
    I can generally discount most of what it has to say. Security is a process not a product.
    --
    - "Never let a computer tell me shit." - DelTron Zero
    1. Re:Looks like "Secure Linux for Retards" by SuiteSisterMary · · Score: 2
      Comon people, every semi decent sysadmin knows this. Maybe I'm expecting too much from people (the number of people that complain to me about not being able to use telnet is disgusting)
      Yep. But Joe, who installs 'that line-yucks thing' on his cable modem, live to the Internet, probably doesn't. Windows 2000, Linux, it's all the same; the lowest common denominator is going to be the user.
      --
      Vintage computer games and RPG books available. Email me if you're interested.
    2. Re:Looks like "Secure Linux for Retards" by ZxCv · · Score: 2

      But that retardo kind of user isn't who HP is targetting with their $3k OS. They're targetting companies who want to spend less time setting up and securing their systems. Most of the features of this software could be replicated by an intelligent admin, but doing that takes much more time and effort. Any company running servers has to spend employee time to make sure those servers are setup properly and stay secure. I can see the logic in thinking that if you start with a smarter, more secure product that you will spend less employee time setting up and securing it.

      --

      Perl - $Just @when->$you ${thought} s/yn/tax/ &couldn\'t %get $worse;
    3. Re:Looks like "Secure Linux for Retards" by SuiteSisterMary · · Score: 2

      True. It makes perfect business sense; the 'CTO' will see 'secure out of the box!' and ignore the 'unless you plug it in' line and plunk down their money. And lets face it, appearences count. How many times have you heard, said about budgets, 'spend it or lose it?' Or can you imagine the consternation on your sixty year old VP's face when you tell him, bald faced, that you didn't pay one red cent for your 'highly secure UNIX environment.'

      --
      Vintage computer games and RPG books available. Email me if you're interested.
    4. Re:Looks like "Secure Linux for Retards" by Anonymous Coward · · Score: 0

      So you can run out and spend $30k/year extra per year and get a truly world-class security nut UNIX admin. Or you can just drop $3k extra on the software. That'll pay off in six weeks.

      The reason a lot of companies can get away with charging so much for business-targeted software is that the initial cost of the software pales in comparison with the maintenance cost. Anything that reduces mantenance or the skill required of maintainers generally pays off. If I can set up a UNIX box, plonk an icon-based administration interface in, put in a few safeguards against stupid decisions (like not supplying telnet at all for the system), you can train an MCSE for a coupla weeks and put him in charge of your setup. Big savings.

      Don't feel threatened -- there will always be a place for the technocratics. But every fix that can be done at software-development time by N engineers (idiot-proofing) is a fix that doesn't have to be ad-hoc fixed by N engineers at every installation. If you shouldn't have a bunch of services running out of box...hey, don't have them running by default! If you should be using shadow passwords, have them set up by default! Warn the administrator when he's doing something that might be dumb from a security point of view!

    5. Re:Looks like "Secure Linux for Retards" by joubertb · · Score: 1

      And 2 years when the folks who build your "secure" box are gone, you have a company like HP still standing there. I think we can all agree that anyone can create a secure box with all the open source tools that are available now. But, creating the box is only part of the story. Someone has to maintain it, someone has to document what was done to the box (how was it build, etc). With HP-LX you get that in a box. Plug it in, install it and you are off and running in 20 minutes.

    6. Re:Looks like "Secure Linux for Retards" by Zwack · · Score: 1

      Hmm...

      I disagree... It sounds to me like this isn't "Linux + Basic System Security"

      This isn't your traditional Unix/Linux. This is CMW. Compartmentalized Mode Workstation. I have previous experience on working with HP-UX 10.16 a CMW variant of HP-UX. The two are similar, but they are not the same. Not even close.

      This is Military grade Mandatory and Discretionary Access Controls. Some of the additions are allowing certain privileges to certain users. If you have a privilege then you can use a certain ability, abilities include being able to talk to particular devices.

      You also have multi-level filesystems under CMW. for example /tmp looks different to people running at Secret/Accounting than it does to people running at TopSecret/Accounting.

      This stuff provides a lot of extra administrative hurdles (how can you backup and restore?) as well as a lot of extra protection IF it is set up correctly.

      I would have thought that most people don't need this level of security. But for those that do the $3,000 price tag is nothing.

      Zwack

      --
      -- Under/Overrated is meta-moderation, and therefore is Redundant.
  33. Re:There are major problems with compartmentalizat by SuiteSisterMary · · Score: 3, Insightful

    Not installing X doesn't cause the kernal to take note, and alter how it treats the system calls in question.

    --
    Vintage computer games and RPG books available. Email me if you're interested.
  34. ...with compartmentalization? by FlowerPotAdmin · · Score: 1

    These are very valid concerns. However, it seems to me these are just problems with kernel implementations -- not of the design philosophy that HP wants to use here.

    --
    -Justin
    That's enough posting for now lads, there're trolls afoot.
    1. Re:...with compartmentalization? by Anonymous Coward · · Score: 0

      it's a problem with the unix security philosophy. You have user, group, and world, read, right, and execute. That's very crude and offers lots of ways to get roor access. Compare that to VMS/OpenVMS, which has extremely fine grained control, and fewer exploits.

  35. Value added by BigDaddy · · Score: 1
    Another "value added" component of HP's product may be that it is in fact a distro.

    The NSA's work has only been to patch the kernel, patch many of the common utilities, and create a few specialized utilities. It must be installed over a previous distro, which might discourage some less confident admins from using it.

    A 3 grand price tag might not be so bad, if HP is providing a turn key solution. For $3000, new admins can avoid the pain of patcing and manipulating their systems, and they also recieve support from HP. The NSA does provide any kind of support.

    Also, 3K is that much if the license permits unlimited implementation. If companies don't need to buy an additional license for each box, that is. Compared to licensing costs for Microsoft products, this would be fantastic. (I don't know if the license permits this. Like most slash readers, I didn't actually look at the article.:)

    While I don't see myself using this product, I see how other situations might warrant it.

    --
    You can't get a blue screen on a black and white monitor.
    1. Re:Value added by Anonymous Coward · · Score: 0

      A footnote for your sig: A long time ago we tried to run NT 3.5 on some bizarre SMP Pentium hardware with a vendor brewed HAL. The system only supported 80x25 in B/W, which suprisingly NT seemed to grok. Anyway, we got plenty of black screens kernel dumps before giving up!

  36. Re:There are major problems with compartmentalizat by Oggust · · Score: 2, Insightful
    Well, kernel bugs will still get you, no doubt about that. You can compartmentalize the kernel itself, at least to some point, but that's kind of a separate problem.

    Kernel bugs aren't the big problem though. Look thru bugtraq and see what the kernel/user-app ratio of security problems is.

    Now look at how many of the kernel level bugs that are remotely exploitable. (Ummm, I mean exploitable from remote, not that they're unlikely.) Not to say that local problems aren't problems too, but they're a lot easier to manage.

    You're right about the bug whack a mole, but this time you'll be playing on a table with most of the moleholes plugged.

    The X thing is a bit of a red herring. The problem is that it has hardware access (disregarding fbdev and stuff like that), and hence (from a security POV) could almost just as well be part of the kernel. Solutions:

    • Don't run it. And don't allow other processes the priviliges it would/could have had. (This is easy with any MAC and even DAC system, X is always a bit of a special case.) The Selinux system is very fine grained and you can grant a subject a capability or not depending on its' type.
    • Compartmentalize X itself. To some extent this is getting worked at, but not (mostly at least) for that reason.
    (X apps are a little different from other apps, since they have other IO options (Atoms, cut+paste buffer etc.) Look up CMW (Compartmented Mode Workstation) if you want to get into that.)

    But even if you can't do a thing about X, this is still worthwhile. Think about someting like xntpd. It's root because it needs to open a low port and because it needs to be able to update the system time. But there's no reason that it needs to be able to, say, mount filesystems, read protected files, or load kernel modules. with traditional unix security we can't do that, but with this stuff we can. The attutude that "because it only fixes 99% of the problem, it's not worthwhile" has been a problem long enough.

    /August, once a sysadmin on a B1 system.

    --
    "An object declared as type _Bool is large enough to store the values 0 and 1." -- 6.1.2.5, C99 standard.
  37. The Confused Deputy by Peaker · · Score: 2

    The Confused Deputy will stay confused, no matter how sophisiticated the ACL's are.

    The only real approach to security is a pure capability system, and ofcourse the combination of pure capbility systems with safe languages.

    1. Re:The Confused Deputy by Pussy+Is+Money · · Score: 1

      Safe languages? Would those be languages in which you can only solve safe problems?

      --
      Pushin' 'n dealin', shovin' 'n stealin'
  38. Re:There are major problems with compartmentalizat by Peaker · · Score: 4, Informative

    The alternative, of course, is to ban the use of graphical interfaces on that system; but usually that is unacceptable.

    The real way of doing this is putting the hardware drivers into the kernel (frame buffer devices).
    No user process is supposed to access hardware directly, and if that meant we have no graphics, it would also mean no keyboard, text, or sound.

    Although these issues can all be addressed, the problem of proper kernel security is at best a "whack a mole" situation in which a new hole will arise shortly after an existing hole is patched. Thus, the HP-LX software probably isn't worth the CD it is pressed onto.

    That may be true, but it is only because of the nature of UNIX kernels. Kernels built with the principle of least privelege in mind (such as EROS) are definitely worth the fix, as it is quite unlikely to present new holes (and such a design is quite unlikely to have many holes in the first place)

  39. RSBAC & *plug* by 21mhz · · Score: 2, Interesting

    RSBAC is Secure Linux Done Proper (or almost there).
    Castle from ALT Linux Team is a Linux distribution that uses RSBAC and chroot jails. Also, recently, the tcb scheme has been adopted for secure access to system passwords without need for setuid root.

    --
    My exception safety is -fno-exceptions.
  40. HP Logo by Anonymous Coward · · Score: 0

    Would it kill slashdot to get an HP Logo?

  41. The Prize Tag Is A Good Thing[tm] by KjetilK · · Score: 2
    Yeah, it is a pretty stiff prize $3000, but actually for Linux adoption in the market place, I think it is a Good Thing[tm]:

    You know how PHBs think: If it's free, then you can't make money off of it. If HP is able to sell this at $3000 a piece, maybe they will get their eyes opened for the possibility that there is money in Free Software.

    --
    Employee of Inrupt, Project Release Manager and Community Manager for Solid
  42. Re:Eh? How can they get away with selling that? by Anonymous Coward · · Score: 0

    You're partly right.... But not completely ;)

    The whole HP distro isn't GPL.. Therefore you if you did copy it, you would be in breach of the licence.. You're right when you say it isn't possible to pirate GPL code.. If the whole thing was GPLd, then there'd be nothing to stop people copying it and distributing it freely..

    David

  43. Name collision with HP LX Palmtop series by denmon · · Score: 2, Interesting

    HP-LX is an unfortunate shorthand name for this product, since "HP-LX" is a widely used to refer to HP's excellent (but discontinued) line of DOS based palmtops - HP 95LX, HP100LX, and HP200LX. It appears from the technical brief PDF that the official name is "HP Secure OS for Linux". Perhaps some other name could be used to avoid confusion, like "HP-SLX" (secure Linux).

    For more information on the LX palmtops, see the FAQ at http://www.hplx.net/faq.faq.html. Attached below is a short excerpt from the FAQ that provides some background.

    ---

    Q. What is the HP100LX?
    Depending on your point of view, it's either an IBM PC-XT stuffed into a very tiny case with some Personal Information Management (PIM) software and Lotus 1-2-3 built into ROM, or it's a high-end electronic organizer that also runs MS-DOS software.

    Q. What is the HP200LX?
    It's the successor to the 100LX. It's essentially a 100LX with cosmetic changes and the addition of Pocket Quicken, LapLink Remote, and some feature enhancements for the PIM applications in the ROM.

    Q. What is the HP Omnigo 700LX?
    It's basically a somewhat faster 200LX with a docking cradle for a Nokia GSM cellular phone, some LEDs on the front, and some extra built-in communications software. It is only available in Europe and Asia/Pacific, where the GSM standard is, well, standardized. This product has been discontinued by HP and is no longer sold. If you can get a used one, it's possible to use it in the US if you live in an area where GSM coverage is offered (i.e. California, Nevada, etc.) if you get a compatible phone. The Nokia 2190 fits the OmniGo 700LX's cradle and works in the US, for example.

    Q. Why would I want an outdated DOS palmtop when I could get a modern Windows CE machine?
    The 200LX may be a few years old, but it is a far better computing device than any Windows CE machine. A few of its strengths:
    - Battery life (up to 2 months on a single pair of batteries)

    - DOS compatibility (can run millions of programs written for desktop computers)

    - High-resolution screen (fully CGA compatible, 640x200 [33% wider than most WinCE units])

    - Better keyboard (separate numeric keypad; nice solid feel with good tactile feedback)

    - Better PIM apps (built-in apps are unsurpassed for quality and ease of use)

    - Pocket Quicken built in (keep track of your finances without spending any extra money for the financial software)

    - Better expansion support (see flash cards and other memory expansions as a drive, not just a folder)

    Q. Why would I want an outdated DOS palmtop when I can get a sleek PalmPilot or Palm III?
    The PalmPilot series is made for a completely different purpose than the 200LX. The 200LX is essentially a full-blown computer that fits in your pocket, and doubles as an organizer. The PalmPilot series are meant to be organizers and to help connect with desktop computers. Both platforms have their strengths and weaknesses, but for real computing in the palm of your hand, the 200LX is the only choice.
    ---

    1. Re:Name collision with HP LX Palmtop series by Anonymous Coward · · Score: 0

      Can I install HP-LX on an HP-LX? :-)

    2. Re:Name collision with HP LX Palmtop series by kathka · · Score: 1

      Actually, for the longest time the nickname has been HP-TLX (as in Trusted Linux), some have shortened it to HP-LX, and there has been a campaign lately to force people to use the full name HP's Secure Operating System Software for Linux. It is anyone's guess as to which name will stick in the long run.

  44. Secure Linuxes by ibex42 · · Score: 2, Informative
    At the Linux Showcase in November I attended HP's presentation on Secure Linux and if you sweet talked the HP guys they would unlock the secret cabinet and give you a copy of Secure Linux. I also did a term paper on SE Linux last semester.

    The two OSs are fairly similar in what they hope to accomplish -- isolate the risky software and users from the rest of the system so if something bad happens it doesn't take everything down. From the sound of the HP presentation, this is all HP Secure Linux does. You create compartments and then specify what the compartment can do. You can do the same thing with the NSA's SE Linux and much much more. I was really impressed with the flexibility offered by SE Linux. You can setup your system with about any security policy you like. The biggest problem is the great complexity. You need to do a good deal of research before even thinking about modifying the sample security rules that come with SE Linux. There are thousands of rules in the included security policy. This is where HP Secure Linux probably has an advantage--it's a bit simpler to user. Though I haven't had a chance to try it out yet.

    You don't really need to pay $3000 for it either. The kernel patches are GPLed and part of the kernel security interface used by SE Linux also (NSA and HP have cooperated here). You are really paying for the tools, but those are just programs that make certain sys calls. It shouldn't be a problem to write your own open source versions. Though there might be a nice gui that would take more work to create.

    If you are interested in secure linuxes also take a look at Immunix and EnGarde. Both also have kernel level security controls, but not to the level of NSA Linux. Immunix has a comparment system like HP Secure Linux called SubDomain. EnGarde uses the Linux Intrusion Detection Project.

    A paper doing a detailed comparison of the four would be welcome!

  45. General GPL Question by Anonymous Coward · · Score: 0

    I've always wondered about this scenerio under the GPL:

    Party A writes software Foo. He sells a Foo binary to Party B. Party B requests the Foo source. Party A then gives Party B the Foo source, as dictated by the GPL.

    But then Party C asks Party B for either the Foo source or the Foo binary. Is it necessarily legal for Party B to give Party C the source or binary?

    I agree that if Party A had given Party B the right to redistribute the binary to Party C, then Party A would have to also give Party B the right to distribute the binary to Party B. But what if Party A never grants B any distribution rights whatsoever (including to the binary)? Can it then be said that Party B cannot redistribute the Foo source?

    1. Re:General GPL Question by autopr0n · · Score: 2

      Well, in your situation, Party A wrote the software, they can do whatever they want with it. In other words, party A has to be the one to put the GPL on their own code. If they do, then they are obviously pro-freedom. If they don't, then the Code isn't GPL'd. In other words, everyone has distribution rights for GPL'd code.

      If party A just modified someone else's code, a-la the linux kernel, then gave out the software with a special contract not allowing distribution, then they would be violating the GPL. Which would mean that by distributing the code that they modified they would be breaking copyright law, and Linus or anyone who contributed to the Kernal could "DMCA" their ass, so to speak.

      --
      autopr0n is like, down and stuff.
    2. Re:General GPL Question by lazy_greenhouse_gas · · Score: 0

      Huh?

    3. Re:General GPL Question by Anonymous Coward · · Score: 0
      Is it necessarily legal for Party B to give Party C the source or binary?


      No, not at all. The GPL just says that when distributing binary you must also provide source (if requested). Party B is under no obligation to give C the source unless they gave them the binary.

      When under the GPL Party A does not have the authority to restrict distribution rights. Restricting Party B's distribution rights would be against the GPL.

    4. Re:General GPL Question by Anonymous Coward · · Score: 0
      Oh crap. I thought you were asking whether Party B would be under an obligation to give Party C the source or binary.

      It's always legal under the GPL to redistribute source or binary (and you must provide the option of both - or provide none).

  46. Re:There are major problems with compartmentalizat by Deagol · · Score: 1
    The real way of doing this is putting the hardware drivers into the kernel (frame buffer devices).

    Isn't this what M$ did between NT 3.x and 4.0? And didn't this cause some stability problems, in that a required video driver for a server could crash the system? And didn't the UN*X crowd curse and swear when they did this? ;-)

  47. Immunix by Crispin+Cowan · · Score: 2, Informative
    Immunix is our security-hardened Linux system. Immunix offers a security confinement mechanism called SubDomain which is similar to SELinux and HP's Virtual Vault technology, which is what is incorporated into their HP-LX product. SubDomain is "in between" SELinux and HP-LX, in the following ways:
    • Complexity and Flexibility: The more complex a product is, the more flexible it can be. SubDomain is less complex to manage than SELinux, but offers more flexibility than HP-LX.
    • Price: SELinux is free, Immunix Systems are $90 each, and HP-LX is $3000 each.
    Immunix also features other security protections:
    • StackGuard: resists most buffer overflow attacks.
    • FormatGuard: resists most printf format bug attacks.
    Crispin
    ----
    Crispin Cowan, Ph.D.
    Chief Scientist, WireX Communications, Inc.
    Immunix: Security Hardened Linux Distribution
    Available for purchase
  48. What the price tag really means. by lkaos · · Score: 2, Insightful

    What's most important about the price tag, is that HP is backing a secure version of Linux. It's not really 3K for some fancy GUI tools, but 3K for the tools and for HPs guarentee that this is actually going to work.

    It's not really that expensive. In fact, I'll probably recommend it to the company I work for. If your company is security conscious, and you don't want to have to maintain something, then this seems like a great option.

    This is probably one of the first really good business plans I've seen with Linux. The greatest part is that HP didn't try to mess around and not release the kernel stuff. So, they've helped out the community by adding a cool concept (I always hated that Linux does have jails) and they also are delivering a good, reasonably price, product.

    I am of course assuming that this software works :)

    If you do the math though for a server running Windows NT plus an email server, web server, and remote admin package that would be as robust as what Linux has, then it's a no brainer which one is cheaper.

    Especially since alot of software is based on the number of users (especially email suites). So you kind of end up getting screwed when you hire more people.

    --
    int func(int a);
    func((b += 3, b));
    1. Re:What the price tag really means. by Anonymous Coward · · Score: 0
      What's most important about the price tag, is that HP is backing a secure version of Linux. It's not really 3K for some fancy GUI tools, but 3K for the tools and for HPs guarentee that this is actually going to work.
      HP have been selling another securified (c.f."edumacated") Unix for some time now under the brand name VirtualVault. A small number of users presumably use this as intended (although if you're going to pay that amount of money I'd go for something like XTS300), however most users that I've seen are taking their POS e-commerce app (or whatever) and running it inside a VirtualVault (God I hate that terminology, you'll see why in a minute) and assuming that it's suddently been made secure.

      The problem with this is the way it's being sold to lusers, "Run your existing code in a VirtualVault and all security problems are swept away". Since it sells for a six-figure sum, this must be true. The result is that completely insecure apps are being "secured" by having money thrown at them rather than by actually being made secure. An example of this is a server program which listens on a port and copies data to and from a shared directory based on requests from incoming client connections. There's no access control or checking of any kind, it's just assumed that no-one will do anything bad. The luser mgt.who came up with this design couldn't see a problem with it, but there were vague concerns that it might not be secure (!!!), so a pile of money was thrown at HP to "make it secure". VirtualVault is secure, the app is now running inside a VirtualVault, therefore the app is secure.

      You can't fix stupidity with technology (sigh).

  49. Another couple to look at by eq2rip · · Score: 1

    I've been looking at doing my own LFS similar to kaladix and potentially using what might be a smilar patch and tools to this hp stuff mentioned . I need to go checkout this hp patch and spend some time with it to find out what its about.

    At one time I looked into SE Linux but noted there was some problem with using LVM with it due to attributes that were used on files, But maybe this has changed? I suppose I could go look again.

    I like the idea of setting things up my way (LFS) anyways and using it as the base server and having other virtual servers.

    1. Re:Another couple to look at by Jetifi · · Score: 2

      In the SE Linux built against 2.2, PSIDS were stored at the inode level, which meant that a security resolution below the filesystem level was only possible using ext2.

      The latest versions use the Linux Security Module (lsm), like LIDS, that hooks in at the VFS layer. so far, ext2 and ReiserFS have been confirmed to work. The only requirement the fs is persistent inode labelling(?-my terminology is off-?), but (IIRC) ext3 and xfs have also been tested.

      Check the mailing list for details.

  50. More to the point... FTP & most mail services by SacredNaCl · · Score: 1

    have been known to be risky for a long time. It is my hope that some of these ideas will be incorporated within the next kernel, or show up as modules. For your front line servers running apache, ftp, sendmail, and maybe generating content on the fly via a database - this would make sense to isolate those issues there. It would also seem quite reasonable to run those services known to have high risk on a virtual machine, reducing the compromise to just that layer (hopefully). Anyone had a great deal of experience with that route? I didn't start using Linux because my other OS was too secure....

    --
    Freedom is merely privilege extended unless enjoyed by one and all.
  51. Why yet another CWM/B1 effort? by Roxy · · Score: 2, Interesting

    In my opinion (as a practicing Head of Information Security and a former Security Architect for a number of kernels) what Linux really needs are capabilities (which we have, we just need to start using them by default) and a functioning audit subsystem. A functioning audit subsystem does not compromise only the kernel part, but also the audit compression/reduction facilities (normally done in user space) and the tools to define what events to audit and tools to search and securely store audit trails.

    Audit trails that can be (semi-) trusted is what most of us security people demand, and which Linux doesn't deliver (don't tell me about syslog, as it is designed for IT administrators, not security administrators).

    These seems to be present in the HP-LX (can't access HP's website right now, but I assume it is based on the old SecureWare code HP purchased a while back and been using the last couple of years). Unfortunately, what Bruce (Perens) says about that it would be easy to reconstruct the user space parts of the auditing subsystem I disagree with, as this is the majority of the code and also the most complex part.

    With Best Regards

    Roland B.

    --
    -- Roland Buresund MBA, MCMI, CISSP
    1. Re:Why yet another CWM/B1 effort? by Anonymous Coward · · Score: 0
      ...what Linux really needs are capabilities (which we have, we just need to start using them by default) and a functioning audit subsystem...

      Its a pity that LSM in its current form is not going to support ACLs, Audit and fully-fledged capabilities, however the door has been left open, we are just going to have to wait a bit longer.

    2. Re:Why yet another CWM/B1 effort? by joubertb · · Score: 1

      You are right that HP-LX has an audit subsystem. Actually, this audit subsystem can be run on any Linux system. It is not specific to HP-LX.

      None of the code for the audit subsystem in HP-LX is from SecureWare. But the lessons learned from SecureWare/VirtualVault is what motivated this audit subsystem.

      The audit kernel driver and the audit daemon are all open sourced. The reduction program is not open sourced. (I hope to change that in the future :-) But I have battle on my hands on that one).

      The goal of the audit subsystem was to get the audit data out in any format that the user wanted. You could view this audit data in a format that you wanted or you could pipe your audit data into an IDS system of your choice.

      HP-LX audit is 1.0 software. It is missing many things. But, after some evaniglizing (sp??), it was a 6 month effort from the "go" word to out the door. So, somethings needed to be cut back on.

    3. Re:Why yet another CWM/B1 effort? by Roxy · · Score: 1

      Interesting, now the questions is why I can't seem to access hp.com at all? "Slashdot effect" or Compaq/Fiorina effect?

      Any mirrors?

      Roland B.

      --
      -- Roland Buresund MBA, MCMI, CISSP
  52. GC experience from GCC 3.0 by markj02 · · Score: 2
    BTW, while using a safe language does not require using garbage collection, garbage collection has many benefits. Here is the experience with GCC 3.0 (from http://www.codesourcery.com/publications.html):
    The memory management scheme used by the com- piler itself was radically altered for the GCC 3.0 release. Memory allocated by the compiler is now garbage collected; previous releases used a complex system of memory pools. This change greatly re- duced the number of memory-allocation bugs in the compiler, and simpli ed the implementation of new features. Use of garbage collection, and other associated im- provements associated with memory management, have dramatically reduced the memory footprint of the compiler in some cases. There have been im- provements as great as 60% (from approximate 300 MB to approximately 100MB) when compiling some C++ programs. vantage of these features.
    C-style manual storage management is not only error prone, unsafe, and cumbersome, it often is also inefficient.
  53. Surprised nobody's mentioned TrustedBSD Project by Anonymous Coward · · Score: 2, Informative
    More info here.

    Much of the work is to be rolled into a future FreeBSD distro. And that's released under the BSD license -- than which you can't get much less restrictive.

    1. Re:Surprised nobody's mentioned TrustedBSD Project by Anonymous Coward · · Score: 0

      Or, for that matter, this...

  54. Re:There are major problems with compartmentalizat by mrseth · · Score: 1

    Not if you do a recompile and do not include support for such features (e.g., DRI). I guess if you were really worried about it, you also could build a monolithic kernel with no loadable module support.

  55. Re:The Confused Deputy -- Red Herring example. by anon+mouse-cow-aard · · Score: 1


    uhm.. on UNIX, directories and uids exist.
    They should be used properly.
    Why "must" billing information be stored in
    the same place the compiler stores debug stats?

    UNIX accounting runs under a particular user
    (typically adm) and the information is written
    by kernel calls to the pacct file on process termination.
    There are very sound reasons for this separation
    of concern, like making it impossible for the
    compiler (or any other arbitrary program) to
    overwrite system accounting data.

    There is no reason for a compiler to have to have
    any ability to write to the accounting files.
    If that is considered a design requirement,
    then the design was wrong.

    In terms of debug/frequency stats, create a
    directory, make the compiler setuid or gid
    to be able to write there, and put the stats
    and ONLY the stats in that directory (
    you do the set(ug)id, at the very end,
    just to write the stats file as the last
    hurrah.) Or even just leave it public write,
    if someone wants to futz with your stats
    they really have time on their hands.

    I have nothing to say on the merits of capabilities,
    but the given example is quite weak, in that it
    Fixes a design error by creating an elaborate security
    mechanism. The simpler solution would be to
    fix the design.

  56. Re:There are major problems with compartmentalizat by Anonymous Coward · · Score: 0

    XFree86 pokes around in /dev/mem and is perfectly capable of crashing your computer, giving root access, and destroying your hardware. In short, the "UN*X crowd" (aka M$-hating slashdotters) are fucking full of shit.

  57. Remember the 432 by Bruce+Perens · · Score: 2
    We need better hardware architecture, too. Remember the iAPX 432? Every function was a protected island. Too bad the thing was designed to run Ada and the technology of the time made it too slow and expensive. We could do it well today.

    Bruce

  58. How to build secure applications by Animats · · Score: 2
    You really have to have applications designed to use a secure system like this. Programs need to be divided into multiple, intercommunicating components, with narrow interfaces and different privileges for different components. Security-related, trusted code should be small and do as little as possible, so that it can be thoroughly checked and seldom modified. Big code should be untrusted and run in minimal-privilege boxes. This is the basic architecture of secure systems that actually work.

    For example, a mail handler should be composed of several components in separate security compartments:

    • The mail database, which can talk to its own files, can accept interprocess connections from other local mail components (and can verify their identity), and can't talk to the network. The database contains mail from multiple users, so it's trusted in that sense, but is more of an object than a subject; it isn't allowed to initiate anything.
    • The external connection authenticators, which receive initial POP and SMTP requests, process them until they authenticate, and then fork off a separate process for each connection. These are trusted processes, and they perform only security-related functions. That's key. Note that this is roughly how UNIX "login" works.
    • The per-connection communication processes. Each of these can only talk on the network connection it inherits, and the connection to the database it inherits. The database can check the credentials of the process, which are set by the authenticator and cannot be changed by the per-process connection. These processes do most of the work. They are untrusted; that is, they have no security responsibilies and cannot corrupt the rest of the system. The stuff that is always breaking in Sendmail goes here.
    • (other components as needed)

    That's what NSA Secure Linux is intended to support. DoD secure systems have been built like this for at least two decades.

    Again, and I cannot overemphasize this, the key is that the trusted components must be small. All other architectural considerations, including performance, must yield to this if you want security.

  59. Re:There are major problems with compartmentalizat by peter · · Score: 1

    No, you would need to use capabilities (lcap and stuff) to stop any processes from giving themselves IO priviledges. You can't turn off iopl(2) and ioperm(2) support in the kernel config, but you can remove the capability once the kernel is started, I'm pretty sure. Also, you have to disable module loading (with lcap, so you can do this after the mods you want are loaded), otherwise someone who gets root can load a kernel module that can do anything and everything they want.

    --
    #define X(x,y) x##y
    Peter Cordes ; e-mail: X(peter@cordes , .ca)
  60. Re:There are major problems with compartmentalizat by Anonymous Coward · · Score: 1, Insightful

    The thing is, even if kernel holes are not remotely exploitable, userland holes make it possible to exploit kernel holes locally...thus rendering compartmentalization irrelevant.

    Yes, kernel holes are implementation or design bugs that should be fixed. Ideally, compartmentalization would be a decent security solution for userland, although if the kernel is secure then finer-grained access controls are just as good (and IMO nicer).

  61. Argus Pitbull LX by Auka · · Score: 1

    Just to mention Argus Pitbull / Pitbull LX from Argus which is also available for Linux...

    And... no I'm in no way affiliated with them... ;)
    But I have to admit I attended an Argus Pitbull Training. ;)

  62. Who does not know that? by Anonymous Coward · · Score: 0

    Bruce said "they pay for all of my political efforts on behalf of free software - working on software patent issues, speaking, writing, etc."

  63. The mythical idiot-proof distro/OS by Deus+Ex+Machina · · Score: 2, Interesting

    Call me on this if I am wrong here, but is the major factor in spending $3000 on this gem of software is chroot jails (or a reasonable facimile)? The article was rather brief, but from the look of it, aside from that feature - which the article even admits is not new - we have one other feature, that it is "secure by default". Well, does it keep you from installing Telnet ever? What about the Berkeley R-tools? The SSH root admin thing looks clever at first, but how many places have you worked at where the same root password was used across multiple boxen - even those of different OSs? Now, how much do you want to bet that the password over the SSH key is going to be the same, or similar, to the password for root itself in most installations? How is this any different than simply having a second login prompt for root?

    Look, I'm sure someone else has said this already a million times here, and I know Bruce Schneier makes it his mantra, but I'll repeat it for those of us who came late: Most of security has nothing to do with software, and everything to do with poor procedure. All the chroot jails in the world cannot restrain the sheer magnitude of people's apathy toward secure practice and process.

    And yes, sometimes even the best security is broken. Let's face it, if you want your data secure, you are already outnumbered millions to one. Yet, this is a default condition - the majority of security vulnerabilites are relative to the actions of script kiddies, who use network flooding and other lame attacks to force people off the net and crash systems. Adding another security layer will make it harder to brute-force your way in, certainly, but what's the point of sealing the door with concrete if lazy administration practice leaves the windows wide open?

    And, how does this differ from OpenBSD? I'm not a BSD zealot, but way too much of this sounds like the exact practice taken toward OpenBSD development. Does this software deserve extra creds because it costs more? Are people more likely to take security seriously if they spend $3000 on an operating system than if they get it for free? How much of this code is audited? All the default packages? Did they audit anything, or did they just implement chroot jails and assume they have found a "workaround" for a malignent problem in UNIX security?

    I'm not saying that this is a bad idea. I'm sure this distro will provide for a more secure environment by default, for those of us who don't have the time to audit our production boxes. But I just don't see reason to presume that this distro is any more secure than a properly configured SELinux or OpenBSD box. And please, if you think I'm wrong, enlighten me, because I'm no expert. I just think that building a better mouse trap is pointless when the trap operators don't know how to operate it.

    --
    Know ye not that ye are Gods???
    1. Re:The mythical idiot-proof distro/OS by joubertb · · Score: 1

      Chroot is just one of the security mechanisms that is used by HP-LX. But I would not highlight this as one of the major security mechanism.

      The containment mechanism implemented in HP-LX is something new. By this I mean, you can create "compartments". Every compartment is independent of other compartments. But this does not help much unless you can allow communication between the compartments. This is where "communication rules" come into play. You you can say something like:

      Compartment web -> compartment java port 9999 method tcp device eth_lo

      You have now created a communication channel that allows a process to talk from the web compartment (your web server) to the java compartment via the loopback device on port 9999.

      Additionally, you have the ability set rules on files. You could say:

      web /apache/htdoc read
      web /apache/logs read,write,append

      Here your application running in the web compartment has only "read" access, no matter what the DAC permissions are on any file in the /apache/htdoc directory tree. If you had a file /apache/htdoc/project/index.html which is 666 you would still only have "read" access.
      For files in the /apache/logs directory
      you give "read,write" access to files in the directory tree.

      To me, these are the most important security features provided by HP-LX.

  64. Hardening is VERY expensive by gelfling · · Score: 2

    Because of all the labor and brain work involved. This a VERY good thing for shops and ISPs that standardize on HP to do.

  65. Trusted Solaris by ChaosMt · · Score: 1

    I'm surprised that no one has addressed one of the big reasons for this release. This is to compete with Sun's Trusted Solaris in trying to land more defense contracts and customers. For one or two cpus it's about the same price. However, sun has been developing this much longer and may be able to scale to larger number of cpus better. If we could only convince those defense people to stop using SunOS now.

  66. HP-LX : quick description by Anonymous Coward · · Score: 0

    For those without the time to read what HP-LX really does:

    1. Non - standard, Different stuff:

    - Forces you to add a label to all processes (in a kernel structure). A process can NOT change its label (even if it is run by root). All processes with the same label are said to run in a "compartment". LAN cards are also associated a "compartment".

    - lets you define what files can be read / written by a process in a compartment (Additional to std permissions). These rules cannot be broken even by root.

    - Lets you define what sockets can be opened between compartments (kind of a intramachine firewall). Lan cards are also compartments so you can very well avoid, say, something running as root in a compartment to open a socket back to the internet. These rules cannot be broken even by root.

    - Defines an additional "capability" to allow all previous rules to be changed. A process with this capability and running as root can change the previous rules. The capability is given to init, but as soon as a process drops it (which init does for almost all processes) it cant be recovered. The way this is implemented, this capability is kept for the console getty (for local administration) and for a modified ssh daemon, that keeps it if you are using the correct private key (for remote administration).

    - Capability - enabled modified ssh daemon (see above).

    - A kernel auditing facility.
    - Assorted admin tools related to everything described above.

    2- Nice to haves:

    - a pre-hardened (as in Bastille), pre-configured Red Hat linux distro.
    - pre-installed tripwire
    - integration tools (for the previously mentioned environment) which also help you with the chroot stuff. Chroot is used as an ADDITIONAL security method. NOT as the primary one.

    3- "Security is a process" comments:

    Lets hear from Bruce Schneier himself (Secrets & Lies, p. 133-134)

    " A secure operating system, and hence a secure computer, has several key components. One is a strong mandatory security mechanism of a more general model that the formal models discuss"...

    (See compartment stuff above)

    "The second key component is a trusted path. This is a mechanism by which a user or a process can interact with a piece of trusted sofrware, which can be initiated by either the user or the trusted software and cannot be impersonated..."

    (See "capability" stuff above).

    4- Conclusion

    Draw your own.

    A. Coward

  67. some clarification by joubertb · · Score: 2, Informative

    First some clarification.

    HP-LX has no VirtualVault code. There is nothing in HP-LX code that is derived from VV.

    A trusted/secure OS should not be your ONLY security mechanism. It is just a part of the overall architecture.

    So, what were the goals of this product:

    VirtualVault covered the ultra security needs. But at a cost. You needed to intergrate your applications on a VV. You had to teach your sysadmins about VirtualVault. Many smaller shops could not justify the cost of these. So an alternative was created by HP.

    Some form os security is better than no security at all. So, what HP wanted to do is lower the complexity of the security mechanism and raise the ease of use. This would allow people to get applications up and running quick on their machine and not have to retrain their systems on a new os.

    So, the product had to be:
    1. Help protect services on the network boundry. So, this is not designed as a multi-user system. It is designed to protect any type of service that is made available on a public network.
    2. Easy to use. Without this, it would be an interesting product, but acceptence by the non-security folks would be hard.
    3. Security should not be intrusive. So, as little code change as possible. By this I mean, try not to make changes to user space programs. The admin should be familiar with the environment that he is running in. Only 2 programs are changed, init and xinetd.
    4. Sometimes security had to be relaxed in order to keep it easy to use.

    These were the four high level drivers for this product.

    From a feature set, there are three major components:

    1. Containment. Protecting agains ALL buffer overflow attacks is difficult. So, lets contain the damage. Compartments helps us issolate the application from other applications/subsystems on the system.

    2. An audit subsystem to be able to watch what is going on on the system. Collection audit does not help if you can't do anything with it. So, it had to be flexible. It is in it's early stages.

    3. Lockdown. This mean, locking down most of the permissions on the system. Use tripwire to monitor what is going on on the system. Turn off most of the service that are needed. Generally, do whatever you would do to lockdown a system that is put on a public network.

    This should give a little insight into the motivation for the product. This should help shed some light why some decisions where made. The goal of this product to to find a right balance between "ease of use and security". You can be the most secure product, but if it is difficut to use, it will be cast aside. HP-LX is an attempt to achive this balance. More work is needed, but it is the first step...

  68. Time to die by Anonymous Coward · · Score: 0

    the number of people that complain to me about not being able to use telnet is disgusting

    You're a fucking idiot, with nothing indelible, nothing that will remain once you leave the small, small patch of nolife that you now barely inhabit.

    To not know telnet is not disgusting. To know that one must live as you is the fright which can never be remedied.

    Fuck you, and your small existance. Smaller than the smallest thing which no girl will ever see as they laugh at you.

    Stay suck, baby.
  69. Re:There are major problems with compartmentalizat by Oggust · · Score: 1
    :even if kernel holes are not remotely exploitable,
    :userland holes make it possible to exploit kernel holes locally

    No, not neccessarily.

    The trick is boxing the applications so they can't do much damage. On (for example) selinux you can grant xntpd permission to do just what it needs to do its' job, and nothing more. Maybe you don't want to let it read world-readable files (the only file it has any business reading is its config file, so why let it do anything else?), or fork, or whatever.

    This means that a cracker would have to be really lucky. He needs to find an exploitable application that gets to use an exploitable local feature.

    Even if he manages to turn xntpd's image in memory into a shell, he'd end up with a really stupid shell which basically can't see any of the filesystem, can't run commands, etc.

    /August.

    --
    "An object declared as type _Bool is large enough to store the values 0 and 1." -- 6.1.2.5, C99 standard.
  70. Safe languages by Peaker · · Score: 2

    Safe languages are languages incapable of expressing things like buffer overruns or overrunning other memory, or invalid array indexing. This means they cannot express corruption of memory and are not volenurable to the vast majority of problems in most things today. Those languages, including Python, Smalltalk, Lisp, Perl, and others are incapable of crashing the machine (although sometimes C modules written for these do crash the machine), yet are Turing Complete and capable of solving any problem C, C++, or other unsafe language is capable of solving.

    1. Re:Safe languages by Pussy+Is+Money · · Score: 1
      Buffer overruns do not occur because programmers do not know how to do bounds checking. We see a lot of buffer overruns occur however, because the only languages truly suitable for most problem domains are the languages that allow these things to happen. Completeness has nothing to do with that by the way. Reliability, memory usage, speed and portability issues have.

      Besides, if programmers can't get something simple like array indexing right, then how are they going to get the much, much, much more complicated domain-specific safety issues right? And how are you going to prove that your favorite Common LISP implementation actually does not violate any of the requirements? Look at how "safe" a language like Javascript is. Or Visual Basic.

      You see where I am coming from, when your C code malfunctions, that is not a flaw with C -- it's a flaw in your code.

      --
      Pushin' 'n dealin', shovin' 'n stealin'
    2. Re:Safe languages by Peaker · · Score: 2

      Buffer overruns do not occur because programmers do not know how to do bounds checking.

      I suppose you meant that programmers do not bound-check properly. Obviously this is the cause of the failures. However, safe languages solve this problem by guaranteeing this can't happen.

      We see a lot of buffer overruns occur however, because the only languages truly suitable for most problem domains are the languages that allow these things to happen.

      Tell me, how are the unsafe languages such as C or C++ more suitable for daemon coding than Python, Lisp, Scheme, etc?
      Python, along with Twisted Matrix, for example, allows for easy, safe, and very fast network daemons. Medusa is an example of a very fast Python webserver, written in much less code than equivalent C\C++, and executing at least as fast.
      If Python allows performance, ease of development, reliability and guarantee of security (from such volunerabilities), how is it less suitable than C or C++ for the development of network daemons?

      Completeness has nothing to do with that by the way. Reliability, memory usage, speed and portability issues have.

      Reliability, and portability issues are both voting against C and C++.
      As for speed, safe languages prove to be at least fast enough for I/O-bound applications. Some safe languages (Common Lisp, OCaml) even prove to compile to much more efficient code than C\C++ in many cases.

      Besides, if programmers can't get something simple like array indexing right, then how are they going to get the much, much, much more complicated domain-specific safety issues right?

      That's bull. All programmers make mistakes. What you are talking about here is the ability to make 0 mistakes as far as array indexing, pointer management, and other low-level issues are concerned. Firstly, there are always potential mistakes in any part of a program. Secondly, pointer management (killing dangling pointers correctly, managing complex pointing graphs, etc) is not trivial at all.
      Therefore, a language that makes you a guarantee of safety in those regards, and handles all those low-level issues automatically and correctly, is a huge benefit.

      And how are you going to prove that your favorite Common LISP implementation actually does not violate any of the requirements? Look at how "safe" a language like Javascript is. Or Visual Basic.

      You're not going to prove it, but debugging a single, finite code base (A compiler) is a hell of a lot easier than debugging and correcting infinite amounts of code written all the time. To claim it is as hard to maintain correctness of the compiler as it is of EVERY program out there is absurd.

      As for Visual Basic and Javascript, my experience is that they are safe in those regards. They are obviously (at least Visual Basic) not examples of stable well-tested platforms, as many of the Lisp, Python, and other compilers/VM's are (especially when considering the reputation of the creators).

      You see where I am coming from, when your C code malfunctions, that is not a flaw with C -- it's a flaw in your code.

      Assuming the goals of your language are to ease development and provide the best platform for developing software, a language that does not provide a guarantee of safety is far inferior to one that does, in terms of fulfilling those goals.

    3. Re:Safe languages by Pussy+Is+Money · · Score: 1
      I suppose you meant that programmers do not bound-check properly. Obviously this is the cause of the failures. However, safe languages solve this problem by guaranteeing this can't happen.
      Sure, they do. But it is a non-issue. The reason we see a lot of buffer overflows is simply because most popular software gets written in languages that allow buffer overflows. Not because this is some Really Big Problem that we should be sacrificing two-thirds of our CPU cycles and 110% of RAM to.

      Before you reply saying that it is in fact a big problem, your task is to figure out why that software is so popular.

      Tell me, how are the unsafe languages such as C or C++ more suitable for daemon coding than Python, Lisp, Scheme, etc?
      Funny, I was thinking the same, only different. Why don't you tell me why the most popular daemons are written in C and not in <your favorite interpreter>?
      Reliability, and portability issues are both voting against C and C++.
      Ah yes, reliability such as Perl's or Java's, which just keep eating memory until you reboot the machine, or portability such as Lisp's, with it's one, no um two, no sorry three, well actually four, or was it five, competing dialects.

      As for C's portability: do you even know on what hardware C was first implemented?

      As for speed, safe languages prove to be at least fast enough for I/O-bound applications. Some safe languages (Common Lisp, OCaml) even prove to compile to much more efficient code than C\C++ in many cases.
      Ah yes, the miracle cases, I've heard of those. Wonderful those, even though they never seem to actually materialize. So that's like, what, running a marathon with a jerrycan of water on your back, saving you 10 seconds in case you get thirsty?
      Python, along with Twisted Matrix, for example, allows for easy, safe, and very fast network daemons. Medusa is an example of a very fast Python webserver, written in much less code than equivalent C\C++, and executing at least as fast.
      Again, wonderful. What leverage does any of this have on the success of something like, say, Apache?
      If Python allows performance, ease of development, reliability and guarantee of security (from such volunerabilities), how is it less suitable than C or C++ for the development of network daemons?
      Well, if it would actually offer all that, then it would not be less suitable. However, it doesn't.
      That's bull.
      Very articulate, thanks.
      All programmers make mistakes. What you are talking about here is the ability to make 0 mistakes as far as array indexing, pointer management, and other low-level issues are concerned. Firstly, there are always potential mistakes in any part of a program. Secondly, pointer management (killing dangling pointers correctly, managing complex pointing graphs, etc) is not trivial at all.
      Wow. Programming is hard? News at eleven I suppose. "Solving a differential equation is not trivial at all, so we're going to use this new math..."
      Therefore, a language that makes you a guarantee of safety in those regards, and handles all those low-level issues automatically and correctly, is a huge benefit.
      Again, wonderful. Too bad, then, that it's not here yet.
      You're not going to prove it, but debugging a single, finite code base (A compiler) is a hell of a lot easier than debugging and correcting infinite amounts of code written all the time. To claim it is as hard to maintain correctness of the compiler as it is of EVERY program out there is absurd.
      Right, right, you don't even bother to read your code, because whatever the compiler spits out must be perfect. Whatever.
      As for Visual Basic and Javascript, my experience is that they are safe in those regards. They are obviously (at least Visual Basic) not examples of stable well-tested platforms, as many of the Lisp, Python, and other compilers/VM's are (especially when considering the reputation of the creators).
      Your experience is that they're safe? So much for your experience then.

      Seriously, how did you expect me to respond? Are Outlook worms the cause of buffer overruns or dangling pointers?

      Assuming the goals of your language are to ease development and provide the best platform for developing software, a language that does not provide a guarantee of safety is far inferior to one that does, in terms of fulfilling those goals.
      Our goals are to deliver fast and useful software with few bugs. Not to waste time "easing development" for contingencies that never actually occur. Sorry.
      --
      Pushin' 'n dealin', shovin' 'n stealin'
    4. Re:Safe languages by Peaker · · Score: 2
      Your bias against safe languages is almost too appearant.

      Your claims sum up to:

      Popularity is a measure of quality:
      Should I really have to discredit this one? What has NetBSD or FreeBSD done to make Windows less popular? Nothing. Are they better than Windows for many many useful purposes? Most people think so.
      Python webservers, and Python code is often used in server-side, but maybe you haven't done your homework.
      Major sites like Google, NASA, Yahoo, FourEleven, Nortel... use it in the core of their products.
      There is a huge list of Lisp users, not to mention Java server-side code.
      C and C++'s popularity is dying down, and now that Microsoft Marketing will be pushing C# down everyone's throats, it'll probably remain only in the *nix domain, and as hardware improves, eventually die down.

      Safe languages are slow:
      Much research and comparison of different languages, such as Lisp and C++ seem to contradict this. Many show that most Common Lisp code using a good compiler will in fact execute faster than most C++ code.
      Already C compilers try to analyze the low-level code, making out high-level details of it in order to optimize it. Higher-level languages are in fact becoming more optimizable than C as compilers are getting more advanced.

      C is more portable:
      This is sort of a paradox as Python, Java, etc have C implementations, and require only high-level access, allowing portable implementations anywhere.
      Java VM can run both Java and Python code. Java VM's are implemented on more platforms than proper POSIX-compliant C compilers, last I checked.

      C is conceptually less portable. High-level languages will easily/natively make use of the new technologies like VLIW, whereas C compilers will have a VERY hard time using that technology in such low-level code.

      Programming is hard - therefore lack of safety (note: safety, not security) is acceptable:
      Note that not all, but most security problems result from this lack of safety. Unlike your claim, this safety really exists in languages like Python and Lisp.
      When was the last time pure Python or Lisp (without C modules) crashed? I've writtens dozens to hundreds of thousands of Python lines, and never experienced crashes in pure Python code. Some C extension modules crashed, as C code often tends to.

      The guarantee of safety is not worth the performance hit:

      Maybe running a pure Python-code webserver on a 586 100 with 16 megs of RAM is a bad idea.
      However, Common Lisp, OCaml, Python code to 'glue' optimized C modules, etc executes fast enough even on the older hardware, and the memory requirements are generally not that bad. Usually something like a factor of 2 or 3, with some constant size addition to C code.
      Today's hardware makes the language of your choice irrelevant, as the differences become more and more unnoticable.
      This almost-unnoticable 'hit' on performance is definitely worth the guarantee of safety, that eliminates almost all security problems.

      Outlook security holes were not solved by safe languages:
      True, but VBS *is* safe (not secure, SAFE). This means it does not crash.
      Most security problems are already eliminated. As for complete access to the machine, that's a security problem that has nothing to do with the use of safe languages.

    5. Re:Safe languages by Pussy+Is+Money · · Score: 1
      Allright. If you will recall, what I am contending is the latter part of your claim that The only real approach to security is a pure capability system, and ofcourse the combination of pure capbility systems with safe languages.

      In this latest reply of yours, you seem to almost agree with me, when you say: "VBS *is* safe (not secure, SAFE).". My point being, of course, that the only real approach to security is to, well, really approach security issues. Safe languages help to that end in so far as they can help prevent buffer overflow attacks or lock up the compute. But they do not "cause security".

      This safety, however, comes at a cost. Sometimes, perhaps even often, this cost may be so small as to be insignificant. But when it is not, then you must weigh the costs of (e.g.) buffer overflows against the cost of safety. And when you do that, as the market has done, it turns out that for arguably the most popular classes of software, the cost of safety far exceeds the cost of an occasional buffer overflow.

      One of the reasons for this is undoubtedly that many of the problems that a safe language fixes are easy to fix in the first place: i.e. a buffer overflow is easy to fix. Maybe hard to spot, but easy to fix. Now if you are in a situation where even a single failure due to a buffer overflow is unacceptable, or where the program's scope is so specialized that it makes no sense to worry about memory and pointers, then you should be using a safe lanuage. What popularity tells you however is that for the overwhelming majority of software, this is not the case.

      Now you might argue, well, the costs of using a safe language are negligible, and as I said above, often this may actually be the case. But such is not the more general or popular case. So what are the costs?

      Well, we could mention execution speed -- and in fact it was you (yourself a safe language advocate if you don't mind) who brought that up in the first place. It's not a surprise: proving that safe languages are not necessarily slow and may even be faster than C (yow!) is what safe language advocates have been doing ever since USCD p-code and Smalltalk ganged up on beefy hardware to bring it to its knees. So your claims are nothing new. Anyway, let's agree that speed is a cost. I'm even willing to accept that, yes, finally, Common Lisp can be just a fast as C. The problem is, that would make it, at best, not taking a step back. And then I'm not even talking about all the other performance related costs: startup times, garbage collection delays and the performance cost associated with a large memory footprint.

      Which brings us to another cost, which is memory. Again, you have to ask yourselves, is it worth sacrificing 10 megabytes of memory to a buffer overflow? And again, looking at the majority of popular software today, well, no, often the additional memory usage does not seem to afford the extra safety. You might argue that computers of today have more memory than yesterday, but again, then the best you can say is that it is not taking a step back. Now I'm being a little disingenuous, because those 10 megabytes are not used just to prevent buffer overflows. They also buy you a lot of other stuff. Are they worth it? Well, sometimes. However, the market predominantly seems to think not.

      Then other costs include a shortage of tools, a shortage of overall maturity and a shortage of skilled developers, all of which translates (or perhaps it's the other way around) into a smaller distribution, which in turn reinforces all of the above. It's a chicken-and-egg problem, but that doesn't negate the costs.

      Then, I won't deny it, I have a personal bias against safe languages, and the broader practice of "wrapping things up". Every time you make programming easier by e.g. wrapping something inside an object, what you are really doing is making the code easier to write and understand at the cost of not having to know exactly what the code does. If this leads to unseen defects, or unforeseen delays ("we will replace that with a real X later" when you don't really know what X is) at a late stage in development, it can kill the project. IMHO, right next to premature optimization as the root of all evil, is premature wrapperization as the fruit of an overactive imagination.

      --
      Pushin' 'n dealin', shovin' 'n stealin'
  71. Re:The Confused Deputy -- Red Herring example. by Peaker · · Score: 2
    There is no reason for a compiler to have to have
    any ability to write to the accounting files.
    If that is considered a design requirement,
    then the design was wrong.


    But the compiler IS outputting accounting information here.
    Its easy to claim that any design requiring a certain feature *nix cannot provide is wrong, but it sounds quite an absurd claim to me. You're trying to adjust the world to your OS, rather than write an OS that fits your needs.

    In terms of debug/frequency stats, create a
    directory, make the compiler setuid or gid
    to be able to write there, and put the stats
    and ONLY the stats in that directory (
    you do the set(ug)id, at the very end,
    just to write the stats file as the last
    hurrah.) Or even just leave it public write,
    if someone wants to futz with your stats
    they really have time on their hands.


    Problems:

    How is your solution preventing the original problem of a malicious user naming a billing filename as an output file?

    As long as the compiler 'changes hats' (Setuid/gid), the privelege-checking is quite complex and will probably result in VERY complex ACL's to achieve the goal.

    These stats are used for billing information, and people would thus be VERY willing to mess with them.

    All these security settings require root to set up, meaning that only a system administrator is capable of setting up any system involving security checks.

    Alternative approach:

    The mechanism used to identify (name) objects is that of unforgable, OS-implemented keys called "capabilities". These capabilities are much like *nix file descriptors, but they are never open()'d or close()'d. Having the capability is a necessary and sufficient condition to access the named object, the object does not care who access it.
    The above example, is very simply solved by capabilities:
    In order to name the billing file to the compiler, the user must have a capability to that billing file. In that case, the user is fully authorized to access this file. Obviously, the user does not have a capability to this file, only the compiler does, and since there is no way to forge a capability (just like file descriptors), the user cannot name the file he must not access, and may not confuse the deputy.

    Advantages:

    Users (code) can only express requests by access to a capability, meaning that code is only capable of expressing authorized requests. This means that there is no ACL test failure that may give false access to this user, as the mere ability to express a request is an indication of authority to do it.

    The only security test required at runtime is that the capability is valid, which is equivalent to the validity test of a file descriptor, nearing 0 time.

    Capability systems are in fact simpler systems, and many security properties of such can be mathematically proven, as demonstrated by Shapiro, in his proof of part of his EROS system.

    Capabilities have per-process granulity, rather than per-user granulity, and very fine-grained control of which objects every process has access to, thus the principle of least privelege is implemented.

    No need for a 'super user' that bypasses ACL's, because that would destroy the principle of least privelege. Every user can create objects and spawn capabilities to use those objects, and distribute them through every channel he has a capability to.
    This means any process with some minimal set of capabilities can set up a security system, not requiring any super user to bother, and killing the vast majority of threats involving a superuser.

  72. you forgot one by /Idiot\ · · Score: 1

    > Either post links [vnunet.com], facts
    > [cnn.com], or other references
    > [linuxtoday.com], or don't expect
    > anyone to listen to you.

    Some of us are here to learn how to flame from the experts.

    --
    /dev/Idiot/
  73. Why would you want too? by Mojo+Geek · · Score: 0

    The phrase "use it or lose it" comes to mind.