-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sudo
again for Linux compatibility
#1
Comments
at openbsd, a sandbox is similar to a non-root-user with restrictions.. |
@jon1enforce Truthfully, OpenBSD doesn't really have sandboxes other than That said, some OpenBSD X11 applications have been updated to use OpenBSD's pledge(2) & unveil(2) functions to further restrict access to the file system, but the number is relatively small and effectiveness is not guaranteed. This is based on a script by Milosz Galazka (that's an Internet Archive link, since the original page is no longer available; I've also added the Wayback Machine link to the README), which he gave me permission to modify and release under the MIT license back in 2020. So, it did originally work under Linux, but — as you rightfully point out — many (most?) Linux distributions are now defaulting to Wayland (OpenBSD now has limited support for Wayland in ports), which has a different security model and is incompatible with Xsunaba. I have not yet investigated whether the XWayland compatibility layer would allow the use of Xsunaba, but since the overall architecture and security considerations are completely different, it's probably not worth it. |
@jon1enforce Also, I like your thought of using this with OpenBSD guest VMs, though I haven't personally tested that. |
my thoughts on OpenBSD guest VMs (not as good as freebsd-jails) are similar to a video, i just watched..
I also need write permissions to subfolders on /home/xsunaba/project/project.py |
@enhancement the .cshrc file on freebsd looks more advanced... ..Also on openbsd this should do the job..like adding read access control.. prevent unnecessary copying: |
keyboard layout (example: German): |
The only reason that Xsunaba is currently listed as "for OpenBSD" is that I converted Milosz's original script from using
sudo
todoas
. It should be easy to support eithersudo
ordoas
, but I don't currently have a Linux environment running X11 to test this in.I'm not sure why the original script was using
sudo su - $SANDBOX_USER
instead ofsudo -u $SANDBOX_USER
. The latter syntax would be easier to switch betweensudo
anddoas
asdoas
also supports-u
.The text was updated successfully, but these errors were encountered: