Skip to contentSkip to conversation

SELinux References/Books

DISCUSSION max 3 participants 7 messages Jun 11, 2008 – Jun 13, 2008 SELinux security module

lore
Share & tools
lore

max

author
#0 lore raw

I would prefer to get a desktop reference rather than having to refer
to online documents or the hardcopies of individual papers I have printed off, many of which are also dated. In any case I feel like I have learned enough that I can open a book on the subject of SELinux and not get completely lost. It looks like I have basically two options :

SELinux by Example: Using Security Enhanced Linux (Prentice Hall Open Source Software Development Series) by Frank Mayer, Karl MacMillan, and David Caplan (Paperback - Aug 6, 2006)

SELinux: NSA's Open Source Security Enhanced Linux by Bill McCarty (Paperback - Oct 11, 2004) - Illustrated

The first is more recent so I am leaning that way but I have seen opinions that suggest even it is way out of date. I don't mind spending money on a good book, reading is one of my favorite past times, but I don't want anything so dated that it won't serve as a decent reference for the near future (next year or so). I understand nothing is going to be up to the minute. Should I purchase one? or are they too out of date to even serve as good references? This is definitely something I am interested in learning about or I wouldn't bother to ask. Suggestions and advice from all corners of reality welcome.

Max

Signature · 6 lines
An unwillingness to embarrass oneself makes learning more difficult

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 13 lines · max

I would prefer to get a desktop reference rather than having to refer to online documents or the hardcopies of individual papers I have printed off, many of which are also dated. In any case I feel like I have learned enough that I can open a book on the subject of SELinux and not get completely lost. It looks like I have basically two options :

SELinux by Example: Using Security Enhanced Linux (Prentice Hall Open Source Software Development Series) by Frank Mayer, Karl MacMillan, and David Caplan (Paperback - Aug 6, 2006)

SELinux: NSA's Open Source Security Enhanced Linux by Bill McCarty (Paperback - Oct 11, 2004) - Illustrated

Quoted 9 lines

The first is more recent so I am leaning that way but I have seen opinions that suggest even it is way out of date. I don't mind spending money on a good book, reading is one of my favorite past times, but I don't want anything so dated that it won't serve as a decent reference for the near future (next year or so). I understand nothing is going to be up to the minute. Should I purchase one? or are they too out of date to even serve as good references? This is definitely something I am interested in learning about or I wouldn't bother to ask. Suggestions and advice from all corners of reality welcome.

What kind of information are you looking for?

The first, more recent, book includes discussion of reference policy and policy modules and thus is relatively consistent with what you find in modern SELinux, although newer developments like system-config-selinux, setroubleshoot, etc naturally don't appear in it. It was written during the development of Fedora Core 5, which marked the transition of SELinux from the old way (example policy, monolithic policy) to the new way (reference policy, modular policy, semanage).

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#2 lore raw
Quoted 11 lines · Stephen Smalley
Quoted 7 lines · max

I would prefer to get a desktop reference rather than having to refer to online documents or the hardcopies of individual papers I have printed off, many of which are also dated. In any case I feel like I have learned enough that I can open a book on the subject of SELinux and not get completely lost. It looks like I have basically two options :

SELinux by Example: Using Security Enhanced Linux (Prentice Hall Open Source Software Development Series) by Frank Mayer, Karl MacMillan, and David Caplan (Paperback - Aug 6, 2006)

SELinux: NSA's Open Source Security Enhanced Linux by Bill McCarty (Paperback - Oct 11, 2004) - Illustrated

The first is more recent so I am leaning that way but I have seen opinions that suggest even it is way out of date. I don't mind spending money on a good book, reading is one of my favorite past times, but I don't want anything so dated that it won't serve as a decent reference for the near future (next year or so). I understand nothing is going to be up to the minute. Should I purchase one? or are they too out of date to even serve as good references? This is definitely something I am interested in learning about or I wouldn't bother to ask. Suggestions and advice from all corners of reality welcome.

What kind of information are you looking for?

Quoted 8 lines

