VR: Difference between revisions
Removed the default configuration for WiVRn as it might cause problems and the moderator on the Linux VR Adventures said it's better to use no config: https://discord.com/channels/1065291958328758352/1225819663024259082/1435000987248230504 |
Update bwrap.patch |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 139: | Line 139: | ||
enable = true; | enable = true; | ||
openFirewall = true; | openFirewall = true; | ||
# Run WiVRn as a systemd service on startup | # Run WiVRn as a systemd service on startup | ||
| Line 152: | Line 147: | ||
# You should use the default configuration (which is no configuration), as that works the best out of the box. | # You should use the default configuration (which is no configuration), as that works the best out of the box. | ||
# However, if you need to configure something see https://github.com/WiVRn/WiVRn/blob/master/docs/configuration.md for configuration | # However, if you need to configure something see https://github.com/WiVRn/WiVRn/blob/master/docs/configuration.md for configuration options and https://mynixos.com/nixpkgs/option/services.wivrn.config.json for an example configuration. | ||
};|name=configuration.nix|lang=nix}} | };|name=configuration.nix|lang=nix}} | ||
| Line 243: | Line 238: | ||
}} | }} | ||
{{file|/etc/nixos/bwrap.patch|diff|3=diff --git a/bubblewrap.c b/bubblewrap.c | {{file|/etc/nixos/bwrap.patch|diff|3=diff --git a/bubblewrap.c b/bubblewrap.c | ||
index | index e05f697..504512a 100644 | ||
--- a/bubblewrap.c | --- a/bubblewrap.c | ||
+++ b/bubblewrap.c | +++ b/bubblewrap.c | ||
@@ - | @@ -791,13 +791,6 @@ acquire_privs (void) | ||
/* | /* Historically we supported this, but now we only do user namespaces */ | ||
die ("setuid use of bubblewrap is not supported"); | |||
} | } | ||
- else if (real_uid != 0 && has_caps ()) | - else if (real_uid != 0 && has_caps ()) | ||
| Line 260: | Line 255: | ||
{ | { | ||
/* If our uid is 0, default to inheriting all caps; the caller | /* If our uid is 0, default to inheriting all caps; the caller | ||
}} | |name=|lang=}} | ||
<translate> | <translate> | ||