What I was trying to get at is that your "update" is pointless, because you didn't bother to read the manpages and didn't realize that tmp etc. are already covered.
If we aren't allowed to update old threads, then we shouldn't be allowed to answer them in the first place
Many subreddits do indeed auto-archive posts after a couple of months, yes. If there's substantially new information it's much better to make a new thread and get eyes on it. I don't know why the arch subreddit didn't set it up.
Should I rather shut the fuck up and have new users incorrectly believe that all tmpfs mounts = bad?
If they take the post out of context and don't bother consulting the man pages I told them to, they have nobody to blame but themselves.
/tmp (and /run, and others) being a tmpfs was documented in there back in 2017 (and all the way back to 2014 when the file-hierarchy man page was first added) and is documented there today.
Are you a spam bot or why are you digging up 5 year old threads for nonsense? /tmp doesn't count because Arch already did mount it as tmpfs back in the ancient days when the question was asked. Obviously you don't have to manually mount directories as tmpfs if they're already automatically mounted as tmpfs.
How is that even possible??? Doesn't the unique key scramble everything....uniquely?? Or am I misunderstanding?
The problem lies in how encryption is applied to hard disks:
Data can be accessed at random, both for writing and reading
You can have multiple identical chunks
Due to the sheer amounts of data and alignment issues, you want as little overhead as possible: If you have to track IVs or counters per block, you'd get "net" blocks of an odd size, while hard disks and file systems both want things aligned to "even" sizes.
For the same reason, you want as large blocks as feasible for the hardware in question (512 bytes, 4KiB, 128KiB, …), but encryption algorithms work on very small blocks, the same size as keys (128 or 256 bits)
So you can't use some algorithms (too much overhead), and even the ones that can work need to be "stretched" out from their regular key size to the size of the hardware blocks.
Wikipedia has an overview of attempts to address these issues. All of them work on the basis of XORing the data with different sector keys derived in various ways from the "master" key. But if you know what data is in a given block, you can reverse the XORing to work out what the current sector key stream is, and can encrypt a new plain text with it.
(The encryption algorithm itself is still safe: Even if you have that one sector's key, you cannot work out the "master" key just with that information, so all the other data is still safe.)
But if, let's say, your file system always puts the first 512 bytes of /bin/bash in the same sector, an attacker can replace that with his own binary. This is where authentication comes in: If you have a checksum or digital signature (either on a per-file basis like Windows/Android/MacOS/iOS do, or on a per-block basis with dm-verity or some modern encryption algorithms, or some filesystems' built-in checksums), you can detect that something fishy is going on and refuse running the file.
That said, file systems aren't supposed to do that. It would be a very unlikely bug, but that's not the same "impossible".
Thanks for taking the time to reply. Yes, this is just the start point for me. Next step is figure out how to deal with the whole 'initrd not being authenticated' shemozzle. I've found a bunch of guides/walkthroughs but it's again a little hard to know whats current best practice in 2022.
Most of the older guides should still work, even if they might leave some optimizations on the table. These two are a good start:
https://lnwor.me/posts/secureboot/ (insists on using Grub for no reason, but has pacman hooks and objcopy instructions specific for Arch)
For some reason my laptop doesnt have the normal MS secure boot signing keys anyway so it looks like im going to have to look at loading my own keys and using them for everything...its still very over my head at the moment and I think Ive got a lot of trial an error ahead.
This is very much something you should practice on a secondary device you don't need as daily driver first, yes.
Ancient thread, I know, but you may like to know this little essay really helped me understand a few key concepts and change my approach.
Please only use it as starting point for your own research, it hasn't aged particularly well – LUKS e.g. now does support authentication underlying encryption as an experimental feature, so it can provide both functions for the parts of the boot chain it can cover.
(You'd still need authentication provided by e.g. Boot Guard and Secure Boot for whatever firmware+bootloader combination unlocks LUKS, of course.)
My understanding of what you're saying is even if you waste a stack of time with encrypted, removable, camouflaged, low-fat, gluten free boot USB sticks, this can wind up being all irrelevant if a poxxy UEFI gets flashed and proceeds to highjack the boot chain when you initiate it. AM I understanding correctly?
Yes. So it's really important to consider what your threat model is. Not only does someone need to flash your UEFI, they have to do it in a way that you won't get suspicious.
E.g., if you're at an airport, and the customs guy takes your laptop away where you can't see it for half an hour, sure, they can flash a new EFI, but you know they did something fucky. No matter what you prepared, it's safest to just trash the laptop and restore your backups to a fresh one.
But if you plan on leaving your laptop unattended in hotel rooms for a long time, that changes the equation, if someone really is after you (or your employer, or…).
I don't really see the point in using vendor-specific DDX drivers nowadays, other than perhaps performance (?).
The days of graphics chips having dedicated 2D acceleration hardware are long gone. This split into 2D and 3D acceleration APIs made sense in the 1990s, where you had a 2D graphics card and a separate 3D accelerator card plugged into it, and for a while after when the two were merged into one chip, but still dedicated hardware for each domain… but it's been mostly pointless for the past decade or two. The functionality got all either moved back to the CPU or 3D units, no real point in making each GPU vendor have their own "driver" for this.
I'm saying if you've tried it with systemd-networkd and couldn't make it work, you had systemd-networkd setup wrong.
Your example setup does not work, because it makes insane assumptions like "every single network interface is DHCP".
I do use systemd-networkd extensively for static configurations, but using it with dynamic wireless networks that have differing requirements is just an exercise in doing pointless work.
I'm also not sure how you even managed to get Arch installed if you're honestly feeling me 4 lines in a text file is complicated.
Multiply that by 20 or so networks and it's really adding up.
NetworkManager is a nightmare to debug, and just too many moving parts for what's supposed to be a simple task. Connman is much nicer, I don't know why anyone mentioning it gets downvoted to oblivion.
connman is probably the least minimalistic that doesn't make you want to eat your own fingers every time you want to add another network, since you can easily add networks interactively (unlike with systemd-networkd).
All modern-ish mainboards (read: made in the past 10 years or so) boot in EFI mode regardless, and can optionally run a BIOS emulator on top of it, which is definitely going to be slower than to just boot an EFI boot loader.
I'd argue if you consider syncing all your data to Google's servers a "necessary feature", you might as well use Chrome rather than using Chromium to pretend you're not bending over backwards for Google already.
Brave, like Vivaldi, have their own sync engines, and their own problems. Vivaldi's seems to be completely and utterly broken though, so that's not an alternative currently.
Brendan is now a tinfoil hatter? Figures. He also seems to have nothing better to do than browse twitter for anyone mentioning Brave to launch into tirades how you're just misunderstanding his "crypto" "currency" scam.
The cringey Mr Robot collab where they forced an advert addon onto users was far worse IMO. Plus their constant wasting of money to come up with dumb shits like Pocket that give your data to other companies. Plus laying off the Servo/MDN/Security teams… yeah, this barely registers compared to their other shit.
They die about as easily as overbred horses, so the best suggestion is: Don't use them as /, /boot, or anything you can't afford to lose.
Going by the first search result in Google, it even keeps the normal Chrome UI for the related settings. So chrome://gpu etc. should work just fine.
What I was trying to get at is that your "update" is pointless, because you didn't bother to read the manpages and didn't realize that tmp etc. are already covered.
Many subreddits do indeed auto-archive posts after a couple of months, yes. If there's substantially new information it's much better to make a new thread and get eyes on it. I don't know why the arch subreddit didn't set it up.
If they take the post out of context and don't bother consulting the man pages I told them to, they have nobody to blame but themselves.
/tmp (and /run, and others) being a tmpfs was documented in there back in 2017 (and all the way back to 2014 when the
file-hierarchyman page was first added) and is documented there today.Are you a spam bot or why are you digging up 5 year old threads for nonsense?
/tmpdoesn't count because Arch already did mount it as tmpfs back in the ancient days when the question was asked. Obviously you don't have to manually mount directories as tmpfs if they're already automatically mounted as tmpfs.The problem lies in how encryption is applied to hard disks:
So you can't use some algorithms (too much overhead), and even the ones that can work need to be "stretched" out from their regular key size to the size of the hardware blocks.
Wikipedia has an overview of attempts to address these issues. All of them work on the basis of XORing the data with different sector keys derived in various ways from the "master" key. But if you know what data is in a given block, you can reverse the XORing to work out what the current sector key stream is, and can encrypt a new plain text with it.
(The encryption algorithm itself is still safe: Even if you have that one sector's key, you cannot work out the "master" key just with that information, so all the other data is still safe.)
But if, let's say, your file system always puts the first 512 bytes of
/bin/bashin the same sector, an attacker can replace that with his own binary. This is where authentication comes in: If you have a checksum or digital signature (either on a per-file basis like Windows/Android/MacOS/iOS do, or on a per-block basis with dm-verity or some modern encryption algorithms, or some filesystems' built-in checksums), you can detect that something fishy is going on and refuse running the file.That said, file systems aren't supposed to do that. It would be a very unlikely bug, but that's not the same "impossible".
Most of the older guides should still work, even if they might leave some optimizations on the table. These two are a good start:
This is very much something you should practice on a secondary device you don't need as daily driver first, yes.
Please only use it as starting point for your own research, it hasn't aged particularly well – LUKS e.g. now does support authentication underlying encryption as an experimental feature, so it can provide both functions for the parts of the boot chain it can cover.
(You'd still need authentication provided by e.g. Boot Guard and Secure Boot for whatever firmware+bootloader combination unlocks LUKS, of course.)
Yes. So it's really important to consider what your threat model is. Not only does someone need to flash your UEFI, they have to do it in a way that you won't get suspicious.
E.g., if you're at an airport, and the customs guy takes your laptop away where you can't see it for half an hour, sure, they can flash a new EFI, but you know they did something fucky. No matter what you prepared, it's safest to just trash the laptop and restore your backups to a fresh one.
But if you plan on leaving your laptop unattended in hotel rooms for a long time, that changes the equation, if someone really is after you (or your employer, or…).
From what I understand from the paper, it includes BootGuard as one of many features.
The days of graphics chips having dedicated 2D acceleration hardware are long gone. This split into 2D and 3D acceleration APIs made sense in the 1990s, where you had a 2D graphics card and a separate 3D accelerator card plugged into it, and for a while after when the two were merged into one chip, but still dedicated hardware for each domain… but it's been mostly pointless for the past decade or two. The functionality got all either moved back to the CPU or 3D units, no real point in making each GPU vendor have their own "driver" for this.
Your example setup does not work, because it makes insane assumptions like "every single network interface is DHCP".
I do use systemd-networkd extensively for static configurations, but using it with dynamic wireless networks that have differing requirements is just an exercise in doing pointless work.
Multiply that by 20 or so networks and it's really adding up.
No, having a network setup slightly more complicated than Home Networking 101 isn't "doing it wrong".
NetworkManager is a nightmare to debug, and just too many moving parts for what's supposed to be a simple task. Connman is much nicer, I don't know why anyone mentioning it gets downvoted to oblivion.
Cool. Doesn't work with any of my setups.
connman is probably the least minimalistic that doesn't make you want to eat your own fingers every time you want to add another network, since you can easily add networks interactively (unlike with systemd-networkd).
Openbox and about half of LXDE, worked well enough for the past 10 or so years that I don't see the point of installing anything else.
Edit: Plus, technically, whatever it is that Grml uses, that's installed to ESP as recovery system.
All modern-ish mainboards (read: made in the past 10 years or so) boot in EFI mode regardless, and can optionally run a BIOS emulator on top of it, which is definitely going to be slower than to just boot an EFI boot loader.
I'd argue if you consider syncing all your data to Google's servers a "necessary feature", you might as well use Chrome rather than using Chromium to pretend you're not bending over backwards for Google already.
Brave, like Vivaldi, have their own sync engines, and their own problems. Vivaldi's seems to be completely and utterly broken though, so that's not an alternative currently.
Brendan is now a tinfoil hatter? Figures. He also seems to have nothing better to do than browse twitter for anyone mentioning Brave to launch into tirades how you're just misunderstanding his "crypto" "currency" scam.
The cringey Mr Robot collab where they forced an advert addon onto users was far worse IMO. Plus their constant wasting of money to come up with dumb shits like Pocket that give your data to other companies. Plus laying off the Servo/MDN/Security teams… yeah, this barely registers compared to their other shit.
They did for the longest time. GTK3 released in 2011, GIMP didn't start migrating until 2020.
Then you don't want Arch, you want a distribution with infrequent, heavily tested releases.
I'm working on it, okay?
You can install the arch or grml isos to your EFI partition to get an on-disk recovery system.
You're not my real mom, you can't tell me what to do!
pacman -Qeshows all explicitly installed packages, that's a good starting point.Same goes for orphans.
There used to be an example pacman hook for that in the wiki, but I can't find that any more. Wonder where that went?