限制 systemd 服务访问文件

时间:2021-07-25 16:08:18

标签: python python-3.x ubuntu systemd restrict

我使用的是 Ubuntu 18.04。我正在创建 systemd 服务来启动 python 代码。但是,问题是,我不希望我的 python 代码访问其他目录,除了它运行的地方。最好限制 systemd 服务或 python 访问其他目录。我担心 Ubuntu 服务器上的其他文件可能会被删除或损坏。 提前致谢。

0 个答案:

没有答案
相关问题