Skip to main content

Questions tagged [sandbox]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

How to Avoid Copying Large Folders When Creating a chroot Sandbox Using Symlinks, Hard Links, or Bind Mount?

I am working on creating a chroot sandbox and want to avoid the time-consuming and storage-intensive process of copying large directories such as bin, lib, and others. Is it possible to use symbolic ...
Foad's user avatar
  • 379
2 votes
0 answers
21 views

opening an image in /tmp with Pinta

I have Pinta 2.1.1 running in Flatpak (v1.14.5). When I run Pinta from the command line passing an image located in /tmp as an argument, it complains about the file not existing: $ /var/lib/flatpak/...
laur's user avatar
  • 588
0 votes
1 answer
27 views

Safety of thunderbird credentials with Firefox and websites with file-browsing scripts on Linux

I'd like to set up an instance of Thunderbird on a Fedora VM (with a VPN). I want it to use ONLY an alias I have set up with the email providers. But I will still have to use my real credentials to ...
account-minute's user avatar
0 votes
0 answers
60 views

Where is AppArmor's Log File?

I'm trying to scan the application Firefox with AppArmor sandbox, however I don't know where the location of the log file is. I use Kali Linux, and there are so many directories with log files. I also ...
Hack3rX's user avatar
1 vote
1 answer
223 views

how can i make a dbus connection from a sandbox to pipewire

How can i create a DBUS connection to PipeWire (to communicate with the sound daemon) from a SElinux sandbox?
ministry's user avatar
1 vote
0 answers
142 views

SELinux sandboxed firefox has no audio

Running firefox in a SELinux sandbox using this script: Random variables for directories, Allowing multiple instances SEhome=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) SEtemp=$(...
ministry's user avatar
1 vote
0 answers
1k views

How to clear the contents under /run/user/1000/doc?

I am on Ubuntu 20.04 and installed evince via flatpak, when I open evince, it usually makes a copy of the opened file into /run/user/1000/doc. I learned that /run/user/1000/doc is the temporary ...
Simon.Zh.1234's user avatar
1 vote
1 answer
295 views

unprivileged_userns_apparmor_policy - what does it do?

I am developing some AppArmor profiles, and came across the kernel flag unprivileged_userns_apparmor_policy, but I cannot find any documentation about it. Does anyone know what it does? I wonder if ...
schmeg's user avatar
  • 21
0 votes
2 answers
61 views

How to test an outdated version of the Firefox web browser on an up to date system?

I tried to run Firefox 4 on Debian 11 to test a web site for ES5 compatibility. I managed to run NCSA Mosaic on Debian 11 using Flatpak, but this was too old: it crashes directly, when loading my site....
ceving's user avatar
  • 3,639
2 votes
0 answers
342 views

Sandboxing user sessions with systemd

I would like to sandbox a user session on a remote Linux VM similarly as one can sandbox a systemd service. For example, in the service file I can add to [Service] sections lines like: NoNewPrivileges=...
Igor Bukanov's user avatar
3 votes
1 answer
675 views

Jail/Sandbox process on an overlay root and track changes

What I am trying to achieve I want to run a process as an unprivileged user, but all files that are changed by this process should be only changed in a shadow folder. Furthermore, I want to disable ...
Raphael Jenni's user avatar
8 votes
1 answer
755 views

Firefox spamming SECCOMP events to journal/syslog - how to fix?

Since I updated to the snap-based Firefox on Ubuntu recently, I see it reporting SECCOMP_RET_TRAP messages to the journal whenever some application is drawing a canvas. And since applications drawing ...
foo's user avatar
  • 133
0 votes
2 answers
971 views

How to use wine with more security?

After installing Wine I found that there is a z drive that has direct access to root folder. I have seen many threads and news about virus affecting a linux system through wine. How do I make it more ...
Sohan Arafat's user avatar
0 votes
0 answers
522 views

Is it possible to sandbox Wine in a way that mitigates all security risks from running Windows apps/games and having Wine installed?

And if that is more or less possible, how can it be done? Using firejail is probably part of it but not the full story. I'd like to install Wine to be able to play Windows games that don't have native ...
mYnDstrEAm's user avatar
  • 4,398
3 votes
0 answers
369 views

How to run a child process inside firejail sandbox?

Hello Linux folks i need help running with firejail with a java program that is in sandbox firejail --private --trace java -jar program.jar But this program can't spawn child process (chromium) due to ...
geek's user avatar
  • 177
1 vote
1 answer
470 views

Create flatpak runtime with specified /usr and similar dirs

What I'm trying to build is a flatpak runtime that will use /usr as symlink to say /my/usr or the host /usr. That way existing containers and host runtime can be used for apps that are either not ...
ratcher86's user avatar
5 votes
0 answers
905 views

How do I run wine with bubblewrap?

I am trying to run Windows games with wine and bubblewrap so that they are sandboxed. When I run the command below: bwrap \ --ro-bind /bin /bin \ --ro-bind /lib /lib \ --ro-bind /lib64 /...
Bagalaw's user avatar
  • 945
0 votes
1 answer
72 views

In Gnome, why does starting a favorited sandboxed application create a new icon on the dash?

I think this is something that's easier to show than tell. So you see in this image of my dash, I clicked on the Tor icon with the gradient background, but it actually opened the application using a ...
gdi's user avatar
  • 143
0 votes
1 answer
115 views

Linux sandbox that shows which files have been created/modified

I use Gentoo Linux. I need to find out what the program running under root downloads and where it puts the downloaded files. I would also like to have a sandbox for testing programs from unreliable ...
GangsterVano's user avatar
3 votes
1 answer
858 views

How to debug systemd seccomp SystemCallFilter unit-name.service: Main process exited, code=killed, status=31/SYS?

systemd unit file: [Service] SystemCallFilter=[...] Error message: unit-name.service: Main process exited, code=killed, status=31/SYS How to find out which system call is missing in the whitelist?
adrelanos's user avatar
  • 1,886
0 votes
1 answer
24 views

Suspending programs running under a certain user

I am isolating less trusted programs that need access to x (such as web browsers) with this method. https://wiki.gentoo.org/wiki/Simple_sandbox But any program that has access to my x session can log ...
herringbottom's user avatar
1 vote
0 answers
887 views

Isolating users running containers in the same account

Multiple users are running container images on the same user account on a supercomputer ("service account"). Each container mounts a folder that contains sensitive data. One service account ...
itsmemario's user avatar
0 votes
1 answer
187 views

Packages download defaults to be sandboxed

Why most Linux packages download defaults to be operated under sandbox canceling su privilege ? E.g. is on debian W: Download is performed unsandboxed as root as file ... Please one elaborate sandbox ...
user avatar
0 votes
1 answer
1k views

Allow to run Telegram (or any other application) via firejail, prevent it from running directly

Preferably without using sudo. So far I've just saved it under /opt/telegram/Telegram without adding it to $PATH but that's not a solution since I can easily run it accidentally.
Artem S. Tashkinov's user avatar
0 votes
1 answer
465 views

How to spawn each child process in separate pid namespace

How to spawn each child in a separate PID namespace using unshare (without CLONE_NEWPID flag in child process clone syscall). I am able to successfully spawn first child in PID namespace but I am not ...
Karthik Nedunchezhiyan's user avatar
0 votes
1 answer
2k views

How to run external executables within firejail

My machine is home desktop(personal) running Debian Buster with i3 window manager. I recently installed firejail with apt install firejail* firetools and also downloaded the new Firefox 83 browser ...
atheros's user avatar
  • 256
-1 votes
1 answer
151 views

Run compilation safely in sandbox

How to run compilation safely in sandbox? If I download something from GitHub, how to be safe from malware when compiling it? Linux (Ubuntu).
porton's user avatar
  • 2,206
1 vote
1 answer
507 views

AppArmor equivalent to Firejail --net=none

firejail --net=none creates a sandbox looking like a computer without any network interfaces. Is it possible to achieve the same result with AppArmor? It looks like, AppArmor's deny network just ...
Trudy's user avatar
  • 924
1 vote
1 answer
1k views

create custom profile to run man using firejail

I'm trying to use firejail (version 0.9.58.2) for application sandboxing on my Debian Stable machine. From what I understand it's possible to create a custom configuration file for each application ...
n0542344's user avatar
  • 406
-1 votes
1 answer
85 views

Isolate non-FOSS "completely"

My question today is about the access-rights and control a program gets systemwide. I use a Linux distro as my daily-driver, mainly for software development but also for daily operations. I really ...
user654789384's user avatar
0 votes
1 answer
9k views

I cannot run google chrome without --no-sandbox argument

I use this version of Kali Linux : Linux kali 5.7.0-kali1-amd64 #1 SMP Debian 5.7.6-1kali2 (2020-07-01) x86_64 GNU/Linux I downloaded google chrome from chrome's website and installed it with this ...
X Y's user avatar
  • 117
0 votes
0 answers
220 views

SELinux sandbox on debian buster

I have installed and enabled SELinux on Debian 10 (Buster). Running sandbox however returns: /usr/bin/sandbox: Sandbox Policy is not currently installed. You need to install the selinux-policy-...
Yan Foto's user avatar
  • 103
0 votes
0 answers
491 views

Systemd PrivateTmp and JoinsNamespaceOf

I have two service definitions which look like this: service_a.service: [Unit] Description=ServiceA [Service] JoinsNamespaceOf=service_b.service PrivateTmp=yes service_b.service: [Unit] Description=...
Curunir's user avatar
  • 111
2 votes
1 answer
2k views

Launching Electron on Ubuntu WSL

I am running a WSL2 Ubuntu system. I'm attempting to follow this tutorial to launch an Electron boilerplate. When running yarn dev I come across this error: [14143:0218/164010.657008:FATAL:...
Alex Williams's user avatar
2 votes
2 answers
3k views

Why does root user cannot create browser sandbox?

Error: Running as root without --no-sandbox is not supported. In Linux, why cannot the root user create sandbox for chrome or opera browsers like other users? Why should the root user need to launch ...
PaxPrz's user avatar
  • 265
4 votes
0 answers
133 views

Separate clipboard for particular application

Is it possible, on Debian with Klipper running, to have a separate "clipboard stack" for a particular application? I'd like the text that I copy in application Y not to be shared with all the other ...
xmeric's user avatar
  • 49
1 vote
0 answers
299 views

sandbox skype,spotify on ubuntu

I am trying to sandbox applications such as Skype/Spotify on Ubuntu 18.04. Both are installed under snap, which limits their access to system folders (although skype is installed using '--classic' ...
redo's user avatar
  • 11
0 votes
3 answers
79 views

How run Softwares as a snapshot?

I want to run the software as non-persistent, which means if any configuration is changed, they revert. In the Windows, Software Sandboxie has this amazing feature. When the program is started, it ...
Monu's user avatar
  • 155
0 votes
1 answer
895 views

How to harden apt with seccomp in Debian 10?

Here it says "[...] APT [...] can make use of seccomp-BPF sandboxing" and describes how to do so only by: APT::Sandbox::Seccomp is a boolean to turn it on/off That's a bit sparse imo. Where should ...
mYnDstrEAm's user avatar
  • 4,398
0 votes
1 answer
255 views

pivot_root(2) causes system crash

I am trying to change the root of my process to new file system that I mounted at /tmp/mount_dir and i have created another directory inside it /tmp/mount_dir/inner_mount_dir, and according to the man ...
o.awajan's user avatar
5 votes
0 answers
1k views

Where to find more infos about Xwayland command line options?

My gnome-session starts a Xwayland instance which I can find $> pgrep -a Xwayland 995 /usr/bin/Xwayland :0 -rootless -terminate -accessx -core -listen 4 -listen 5 -displayfd 6 which shows that ...
humanityANDpeace's user avatar
2 votes
1 answer
120 views

Run a program and see what it changes in the system

I have a closed-source VPN program that messes up my system (Fedora Linux): I run it, it changes something, VPN works, but when I terminate the connection, my system is left in a dirty state and the ...
The Data Scientician's user avatar
3 votes
1 answer
3k views

firejail : only let a program access localhost

I have this local network service and this client program needing to access it. I am running them both as an unprivileged user. I am looking for a way to sandbox the client using firejail, in a way ...
tbrugere's user avatar
  • 996
4 votes
0 answers
439 views

firejail: child-process not sandboxed?

As far as the sandbox "firejail" is concerned I´ve encountered a phenomenon which isn´t completely clear to me. My understanding has always been that whenever I start a programm/process in firejail ...
Rosika's user avatar
  • 151
2 votes
4 answers
2k views

Create temporary empty environment in Linux [closed]

Is it possible to create a temporary empty environment for a new user in a Shell like Bash or zsh? I mean like the incognito mode in Chrome which opens an isolated environment in which everything you ...
soner's user avatar
  • 96
1 vote
1 answer
2k views

How to avoid running make as root in the last step of installing an application from source? [duplicate]

I am always reluctant to run make install as root as the last step of installing an application from source. After all, it allows executing arbitrary code form the Makefile. It has already happened to ...
Zoltan's user avatar
  • 476
0 votes
1 answer
262 views

Mismatched APT Dependencies

I have Synergy installed on Ubuntu 18.04 (this is not the new version 2, fwiw). Apparently, it has a requirement of libcurl3. However, the machine also runs as a hypervisor and I need to use ...
mredig's user avatar
  • 101
2 votes
2 answers
514 views

How can we easily revert the changes made by experiements with unfamiliar commands? [closed]

Sometimes I would like to experiment with some commands which I am unfamiliar with (e.g. xmodmap), and also have the ability to revert the changes very easily without knowing much about the commands ...
Tim's user avatar
  • 103k
1 vote
1 answer
162 views

How to properly sandbox a program that may hang the computer

Recently I compiled a program in GNU MIX. The program is rather simple and only contains an unconditional jump to the only instruction, which is essentially a infinite loop. The problem is, when I ...
Weijun Zhou's user avatar
  • 3,418
3 votes
1 answer
1k views

Restrict clipboard for untrusted X11 clients

I've came across this blog https://notehub.org/rp5n2 which describes a way to make certain X11 clients untrusted[1], which makes certain X11 extensions unavailable to them. Note that I know perfectly ...
woky's user avatar
  • 432