The first, more recent, book includes discussion of reference policy and policy modules and thus is relatively consistent with what you find in modern SELinux, although newer developments like system-config-selinux, setroubleshoot, etc naturally don't appear in it. It was written during the development of Fedora Core 5, which marked the transition of SELinux from the old way (example policy, monolithic policy) to the new way (reference policy, modular policy, semanage).

Well I'd like to learn it all but I think a practical approach would mean learning to write policy first, since that is a skill I could put to use now. I don't expect it will be easy but that's ok, I have some time right now and I'd like to learn the policy language. If the first book covers this then I will get it. Is there a better reference for aspiring policy writers? I don't care about the gui tools so much, not that they aren't useful but I prefer to do most things myself and not automate it since this brings me less understanding.

Signature · 6 lines
An unwillingness to embarrass oneself makes learning more difficult

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
Quoted 36 lines · max
Quoted 26 lines · Stephen Smalley
Quoted 13 lines · max

I would prefer to get a desktop reference rather than having to refer to online documents or the hardcopies of individual papers I have printed off, many of which are also dated. In any case I feel like I have learned enough that I can open a book on the subject of SELinux and not get completely lost. It looks like I have basically two options :

SELinux by Example: Using Security Enhanced Linux (Prentice Hall Open Source Software Development Series) by Frank Mayer, Karl MacMillan, and David Caplan (Paperback - Aug 6, 2006)

SELinux: NSA's Open Source Security Enhanced Linux by Bill McCarty (Paperback - Oct 11, 2004) - Illustrated

Quoted 9 lines

The first is more recent so I am leaning that way but I have seen opinions that suggest even it is way out of date. I don't mind spending money on a good book, reading is one of my favorite past times, but I don't want anything so dated that it won't serve as a decent reference for the near future (next year or so). I understand nothing is going to be up to the minute. Should I purchase one? or are they too out of date to even serve as good references? This is definitely something I am interested in learning about or I wouldn't bother to ask. Suggestions and advice from all corners of reality welcome.

What kind of information are you looking for?

Quoted 8 lines

The first, more recent, book includes discussion of reference policy and policy modules and thus is relatively consistent with what you find in modern SELinux, although newer developments like system-config-selinux, setroubleshoot, etc naturally don't appear in it. It was written during the development of Fedora Core 5, which marked the transition of SELinux from the old way (example policy, monolithic policy) to the new way (reference policy, modular policy, semanage).

Quoted 8 lines

Well I'd like to learn it all but I think a practical approach would mean learning to write policy first, since that is a skill I could put to use now. I don't expect it will be easy but that's ok, I have some time right now and I'd like to learn the policy language. If the first book covers this then I will get it. Is there a better reference for aspiring policy writers? I don't care about the gui tools so much, not that they aren't useful but I prefer to do most things myself and not automate it since this brings me less understanding.

Yes, the first book covers the policy language and provides an introduction to writing a policy module, although specific interfaces and patterns are always evolving in the reference policy. oss.tresys.com/projects/refpolicy is a good resource for detailed refpolicy documentation, and the interface documentation is also locally installed on your system under /usr/share/doc/selinux-policy-x.y.z/html.

I don't know of a better reference at present, although it seems like we are overdue for an updated edition of it, which could be significantly simplified by dropping all discussion of Fedora Core 3 and 4 conventions and focusing more specifically on how things are done now, although it no doubt would retain some of the older information for RHEL 4 users.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#4 lore raw
Quoted 60 lines · Stephen Smalley
Quoted 36 lines · max
Quoted 26 lines · Stephen Smalley
Quoted 13 lines · max

I would prefer to get a desktop reference rather than having to refer to online documents or the hardcopies of individual papers I have printed off, many of which are also dated. In any case I feel like I have learned enough that I can open a book on the subject of SELinux and not get completely lost. It looks like I have basically two options :

SELinux by Example: Using Security Enhanced Linux (Prentice Hall Open Source Software Development Series) by Frank Mayer, Karl MacMillan, and David Caplan (Paperback - Aug 6, 2006)

SELinux: NSA's Open Source Security Enhanced Linux by Bill McCarty (Paperback - Oct 11, 2004) - Illustrated

Quoted 9 lines

