|
本帖最后由 laomao9000 于 2021-5-31 10:29 编辑
群晖实用apparmor来控制资源访问,对应的profile是/etc/apparmor.d/pkg_SynologyMoments ,增加对禁用资源的访问,重启动apparmor服务,发现修改的profile根本旧没有采用,仍然报错。郁闷!
修改前:
/volume*/@appstore/SynologyMoments/usr/bin/synophoto-bin-metadata-wrapper {
#include <abstractions/base>
#include <abstractions.pkg/SynologyMoments/base>
#include <abstractions.pkg/SynologyMoments/file-read>
#include <abstractions.pkg/SynologyMoments/metadata>
capability setuid,
capability setgid,
/volume*/@appstore/SynologyMoments/usr/bin/synophoto-bin-metadata-wrapper r,
}
修改后:
/volume*/@appstore/SynologyMoments/usr/bin/synophoto-bin-metadata-wrapper {
#include <abstractions/base>
#include <abstractions.pkg/SynologyMoments/base>
#include <abstractions.pkg/SynologyMoments/file-read>
#include <abstractions.pkg/SynologyMoments/metadata>
capability setuid,
capability setgid,
/etc/VERSION r,
/etc/ImageMagick-6/policy.xml r,
/volume*/@appstore/SynologyMoments/usr/bin/synophoto-bin-metadata-wrapper r,
}
增加对 /etc/VERSION 的读取授权。报错依旧。
|
|