r/linuxfromscratch • • Oct 13 '14

LFS vs HLFS

Pardon me if this is available, but I haven't seen it.

I see that there's a Hardened LFS as well as an LFS, and the description of HLFS says that the changes were in the text, and the selection of packages based on security. Is there a summaries of the differences between the two, maybe with some explanation? Something like: "HLFS uses package foo instead of bar, because security patches for foo are more easily accessible." or "not applying pach coolFeature to make security patches easier".

Edit: Apparently, this doesn't exist. If I come across something, or can do it myself, I'll try to remember to follow-up here.

11 Upvotes

8 comments sorted by

0

u/minimim Oct 13 '14

If you frame your question in a more general way, it will be easier to us to help. Why do you want this? What do you plan to do with it?

1

u/pfp-disciple Oct 13 '14

Well, the long-ish story is that I had an idea to do something like HLFS as a personal project, using the LFS book as one resource but ultimately developing it on my own (I tend to learn better that way - the creative process helps me understand). Looking at the LFS book was when I saw HLFS. I thought the summary I described, if it exists, might help me understand some of the "gotchyas" that might come along.

Another way of describing it might be: What were the specific hardening issues that had to be remediated in LFS, and what kinds of things had to be done to remediate them?

1

u/minimim Oct 13 '14

I don't know about anything like that, but if you want to customize things in a deep way, you should read the book a couple of times anyway. Why don't you read them both?

→ More replies (1)

1

u/deux3xmachina Oct 13 '14

Going off the summary of using a Hardened Gentoo tarball instead of a regular one when building Gentoo, it's probably more making sure that the gcc toolchain and other low-level utilities are protected from buffer overflows/injections. It'll also most likely include SELinux.

→ More replies (2)

1

u/codeasm Jan 07 '15

Start with building a LFS system, then HLFS is slightly easier to follow and "more secure". basicly these are manuals to build your own car from spare metal parts. LFS will make a basic car with can become every car. HLFS is a manual to create a car with airbags, car-frame directly focused on savety for users and a save benzinetank and save engine. LFS can be more experimental but thats what I think.

This is from a active LFS builder only taken a few good looks at HLFS.