Slashdot Mirror


NSA Releases Updated SELinux

darthcamaro writes "Looks like our federal tax dollars are hard at work - improving security on Linux! The NSA - you know the folks that are shadowy figures on X-files - have released the latest updates to SELinux (security enhanced). Internetnews.com has got a piece on it where they talk to Gentoo and Red Hat about the release's significance."

46 of 319 comments (clear)

  1. eeeeenteresting.... by JoeLinux · · Score: 4, Funny

    I wonder how it compares to Tin Foil Hat Linux?

    Anyone can provide contrast/comparisons?

    1. Re:eeeeenteresting.... by DrLZRDMN · · Score: 5, Funny

      I don't know, compare them
      Tin Foil Hat Linux

    2. Re:eeeeenteresting.... by kfg · · Score: 5, Funny

      At least they have a sense of humor about it. Among the reasons to use Tinfoil Linux:

      The Illuminati are watching your computer, and you need to use morse code to blink out your PGP messages on the numlock key.

      KFG

    3. Re:eeeeenteresting.... by metlin · · Score: 4, Insightful

      Do you read all of your source code before you use the software?


      No, but if someone made changes and enhancements to my code or related to my code, I would most definitely like to see the changes.

      Especially if its an agency like the NSA.

      And am sure, so would the contributors to the various kernel and networking parts of Linux (or for that matter other Open Source works).

      Besides, ever seen your average mail (and the number of mails) on Bugtraq or Security Focus mailing lists? There are quite a few people out there who would be quite interested.

      Also, remember that even if NSA wanted to introduce backdoors, this would be too early - they would need to build up the trust to a level when people will get a little careless and then take advantage :)

    4. Re:eeeeenteresting.... by Darby · · Score: 5, Funny

      At least they have a sense of humor about it. Among the reasons to use Tinfoil Linux:


      I don't get it. What's so funny?

    5. Re:eeeeenteresting.... by afidel · · Score: 4, Informative

      It's the NSA's job to enhance the security of US government systems as well as attack the security of enemy systems. For a good example of the former see the changes they made to the DES algorithms S-Box selection function which made is more resistant to differential cryptoanalysis 20 years before the technique was reinvented by the public sector.

      --
      There are 4 boxes to use in the defense of liberty: soap, ballot, jury, ammo. Use in that order. Starting now.
  2. Shouldn't this be our default system? by ObviousGuy · · Score: 4, Interesting

    What kinds of changes in SELinux would be NOT welcome in mainstream Linux distros?

    --
    I have been pwned because my /. password was too easy to guess.
    1. Re:Shouldn't this be our default system? by winkydink · · Score: 4, Insightful

      Security = 1/Convenience Solve for your favorite variable.

      --

      "I'd rather be a lightning rod than a seismometer." -Ken Kesey

    2. Re:Shouldn't this be our default system? by MrHanky · · Score: 5, Informative

      SELinux is included in 2.6 kernels. Of course, you also need the right userspace tools to take advantage of it. I imagine distros will use SELinux when they migrate to 2.6.x.

    3. Re:Shouldn't this be our default system? by FooAtWFU · · Score: 4, Funny
      Security = 1/Convenience Solve for your favorite variable.

      That can't be true, because it would mean that Windows has infinite convenience!

      --
      The World Wide Web is dying. Soon, we shall have only the Internet.
    4. Re:Shouldn't this be our default system? by rgmoore · · Score: 5, Informative

      Except that this isn't necessarily true. It's probably true that there's an inverse relationship between convenience and security within a given security architecture, but the whole point of SELinux is that it changes the architecture. There's no loss of convenience to a user when suid programs are replaced by ones that have specific limited privileges, but there is a big gain in security. An average user probably won't even notice that they're using a SELinux system instead of an older system. It may be more of a pain for administrators, and certainly will be more of a pain for distribution writers, but they're professionals who should be able to deal with it.

      --

      There's no point in questioning authority if you aren't going to listen to the answers.

    5. Re:Shouldn't this be our default system? by exhilaration · · Score: 4, Insightful
      who would trust the NSA

      Anyone that can read and understand C. Thank God for OSS.

      A better question would be, who would trust Microsoft?

  3. X-Files Eh? by mattdev121 · · Score: 5, Funny

    ScullyEnhanced Linux?
    I'm in. Where do i get it?

    --
    mattdev@server$ touch /dev/genitals
    cannot touch `/dev/genitals': Permission denied
  4. Context by lukewarmfusion · · Score: 5, Interesting

    This comes right on the heels of a report by a security firm that Linux was the most vulnerable server OS...

    On the other hand, I think this is a great example of why open source software is a good thing - anyone, the government included, can improve the software. I'm sure they feel much better about using an OS that they've personally inspected and tested than something else.

  5. Rather generous of the NSA by mrdaveb · · Score: 5, Insightful

    Seeing as any changes the NSA make are presumably only used internally by the agency, they are under no obligation to release the source. So this is quite a community spirited move on their part.

    Unless of course they are trying to sneak some NSA backdoors into Linux kernels :-)

    --
    Homme petit d'homme petit, s'attend, n'avale
    1. Re:Rather generous of the NSA by ePhil_One · · Score: 4, Insightful
      Seems like folks (other than me :) could trivially diff the source and find out what "enhancements" thay have made. I would expect that the authors of the code would be very interested in the changes amd would check it out, at the very least.

      All in all, this is a very good thing. If nothing else, its kind of hard for other OS's to compete with "The NSA's OS" on security concerns.

      --
      You are in a maze of twisted little posts, all alike.
    2. Re:Rather generous of the NSA by Gorath99 · · Score: 5, Insightful

      Well, since it's all GPL anyone can go though the code to look for backdoors. If the NSA has actually planted backdoors and they're found, then that is sure to backlash at them bigtime (nobody will trust them ever again), so I don't think they actually put any in.

      However, that doesn't mean that taking a long and critical look at the modifications isn't worthwhile...

    3. Re:Rather generous of the NSA by AndroidCat · · Score: 5, Funny

      They'll regret such foolish generousity when Darl and SCO bitch-slap them with a law-suit and a request for n*$699 (for secret values of n). [Bugs voice] Please Jacques, not this distro!

      --
      One line blog. I hear that they're called Twitters now.
    4. Re:Rather generous of the NSA by Artifakt · · Score: 4, Insightful

      "(nobody will trust them ever again)"

      Like the average slashdotter trusted them now.

      Why should it surprise people if this code is clean. The NSA wanted an OS that they could examine, for their own security. They got one, and made sure it was as safe as possible so they could run it internally. Then they did what a government agency is supposed to do, that is, act like the law applied to them as well and respect the GPL. Like it would be smart to bite the hand that feeds them, and have to go back to using an OS they would have a harder time verifying.

      --
      Who is John Cabal?
    5. Re:Rather generous of the NSA by multiplexo · · Score: 5, Funny

      "Hello Mr. McBride, welcome to the National Security Agency Before we talk about your lawsuit and IP claims
      we'd like to show you a few things. Exhibit one. A picture of you entering a hotel room in Orem with two live nanny goats, a
      rubber raft, a pair of chaps and a can of Frymax fryer grease. Exhibit 2. Pictures from within the room of activities which violate the laws of God and Man, if not those of the State of Utah. Exhibit 3, credit card receipts for animal tranquilizers and male goat hormones. Shall we continue?"

      --
      cheap labor conservatives - they want to keep you hungry enough to be thankful for minimum wage.
  6. I am curious by enrayged · · Score: 5, Interesting

    Does the security enhancements developed by the NSA slow down the kernel? Does it make it harder to set up services such as email or apache? How much more secure is it than a standard vanilla kernel?

    I have not had the opportunity to play with SELinux but am interested in how it works, how difficult it is to set up properly and all that fun stuff

    1. Re:I am curious by temojen · · Score: 5, Informative
      Does the security enhancements developed by the NSA slow down the kernel?
      No
      Does it make it harder to set up services such as email or apache? Yes
      How much more secure is it than a standard vanilla kernel?

      It's not much more secure, except that it's based on a more flexible permissions system. So even Root may not have full root access, and it's not nescesary to be root to run a server (bind to ports lower than 1024), so long as you're given permission to that port. Also there's a lot more auditing support.

      So for standalone home desktops, it's mostly not nescesary, but for Banks, the military, and others than need a major paper trail for everything it's worthwhile.

  7. About time by cluge · · Score: 4, Insightful

    I find extremely disheartening that our tax dollars go into products, ideas and research that is then turned around and used for the benefeit of ONE company (see big drug companies, defense contractors, and certain university proffesors). That just seems plain "un-american". Here we have a rare exception, our tax dollar going to improve something for ALL americans (and the world too).

    Sadly Microsoft is lobbying to shut down the NSA's involvement in free software, claiming that the government is essentially "competing" with them. Somehow our tax dollar going to work securing windows isn't communist according to MS. Just if it also helps someone that ISN'T MS. Lets hope they fail.

    In the end, this can only be a good thing for ALL OS designers. It helps them look at how the people that stay awake at night worrying a lot think about security in an operating system.

    AngryPeopleRule

    --
    "Science is about ego as much as it is about discovery and truth " - I said it, so sue me.
    1. Re:About time by lukewarmfusion · · Score: 4, Funny

      Hell, this could be good for all OS users
      Imagine grandpa sitting down to breakfast, reading the paper, and seeing this article (if it's published in his paper). Maybe - just maybe, he'll think *is my computer secure?* And he'll realize it is.

      Knowing my fiancee's grandfather though, he'll think *those spooks are using my social security money on computer games?!*

  8. A few quick comments by picklepuss · · Score: 5, Interesting

    I just want to toss out the notion that the general complaint that slashdot readers don't read the article, and the slashdot effect are mutually exclusive. There were only 8 replies to this thread when I clicked the main article link, and although it wasn't completely slashdotted, it was incredibly slow coming up.

    My second comment is really a question: How do we weigh this up against Mr. McBride's letters to congressmen? It seems like they would probably lean on the NSA for advice on what's secure and what's not, rather than the seemed ravings of a madman.

    I would also throw out a little pointer that probably one of the major reasons that the NSA is working on the Linux Kernel is simply because they can. I'm almost certain that if they had the ability to tweak security in MS, they would do so.

    Kutos to the NSA for sharing it all with us.

    1. Re:A few quick comments by Anonymous Coward · · Score: 4, Funny

      Slashdot *readers* do read the article. Slashdot posters are another matter entirely...

  9. Pure gold? by Kiyooka · · Score: 5, Interesting

    Isn't this one of the best things to have happened to linux in the past year? How many operating systems can boast about having ***NSA***-quality security? Whether that's the whole story is another issue: this is marketing pure gold! That line in and of itself would be enough to catch the interest of most managers, I think. This may really kick open the door for Linux moving into the corporate space.

  10. Article Text (seems sluggish) by sik0fewl · · Score: 4, Informative

    February 24, 2004
    Linux Gets Security Boost from NSA
    By Sean Michael Kerner

    Most stories about government deployments of Linux involve a distributor helping various federal and municipal agencies install the open source operating system. But in this case, a federal agency is helping Linux.

    The U.S. National Security Agency (NSA), also known as the codemakers and codebreakers cryptologic division within the Department of Defense, has helped to harden Linux with newly-released Security Enhanced Linux (SELinux) kernel modifications.

    The latest release, which updates the base kernel to 2.6.3 and 2.4.24, contains numerous significant improvements to security in the open source operating system. The SELinux improvements mark a major breakthrough for Linux. Because of the NSA's contributions to the kernel, the new security features will now show up in mainstream distributions of Linux.

    "Conditional policies are significant and also networking hooks were added, which makes SElinux all that much more powerful," Joshua Brindle, hardened Gentoo Linux Project Leader and the NSA's SELinux contributor, told internetnews.com.

    "They also exported AVC (define) controls to userland to facilitate strong X-based access control and privilege separation," he added.

    SELinux was released by the NSA under the GNU GPL open source license. SELinux is essentially a Linux Kernel with a number of utilities that provide enhanced security functionality. But the critical component of SELinux is how it implements and handles mandatory access controls.

    "SELinux is important because mandatory access controls are essential to limiting access to daemons and users to only what they need. It also solves the age-old almighty powerful superuser problem in Linux," Gentoo's Brindle told internetnews.com.

    "We stress however that it isn't an end-all solution, that it must be combined with additional layers of protection."

    Debian, Gentoo and Red Hat Fedora's latest test release of Fedora Core 2 all currently make some use of SELinux. Red Hat also plans to incorporate SELinux into its next Red Hat Enterprise Linux release

    This "marks an important milestone in what enterprises globally feel is an important issue," Red Hat spokesperson Leigh Day said of the SELinux update. "One of the first issues we hear from our customers when talking with them about solution requirements is security," she told internetnews.com. "Were pleased to be working with the NSA to bring SELinux to our distribution. We will incorporate SELinux fully in our next release of RHEL 4."

    The Security-enhanced Linux kernel enforces mandatory access control policies that confine user programs and system servers to the minimum amount of privilege they require to do their jobs.

    --
    I remember when legal used to mean lawful, now it means some kind of loophole. - Leo Kessler
  11. Dunno why the link wasn't in the article. HERE: by MikeCapone · · Score: 4, Informative
  12. Agree Strongly. by Anonymous Coward · · Score: 5, Insightful

    You can say whatever you like about backdoors and the like, but you can be goddamned sure i want some of the brightest minds in this country looking at the code i use as opposed to the dumbfucks that i graduate with that go to work for regular companies. As for the brightest minds? Just take a look at the requirements to work for the NSA vs. Microsoft (and NO, i'm not talking about security requirements).

  13. Re:Better go over the source... twice by Tackhead · · Score: 5, Insightful
    > Whoooo nelly... It kind of makes you wonder what kind of "enhanced security" those boys loaded that thing up with?

    Well, those who are able should be going over the source closely anyways. The adversaries are!

    Remember, NSA has two mandates:
    1) Help Americans secure their boxen, and
    2) Be able to 0wnz0r any non-American's boxen.

    Just because #2 gets all the press on Slashdot doesn't invalidate #1. The net effect of "more machines on the network are secure, even though some of those machines are used by non-Americans, and even if that fact makes some things a little more difficult for the other half of NSA" is still an increase in security for Americans.

    SELinux is consistent with NSA's goals in providing a secure information infrastructure for US Citizens. Given that NSA knows that the code will be closely examined by both NSA-friendly and NSA-hostile folk alike, I'd expect SELinux code to be safe, and would treat such code with a policy of "trust, but verify." (More precisely: "Verify, but trust.")

  14. Re:Come on by sik0fewl · · Score: 4, Funny

    Then again, I'm pretty sure my mailman opens my birthday cards.

    So does the NSA :)

    --
    I remember when legal used to mean lawful, now it means some kind of loophole. - Leo Kessler
  15. That's nice but... by nzAnon · · Score: 4, Funny

    i'm sure it can't hold a candle to BarbieOS !!

  16. Not at all mutually exclusive! by qortra · · Score: 4, Informative

    Apparently, you don't understand the difference between a "page impression" and a "read". Now, here's what the normal slashdot user does:
    1)clicks on link
    2)looks for colorful photos
    3)Presses Ctrl-F, then types "screeshots", then Enter
    4)Clicks on any links he finds in that context.
    5)If he finds nothing, clicks "Back", clicks "Reply", and makes an uninformed comment

    Very little reading usually goes on; just viewage of pretty pictures. And, of course, this just makes the slashdot effect worse; text doesn't really hurt webservers as bad as big JPGs. That's why two hours after the posting on slashdot, the site admins are always back online with a text-only version of their site saying something like "I've never seen so much web activity in my life".

  17. Re:Antitrust by Cipster · · Score: 4, Interesting

    They spend money on it because they need to use it. I am sure the computer security required by the NSA is not met by most vanilla versions of OSes out there.

  18. US Government employees MUST relinquish copyright by lkcl · · Score: 4, Insightful

    the combination of linux being open source plus the legal requirement that all US government employees must release code they develop as public domain results in SElinux.

    in other cases it results in a very good statistical test suite being dumped into the public domain.

    http://csrc.nist.gov/rng/

  19. Hardened Gentoo by MadMethod · · Score: 5, Informative

    Alot of my Gentoo specific comments were taken out of the article so I'll provide them below:

    MAC's are only the enforcement part, auditing is also very important and sadly something lacking in LSM. We are looking into different auditing schemes to compliment SELinux.

    Recently we have completely integrated PaX memory protections into the SELinux policy. Unfortunatly Redhat's Ingo wrote execsheild, which he admits provides less protection so most of the SELinux camp is not interested in the work we are doing in this area.

    We also provide much tighter policies by default whereas Redhat/Fedora has chosen to make the user domains much less restrictive and 'user-friendly'. This isn't in line with the goals we've cited on out page http://hardened.gentoo.org . While user friendliness is important taking restrictions away from domains inevitably loosens security.

  20. Go Linux by SphericalCrusher · · Score: 4, Insightful

    I'd rather pay taxes to support the stability of Linux, than to pay taxes to keep a piece of vulnerable software running any day.

    --
    "Instant gratification takes too long." - Carrie Fisher
  21. changelog by jjeffries · · Score: 4, Funny

    Summary of Changes for SELinux

    [classified@classified]

    [classified@classified] fix broken (classified) in (classified).c

    [classified@classified] changed (classified), added (classified)'s patch to (classified)

    [classified@classified] (classified) (classified) with (classified)

  22. SELinux Demo Machine by Lord+Tocharian · · Score: 5, Informative

    Afraid to install SELinux but interested in what it does? The Hardened Gentoo project maintains a SELinux Demo Machine that allows you to ssh in as root. More information here: http://selinux.dev.gentoo.org/

    1. Re:SELinux Demo Machine by MadMethod · · Score: 4, Informative

      ok, slashdotting via ssh is a Bad Thing, the machine is essentially at a standstill, calm down a bit and try later, or there are also other demo machines for debian and fedora here http://www.coker.com.au/selinux/play.html Thanks :)

  23. Re:Antitrust by C10H14N2 · · Score: 4, Insightful

    Just what 100% commercial private railway did you have in mind?

    Almost all railways are national interests, including passenger service in the United States. Only _very_ recently has privatization become fashionable for railservice and it is usually marked by miserable failure. Take Britain where it was suggested that they basically dump British rail north of Manchester because there's no profit in servicing BFE. That's the point of state-owned services. The state will not dump a region simply because it isn't making a buck and the service is more important than profit.

    The vast majority of airlines are state-sponsored (outside the U.S., that is) and vary from states as majority stakeholders to 100% state-ownership. American carriers being privately held is more the exception to the rule.

    If not for massive government investment, international travel would still resemble an Indiana Jones plot line.

  24. Re:Antitrust by fermion · · Score: 4, Insightful
    I think like car-building, airlines and railway, the operating systems should be left to private commercial markets.

    The government had always spent money in infrastructure, either directly or indirectly. The examples you choose illustrate this point.

    Cars-building would not be so lucrative if there were not good roads. The government pays for these. In addition, most factories are now subsidized by tax incentives. We would probably have almost no cars built in this country if local and federal authorities did not pay the manufacturers to locate here.

    In the early days airlines made their profits delivering mail. It was a while before they were independent. Also, airports are generally built and heavily subsidized by local and federal money.

    It is my understanding that the railroads were given land. They wanted to own the rails so they built them, with immigrant labor, externalizing a number of costs related to said labor. Lately the rail lines have been complaining that they have to pay for maintain of the rails with the government pays for the airports. The difference is that the rail didn't want to share. Of course, the government spend huge amounts of money subsidizing the rail lines. Which is good because for many thing rail is more efficient than road or air. The rail people later used their exclusive use of the right-of-way to develop long distance telephone service, another thing that would not exist with heavy government support.

    Operating systems are infrastructure. It is proper that the government helps to make sure that this important business tool is suitable. The government has always subsidized the development of these technologies through research grants, not to mention the computer time that gates and co original took from university computers. On a higher level, some analysts think much of the profit MS generates is due to specific tax breaks they have been given.

    --
    "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
  25. How its predecessor worked by billstewart · · Score: 4, Informative
    I worked with AT&T's Multi-Level-Secure System V/MLS systems in the late 80s. Some details have changed since then (:-), but the basics are mostly the same. Most of the changes were in file and device access permissions and logging. The permissions features don't slow anything down significantly (except of course by stopping unapproved accesses altogether), and at the time, the logging functions were implemented very cleanly and rapidly, typically burning under 5% of horsepower (mostly disk access to save the very compact log entries.)

    Some services are harder to set up, because the permission issues get in the way, especially if they expect to have an all-powerful root doing the work for them, or if the application does lots of work to secure themselves (chroot jails, etc.), but most applications aren't affected much. Anything that does much with Setuid() can expect a radically different environment underneath.

    The big security win is that you can define different security compartments, including one or more for the operating system itself, and applications can only read from lower-security-level compartments, not write to them. This means that even if somebody finds an egregious buffer overflow bug in your email client, and uses it to mail your precious files to kgbvax.dhs.gov, they still can't use that to r00t your machine, and it's very hard for them to accomplish much by leaving Trojan Horse files around in your home directory because root usually isn't allowed to read them without you explicitly authorizing them.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  26. Please clariify by brain1 · · Score: 5, Funny

    OK, Darl says that Linux is a threat to National Security, but the NSA who is responsible for National Security contributes to Linux.... Therefore logic says that Linux is good for National Security. But Microsoft says that they are more secure than Linux. Who's on first, what's on second...

    Yeeow! Nothing like a paradigm shift without using the clutch!

  27. Microsoft vs. NSA by Animats · · Score: 4, Interesting
    Microsoft tried to shut the NSA Secure Linux effort down once before. The result was amusing.

    For about a year, NSA stopped talking about SELinux. Then one day there was an announcement in the Linux kernel mailing list that SELinux had been updated to the current kernel version and was becoming part of the mainstream kernel.

    Now it's mainstream.