The first is more recent so I am leaning that way but I have seen opinions that suggest even it is way out of date. I don't mind spending money on a good book, reading is one of my favorite past times, but I don't want anything so dated that it won't serve as a decent reference for the near future (next year or so). I understand nothing is going to be up to the minute. Should I purchase one? or are they too out of date to even serve as good references? This is definitely something I am interested in learning about or I wouldn't bother to ask. Suggestions and advice from all corners of reality welcome.

What kind of information are you looking for?

Quoted 8 lines

The first, more recent, book includes discussion of reference policy and policy modules and thus is relatively consistent with what you find in modern SELinux, although newer developments like system-config-selinux, setroubleshoot, etc naturally don't appear in it. It was written during the development of Fedora Core 5, which marked the transition of SELinux from the old way (example policy, monolithic policy) to the new way (reference policy, modular policy, semanage).

Quoted 8 lines

Well I'd like to learn it all but I think a practical approach would mean learning to write policy first, since that is a skill I could put to use now. I don't expect it will be easy but that's ok, I have some time right now and I'd like to learn the policy language. If the first book covers this then I will get it. Is there a better reference for aspiring policy writers? I don't care about the gui tools so much, not that they aren't useful but I prefer to do most things myself and not automate it since this brings me less understanding.

Yes, the first book covers the policy language and provides an introduction to writing a policy module, although specific interfaces and patterns are always evolving in the reference policy. oss.tresys.com/projects/refpolicy is a good resource for detailed refpolicy documentation, and the interface documentation is also locally installed on your system under /usr/share/doc/selinux-policy-x.y.z/html.

I don't know of a better reference at present, although it seems like we are overdue for an updated edition of it, which could be significantly simplified by dropping all discussion of Fedora Core 3 and 4 conventions and focusing more specifically on how things are done now, although it no doubt would retain some of the older information for RHEL 4 users.

Quoted 5 lines

--
Stephen Smalley
National Security Agency

Yes a more up to date reference would be nice but SELinux by Example will do for starters. I went ahead and had the local bookstore order it in so I could flip through it before I buy it but it seems inevitable that I will make this purchase no matter what. One thing that I notice a lot of people trying to do with computers in general is memorize things. A bad idea I think, people want quick answers but without an understanding of the underlying system it just creates more confusion and ultimately leads to bigger blunders. Ego of course also gets in the way, nobody wants to look stupid so often questions go unasked, I am working on abandoning that notion as it seems to be one of the biggest barriers to learning, though a modicum of judgment is still required but I don't know if that can be taught you just have to learn it over time. Getting to know the system is of course going to require some real focus but I think in the long run it makes for a better understanding, even if it means it takes twice (or more) as long to get to my goal. One of the real barriers to understanding and acceptance is good consistent documentation that people can turn too, advancement shouldn't get frozen for the sake of publishing a book but if the basics are solid and unlikely to change too much then I think its time for an up to date reference. If you want a newcomers perspective I personally would be happy to provide it but also don't forget the mailing lists. I am sure I am not the only one trying to learn this and looking for a good guide. Posting bits to the various selinux related lists for feedback from the experienced and inexperienced users would certainly help as far as coverage and readability are concerned. Another thing I can think of, though I don't know how feasible it is, is the notion of a moderated thread. I like my mailing lists unmoderated but say for instance you want to post a how to or work on one. The thread would be restricted to one or more persons posting to it until they are finished working out whatever it is and then opened for comments. There may be many factors here that I am unaware of or that simply aren't occurring to me right now. I can't be the first person to have such an idea and it will of course be pointed out that live journals work much the same but here my point is the scope of the audience that you are reaching on a mailing list vs. an individual blog of which there are hundred's of thousands if not millions. Also it would help by adding more transparency to the process. I am no expert on mailing lists or email servers but I thought it might be worth floating the idea anyway. The other thing I noticed, while at the bookstore, is that various/most of the Linux magazines on the shelf right now have articles on security in them and one, i forget which, has a piece on SELinux. It seems its a hot topic everywhere I look. Cspan aired a rerun, from yesterday I think, of a hearing on computer spyware. I think congressmen Nelson(florida) and Pryor(?) were running the show. One of them maybe a senator but anyway there is apparently some legislation on the horizon. They had a couple of reps from various places there, including a guy from Symantec. I didn't watch the whole thing but in what I saw nobody mentioned the real problem. As far as I am concerned the "real" problem is having the widespread use of an operating system that makes things like drive by downloads so easy in the first place, where most of the security rests with a program(anti virus) that relies almost exclusively on updates but that is another debate and probably not one worth having anyway. Unfortunately it will probably take a major virus outbreak, on a scale we have yet to see, or a massive, widespread, and very public breach of security to wake people up. I will go ahead and shutdown here, my real point is that it seems people are starting to pay a lot more attention :^). Thanks for the feedback.

