D
D
Damian Lewis2021-11-11 22:58:53
linux
Damian Lewis, 2021-11-11 22:58:53

How to disable writing to disk for certain programs in Linux?

Hello! The question is in the title. Can this be done? For example, let's take a typical *.AppImage as an example. After launch, it caches data in cache, and settings in config. I tried to deprive the image of write rights, but after launch it still creates files in different folders. The image * .AppImage resulted purely for an example. It can be the launch of any program.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
ge, 2021-11-11
@DamianLewis

You can restrict the user on behalf of which the program is launched. Restrictions for the programs themselves are implemented in containers, for example, Flatpack has this feature https://askubuntu.com/questions/1086529/how-to-giv...

S
Stanislav Bodrov, 2021-11-12
@jenki

Selinux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question