!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

916 Members
For people hacking on the Nix package manager itself194 Servers

Load older messages


SenderMessageTime
5 Mar 2026
@ysndr:matrix.orgysndr

Yea it’s user / mount namespace all the way.

At least root seems to not be mapper correctly (sudo is owned by nobody, as opposed to root)

17:57:42
@ysndr:matrix.orgysndr * Yea it’s user / mount namespace all the way.
At least root seems to not be mapped correctly (sudo is owned by nobody, as opposed to root)
17:57:47
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Ah do we not set up a proper uid_map?18:07:34
6 Mar 2026
@gilligan:matrix.orggilligan (he/him) joined the room.01:45:50
@azosion_:matrix.orgAzosion joined the room.03:32:29
@dramforever:matrix.orgdramforever there's no way to do this without running nix shell with root permissions 05:01:17
@dramforever:matrix.orgdramforeversee https://man7.org/linux/man-pages/man7/user_namespaces.7.html "In order for a process to write to the /proc/pid/uid_map", currently bullet 5, (b), bullet 105:02:16
@dramforever:matrix.orgdramforever * see https://man7.org/linux/man-pages/man7/user_namespaces.7.html "In order for a process to write to the /proc/pid/uid_map ...", currently bullet 5, (b), bullet 1 05:02:25
@dramforever:matrix.orgdramforeverand we have to be in a new user namespace to create a mount namespace and start mounting stuff05:03:36
@dramforever:matrix.orgdramforever *

see https://man7.org/linux/man-pages/man7/user_namespaces.7.html "In order for a process to write to the /proc/pid/uid_map ...", currently bullet 5, (b), bullet 1

The data written to uid_map (gid_map) must consist of a single line that maps the writing process's effective user ID (group ID) in the parent user namespace to a user ID (group ID) in the user namespace.

05:04:37
@dramforever:matrix.orgdramforever side note, don't you love it when all you need to understand is 1 and 2 and 3 and ( 4(a) or 4(b) ) and ( 5(a) or ( 5(b)1 and 5(b)2 and 5(b)3 ) ) 05:06:11
@dramforever:matrix.orgdramforever so just, to clarify, putting aside everything else, 5(b)1 says that if you don't have CAP_SETUID, then you can only map yourself in the parent userns to any uid in the child userns. everyone else in the parent userns becomes nobody in the child 05:07:56
@dramforever:matrix.orgdramforever * so just, to clarify, putting aside everything else, 5(b)1 says that if you don't have CAP_SETUID, then you can only map yourself in the parent userns to any uid in the child userns. everyone else in the parent userns becomes nobody in the child userns 05:08:26
@dramforever:matrix.orgdramforever * so just, to clarify, putting aside everything else, 5(b)1 says that if you don't have CAP_SETUID in the parent userns, then you can only map yourself in the parent userns to any uid in the child userns. everyone else in the parent userns becomes nobody in the child userns 05:08:36
@rcchuah:matrix.orgRC Chuah joined the room.17:45:26
@azosion_:matrix.orgAzosionHey yall, via nix I installed "jasp-desktop", and it installed the binary "JASP" (in all caps), I'm pretty sure that most binaries are not capitialized, so is this a problem I could make a PR for, or is this normal for nix? (It is just a bit confusing that I cant just run the program with "jasp").18:23:47
@k900:0upti.meK900That's mostly up to upstream18:38:24
@ctheune:matrix.flyingcircus.ioTheuni changed their display name from Christian Theune to Theuni.19:57:47
19 May 2021
@eelco:nixos.org@eelco:nixos.org changed the history visibility to "world_readable" from "shared".15:40:14
@eelco:nixos.org@eelco:nixos.org changed the room name to "Nix Hackers" from "Nix Development".15:45:04
@eelco:nixos.org@eelco:nixos.org changed the room topic to "For people hacking on the Nix package manager itself" from "Development of the Nix package manager".15:45:04
@casey:hubns.netcransom joined the room.15:45:08
@sumner:sumnerevans.comsumner joined the room.15:45:19
@danielle:fairydust.spacedanielle joined the room.15:47:55
@aaron:fosslib.netaaron joined the room.15:54:00
@casey:hubns.netcransom changed their display name from casey © to cransom.15:56:27
@eelco:nixos.org@eelco:nixos.org invited @grahamc:nixos.orggrahamc.16:02:36
@grahamc:nixos.orggrahamc joined the room.16:02:51
@stick:matrix.orgprusnak joined the room.16:03:18
@immae:matrix.orgimmae (he/him) joined the room.16:03:29

Show newer messages


Back to Room ListRoom Version: 6