Max

Signature · 6 lines
I am altering the deal. Pray I do not alter it any further. --Darth Vader

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#5 lore raw
Quoted 6 lines · max bianco

here that I am unaware of or that simply aren't occurring to me right now. I can't be the first person to have such an idea and it will of course be pointed out that live journals work much the same but here my point is the scope of the audience that you are reaching on a mailing list vs. an individual blog of which there are hundred's of thousands if not millions. Also it would help by adding more

That's why you have blog syndication. I expect that the number of people who read my blog via the various Planets exceeds the number of subscribers that most mailing lists have. Of course blog syndication does not work well for content that is being modified.

Quoted 4 lines

other thing I noticed, while at the bookstore, is that various/most of the Linux magazines on the shelf right now have articles on security in them and one, i forget which, has a piece on SELinux. It seems its a hot topic everywhere I look. Cspan aired a rerun, from yesterday I

My observation is that SE Linux is not as much of a hot topic as it used to be. Now there are many people using it (some of whom don't even realise that they do), and it's part of the infrastructure. When SE Linux was a new thing that few people understood there was a lot more excitement.

Quoted 3 lines

what I saw nobody mentioned the real problem. As far as I am concerned the "real" problem is having the widespread use of an operating system that makes things like drive by downloads so easy in the first place,

Until we get the X access controls in common use, SE Linux won't be doing that much to prevent desktop attacks.

Quoted 2 lines

where most of the security rests with a program(anti virus) that relies almost exclusively on updates but that is another debate and

I don't think that you will get a debate on the merits of anti-virus software on this list. I think that there is general agreement that any attacker worth worrying about will launch an attack that doesn't match a known signature. Past discussions on this list have covered issues such as the utility of shells and interpreters such as Perl for launching attacks.

Note that this doesn't mean that virus scanners for email and browser warnings for bogus sites are a bad idea. Mitigating factors that reduce the scope of the threat make it easier to recognise real threats.

Quoted 6 lines

probably not one worth having anyway. Unfortunately it will probably take a major virus outbreak, on a scale we have yet to see, or a massive, widespread, and very public breach of security to wake people up. I will go ahead and shutdown here, my real point is that it seems people are starting to pay a lot more attention :^). Thanks for the feedback.

http://conference.auscert.org.au/conf2006/presentation.php

There are significant amounts of money involved in computer crime nowadays. At the AusCERT 2006 conference Jake Jacobson of the U.S. Secret Service gave a very interesting talk about the organised computer crime groups. The amounts of money involved give a lot of nasty people significant incentives to not have public breaches of security.

I've been involved in the SE Linux project for almost seven years. Over that time I have always felt that the problem scope is increasing faster than our progress on fixing things.

PS If you get a chance I recommend that you attend a lecture by Jake or one of his colleagues. It's an experience you'll remember for the rest of your life.

Signature · 9 lines
[email protected]
http://etbe.coker.com.au/          My Blog

http://www.coker.com.au/sponsorship.html Sponsoring Free Software development

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#6 lore raw
Quoted 15 lines · Russell Coker
Quoted 6 lines · max bianco

here that I am unaware of or that simply aren't occurring to me right now. I can't be the first person to have such an idea and it will of course be pointed out that live journals work much the same but here my point is the scope of the audience that you are reaching on a mailing list vs. an individual blog of which there are hundred's of thousands if not millions. Also it would help by adding more

