ftbd

joined 11 months ago
[–] ftbd@feddit.org 2 points 1 hour ago (1 children)

Was activated carbon not invented yet, or too expensive?

[–] ftbd@feddit.org 1 points 4 hours ago (1 children)

Hast du eigentlich einen Bot, der Facebook-Memes hier postet? Oder läuft das alles manuell?

[–] ftbd@feddit.org 1 points 4 hours ago

Ich wüsste auch gerne mal wer hinter dieser linksextremen Hetzschrift namens Grundgesetz steckt

[–] ftbd@feddit.org 2 points 12 hours ago

The message we need right now is that fascists can expect to be beaten if they show themselves in public. How the hell did young patriotic, gun-loving, republican americans go from killing Nazis in Europe to being Nazis themselves in just 80 years?

[–] ftbd@feddit.org 2 points 1 day ago (1 children)

Du darfst ruhig "hacken" wie in "Spitzhacke" sagen, das tun die CCC-Leute auch.

[–] ftbd@feddit.org 40 points 1 day ago (1 children)

You don't need GitHub for Git.

[–] ftbd@feddit.org 6 points 1 day ago

You're telling me one slice contains the energy of 1kg of fat? What kind of monstrous cake was that?!

[–] ftbd@feddit.org 34 points 2 days ago (1 children)

To be fair, removing the entire OS does disable this feature

[–] ftbd@feddit.org 4 points 3 days ago

If you're into watching someone eat a turd and are willing to pay 100$ for it, then a service worth 100$ was provided in each instance.

But on a more serious note, this argument applies to the GDP in general – it's not a measure of how happy, how wealthy, or how productive the people of a given nation are. Yet, continuous growth (measured by GDP) seems to have the highest priority among so-called conservatives and neoliberals. At the same time, they're mad at poor people for increasing the GDP with government aid and don't see the irony.

[–] ftbd@feddit.org 11 points 4 days ago (2 children)

Conservatives are mad at poor people for uuuh... (checks notes): Using government aid to increase the GDP.

[–] ftbd@feddit.org 3 points 4 days ago

Wireguard evil, mmkay?

[–] ftbd@feddit.org 7 points 4 days ago

Mom can make more babies. Existing babies would not survive without mom anyway. Seems pretty reasonable to me from an evolutionary point of view.

 

Hi everyone!

I'm in the process of finally doing containers right in my NixOS installation. This is my 'wishlist':

  • podman containers should be run by users with minimal permissions
  • separate user per container
  • containers managed by systemd services for easier management

My current work-in-progress setup looks like this:

For each service (called $name), I have:

  • a user and corresponding group (referred to as $uid in the following)
  • a directory /srv/$name owned by $uid, in which mounted volumes are located

My containers are declared like this:

virtualisation.oci-containers.containers = {
    $name = {
        image = ...;
        ports = [ ... ];
        volumes = [
            "/srv/${name}/config:/config"
            ...
        ];
        user = $uid:$gid;
        extraOptions = [
            "--security-opt=no-new-privileges:true"
        ];
    };
};

Now for the parts I don't fully understand yet:

  • some images allow setting environment.PUID to specify a user. Does setting this option (and not setting user=$uid in the container declaration itself) mean that the container will be run as root, and the program inside will merely use PUID when e.g. creating files? This would still allow a malicious container to run commands as root on the host, right?

  • virtualisation.oci-containers.containers creates a systemd service. Since this is not a user-service for my user $uid, I need sudo to start/stop the container. Does that mean that the systemd service is run with root permissions, but it executes the command to spawn the container as $uid? If whatever is running inside the container was malicious, is there a functional difference between the container being started 'by root as $uid' and it being started by me (after logging in as $uid)?

  • Is it feasible to make these systemd services user-services owned by $uid instead?

  • Are there further hardening steps I forgot about?

Thanks for your input!

view more: next ›