!NBBFPbiuttRgTqbrcY:nixos.org

NixOS Security Discussions

370 Members
Discussions around Security | Triaging happens in #security:nixos.org126 Servers

Load older messages


SenderMessageTime
9 Aug 2022
@winterqt:nixos.devWinter (she/her) * so yeah we can totally switch over20:16:11
@winterqt:nixos.devWinter (she/her)ouch20:16:27
@winterqt:nixos.devWinter (she/her)when do you run into that; do you use x86 systems?20:16:39
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.dex86 libs, which are needed for some software, building on x86_64 on xfs20:17:41
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.dehaven't seen it again in quite a while though20:17:51
@pennae:matrix.eno.space@pennae:matrix.eno.spacehow has this been a problem for eight years and still not fixed21:12:13
@vcunat:matrix.orgvcunatI had thought about trying these defines nixpkgs-wide (on i686 at least), but overall i686 is low on my priorities so I never got there.21:15:08
@vcunat:matrix.orgvcunat * I had thought about trying these defines to enable LFS nixpkgs-wide (on i686 at least), but overall i686 is low on my priorities so I never got there.21:15:43
@hexa:lossy.networkhexaquick feedback: I love how much more attention we're paying to security issues compared to like a year ago21:52:59
@hexa:lossy.networkhexahaving a room where interested people can come together does wonders21:53:15
@hexa:lossy.networkhexathere was #nixos-security on freenode before then, but in my memory it was much less active fwiw22:01:33
@pennae:matrix.eno.space@pennae:matrix.eno.spacehaving the space with its room listing is very useful for discoverability22:03:11
@v0id:nltrix.net@v0id:nltrix.netso I have q regarding late sudo,pkexec vulns. The vulns itself are fixed in nixpkgs. How about the old binaries in nix store? Are there a mechanism to gc those vulnerable stuff?22:03:17
@v0id:nltrix.net@v0id:nltrix.netI mean other than random nix-garbage-colled --delete-older-than xxd, how can I be sure they are gc'd?22:03:41
@v0id:nltrix.net@v0id:nltrix.netIm interested in those with suid.22:03:51
@pennae:matrix.eno.space@pennae:matrix.eno.spacebasically, not. but nothing in the store has suid/sgid, that's only per system activation. deleting old system generations will make old stuff lose its suidability forever22:04:39
@v0id:nltrix.net@v0id:nltrix.net
In reply to @pennae:matrix.eno.space
basically, not. but nothing in the store has suid/sgid, that's only per system activation. deleting old system generations will make old stuff lose its suidability forever
is it possible to update the old gens with a "Vuln" mark so that we know they have something to gc?
22:05:18
@v0id:nltrix.net@v0id:nltrix.netLike gen 52 is vulnerable please remove me etc.22:05:36
@pennae:matrix.eno.space@pennae:matrix.eno.spaceeach generation embeds its git hash, you could check that in a separate scan22:06:00
@v0id:nltrix.net@v0id:nltrix.netso when an old gen is not active, is it possible to reach that suid an dexec or they are just lying around as normal bins?22:06:57
@v0id:nltrix.net@v0id:nltrix.netIf that's the case I guess there is nothing to worry about.22:07:10
@pennae:matrix.eno.space@pennae:matrix.eno.space the suids are all in /run/wrappers and generated by the activation script. only that which corresponds to the active system is ever suid-able 22:07:55
@v0id:nltrix.net@v0id:nltrix.netThat's great to hear, how about booted-system vs current-system? say booted one has a vuln one and current does not?22:09:17
@pennae:matrix.eno.space@pennae:matrix.eno.spaceyou can get those back by activating booted-system, but the suids aren't kept around22:11:17
@pennae:matrix.eno.space@pennae:matrix.eno.spacehttps://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/security/wrappers/default.nix#L250 is the activation fragment that actually generates them, activating a generation removes wrappers from the previous. you can keep them around if activation fails though22:11:53
@v0id:nltrix.net@v0id:nltrix.netthnx for clarification.22:11:56
@v0id:nltrix.net@v0id:nltrix.net * thnx for clarifications.22:13:35
@hexa:lossy.networkhexahttps://github.com/NixOS/nixpkgs/pull/15682222:15:48
@hexa:lossy.networkhexathis one was also fun22:15:51
@hexa:lossy.networkhexait was in the aftermath of the pkexec issue that we fixed our suid wrapper from running into similar issues22:16:18

Show newer messages


Back to Room ListRoom Version: 9