Live data from Hacker News

Private Home Directories for Ubuntu 21.04

ubuntu.com

71–80 of 100 posts

Re: Private Home Directories for Ubuntu 21.04

#71

Earlier quoted context omitted.

Full disk encryption is more secure. If you can't trust your system files who knows whats happening when you enter your password.

Isn’t Secure Boot supposed to solve that issue?

How can Secure Boot help against, say, patched libc?

You need either full disk encryption, or something like dm-verity for that.

Re: Private Home Directories for Ubuntu 21.04

#72
post #60

Makes sense to me, but I'd be much more excited to go back to not having the snap directory shoved in my face.

I left Ubuntu because of snap - and I don't see myself going back. It's funny, I feel like eventually every distribution has to do something to irritate long-term users, but endear themselves to others. It's part of a weird growth phase.

What distro do you use now?

Re: Private Home Directories for Ubuntu 21.04

#74
post #48

To me, user accounts have always seemed like the more reasonable approach to sandboxing vs. cloning the universe to run a single program in a container. Most of my systems have a user for myself, and one or two other users like `sketchy` or `test` or something for programs that I trust enough to run, but don't trust enough to not fuck up my home directory in some way (including modifying startup scripts, which IMHO s…

Agree, users are a good start, also systemd for example provide ways to run a process on its own file system too, readonly, etc... I guess virtualization or containers is needed because of the unknowns bugs, bad use of technology and /or not being able to harness a system very well with non sandboxing methods.

Re: Private Home Directories for Ubuntu 21.04

#76
post #62

Earlier quoted context omitted.

I run such less trusted programs on other machines . The privilege elevation attack surface is just too big on a normal Linux system. That's why I think intra-user isolation is better. I would feel so much better if my browser could just access its settings, the download directory, and read access outside my home directory (for libs and such).

Isn't SELinux supposed to provide exactly this functionality? The tricky part are the profiles afaik. But this could be solved with some concentrated community effort I guess. I think AppArmor does something similar (I don't know the differences to SELinux in detail, so if someone like to clarify please go ahead). I remember I've seen some AppArmor related stuff regarding Firefox (and LibreOffice I think) in Ubuntu.…

SELinux can and does do exactly this, depending on the configuration. What you'll most often see is that applications covered will have rules that allow it to access a subset of the user's home content (xdg cache, data, etc.) that allow that application to function, and SELinux will use UBAC rules to ensure that user A's instance of that application cannot access the data of user B's.

Profiles are indeed tricky though, and generally something I would consider more easily implemented as just logging in as a different user.

I can't speak much about AppArmor since I'm not too familiar with it.

Re: Private Home Directories for Ubuntu 21.04

#77

Earlier quoted context omitted.

Isn’t Secure Boot supposed to solve that issue?

How can Secure Boot help against, say, patched libc? You need either full disk encryption, or something like dm-verity for that.

I misunderstood your post. Of course full disk encryption is vital for security. My point was that without secure boot you can't be sure that software asking for your password is legitimate. Typical setup consists of unencrypted boot partition with Linux kernel which asks for password. You can't be sure that this Linux kernel was not patched, but Secure Boot helps to ensure that.

Re: Private Home Directories for Ubuntu 21.04

#78
post #62

Earlier quoted context omitted.

I run such less trusted programs on other machines . The privilege elevation attack surface is just too big on a normal Linux system. That's why I think intra-user isolation is better. I would feel so much better if my browser could just access its settings, the download directory, and read access outside my home directory (for libs and such).

Isn't SELinux supposed to provide exactly this functionality? The tricky part are the profiles afaik. But this could be solved with some concentrated community effort I guess. I think AppArmor does something similar (I don't know the differences to SELinux in detail, so if someone like to clarify please go ahead). I remember I've seen some AppArmor related stuff regarding Firefox (and LibreOffice I think) in Ubuntu.…

SELinux can do this--think of it as a second layer of security that is checked after the normal DAC checks (e.g., process uid vs file permissions) succeed.

Re: Private Home Directories for Ubuntu 21.04

#79
post #39

Earlier quoted context omitted.

I’ve been using fscrypt to encrypt my home directory for over a year now and it seems to work fine: https://wiki.archlinux.org/index.php/Fscrypt

Hi! Author of fs-crypt dropping in from the interwebs. I also created eCryptfs, which was Ubuntu's original home directory encryption technology, with lots of additional distro integration work by Dustin Kirkland. Unfortunately I had to make some compromises when going with the stackable model, and that caused some problems. I took the lessons I learned from that first attempt and created fs-crypt as a sort of atonem…

Thanks for all the great work on both 'ecryptfs' and 'fs-crypt'!

Re: Private Home Directories for Ubuntu 21.04

#80
post #16

Even Ubuntu's calling Linux home desktop 'quaint' now..

Well to be more precise they're saying that "use-cases like multiple family members sharing a single PC" are quaint - by contrast with "the modern era of cloud computing and IoT". A charitable reading would perhaps count it a fair observation that an increase in computing ubiquity has led to most machines, even workstations, being single-user.
Post reply on HN