That's why you have blog syndication. I expect that the number of people who read my blog via the various Planets exceeds the number of subscribers that most mailing lists have. Of course blog syndication does not work well for content that is being modified.

Quoted 4 lines

other thing I noticed, while at the bookstore, is that various/most of the Linux magazines on the shelf right now have articles on security in them and one, i forget which, has a piece on SELinux. It seems its a hot topic everywhere I look. Cspan aired a rerun, from yesterday I

Quoted 8 lines

My observation is that SE Linux is not as much of a hot topic as it used to be. Now there are many people using it (some of whom don't even realise that they do), and it's part of the infrastructure. When SE Linux was a new thing that few people understood there was a lot more excitement.

Quoted 3 lines

what I saw nobody mentioned the real problem. As far as I am concerned the "real" problem is having the widespread use of an operating system that makes things like drive by downloads so easy in the first place,

Until we get the X access controls in common use, SE Linux won't be doing that much to prevent desktop attacks.

I had noticed a bit of traffic about X. It seems its going to be quite the effort to properly confine it.
I noticed also that Eamon Walsh had posted some links to info on X related magic. This interests me a lot because I like to game, although I haven't played any games since switching over to a Linux-based OS : (
I know online gaming is very popular and there aren't many Linux games
that meet expectations but I am sure that will change or maybe everyone will just buy a PS3. I have heard of a few vulnerabilities in games like world of warcraft and eve online, though I am not sure how many are directly related to the xserver or whatever passes for its equivalent on a windows box. I know some of these games are starting to release or work on linux clients, it will be interesting to see how much care they take to do it safely and securely. I am not very hopeful on this but perhaps I will be surprised : )

Quoted 6 lines
Quoted 3 lines

where most of the security rests with a program(anti virus) that relies almost exclusively on updates but that is another debate and

I don't think that you will get a debate on the merits of anti-virus software on this list. I think that there is general agreement that any attacker worth worrying about will launch an attack that doesn't match a known signature. Past discussions on this list have covered issues such as the utility of shells and interpreters such as Perl for launching attacks.

I will have to spend some of this free time I have digging through the archives.

Quoted 2 lines

Note that this doesn't mean that virus scanners for email and browser warnings for bogus sites are a bad idea. Mitigating factors that reduce the scope of the threat make it easier to recognise real threats.

Understood and I wasn't trying to suggest such a thing but a lot of home users think anti-virus = saftey as in the 100% variety. That attitude is held by a lot of people even unfortunately some in the IT field. Many people take their computers for granted and assume the makers of such devices automatically try to make them as safe as possible, when its actually "as cost effective as possible" that wins out in the majority of cases. One of the first things to get sacrificed is usually security it seems. They seem to like to spend all the dollars on making it look pretty : ( which would be fine if the substance was there but I suspect that's another never ending debate and actually it points to a social problem anyway.

Quoted 7 lines
Quoted 6 lines

probably not one worth having anyway. Unfortunately it will probably take a major virus outbreak, on a scale we have yet to see, or a massive, widespread, and very public breach of security to wake people up. I will go ahead and shutdown here, my real point is that it seems people are starting to pay a lot more attention :^). Thanks for the feedback.

Quoted 6 lines

http://conference.auscert.org.au/conf2006/presentation.php

There are significant amounts of money involved in computer crime nowadays. At the AusCERT 2006 conference Jake Jacobson of the U.S. Secret Service gave a very interesting talk about the organised computer crime groups. The amounts of money involved give a lot of nasty people significant incentives to not have public breaches of security.

I've been involved in the SE Linux project for almost seven years. Over that time I have always felt that the problem scope is increasing faster than our progress on fixing things.

It would be nice if we (the human race) were as wise as we are eager.

Quoted 3 lines

PS If you get a chance I recommend that you attend a lecture by Jake or one of his colleagues. It's an experience you'll remember for the rest of your life.

Will do. I am already putting the link you provided to use :^) I love information, if you have any other links I am always looking for good ones. Considering the volume of information available I think I am going to have to take a speed reading&retention course.

Signature · 6 lines
Fortune favors the BOLD

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.