Skip to content

Instantly share code, notes, and snippets.

View dsseng's full-sized avatar

Dmitry Sharshakov dsseng

  • Austria
  • 17:35 (UTC +02:00)
View GitHub Profile
@dsseng
dsseng / root-podman-wayland.sh
Created October 7, 2023 15:06 — forked from eoli3n/root-podman-wayland.sh
Run an application with dbus and wayland sockets in a rootless podman container
# Install docker or podman package on your distro (podman doesn't need a daemon like dockerd to work). All args are exactly same, just replace ``podman`` with ``docker`` in command if you want to.
sudo pacman -S podman
# Run an archlinux container with dbus and wayland sockets.
sudo podman run \
--volume "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY":/tmp/wayland-0 \
--device /dev/dri \
--volume /run/user/1000/bus:/tmp/bus \
--rm -it archlinux /bin/bash
From ca3036f6a5f834ea5502689cb9b10c5c38a3b657 Mon Sep 17 00:00:00 2001
From: Dmitrii Sharshakov <[email protected]>
Date: Fri, 2 May 2025 15:10:32 +0200
Subject: [PATCH] Revert "runtime: use vDSO for getrandom() on linux"
eb6f2c24cd17c0ca1df7e343f8d9187eef7d6e13
---
src/crypto/rand/rand_test.go | 3 -
src/internal/syscall/unix/getrandom.go | 11 ---
src/runtime/os_linux.go | 9 --