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