Skip to content

Commit 9895e98

Browse files
committed
Update SELinux policy for new location of grafana-pcp plugin
1 parent ce01025 commit 9895e98

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ restorecon -RvF /usr/sbin/grafana-* \
3636
/etc/grafana \
3737
/var/log/grafana \
3838
/var/lib/grafana \
39-
/usr/share/performancecopilot-pcp-app
39+
/usr/libexec/grafana-pcp \
40+
# /usr/share/performancecopilot-pcp-app \
4041

4142
# Start grafana
4243
systemctl start grafana-server.service
@@ -88,6 +89,7 @@ restorecon -RvF /usr/sbin/grafana-* \
8889
/etc/grafana \
8990
/var/log/grafana \
9091
/var/lib/grafana \
92+
/usr/libexec/grafana-pcp \
9193
/usr/share/performancecopilot-pcp-app
9294
```
9395
* Restart grafana-server

grafana.fc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@
2020
/usr/share/grafana/bin/grafana-server -- gen_context(system_u:object_r:grafana_exec_t,s0)
2121

2222
#define context for pcp plugin
23-
/usr/share/performancecopilot-pcp-app/datasources/redis/pcp_redis_datasource_(.*) -- gen_context(system_u:object_r:grafana_pcp_exec_t,s0)
23+
#/usr/share/performancecopilot-pcp-app/datasources/redis/pcp_redis_datasource_(.*) -- gen_context(system_u:object_r:grafana_pcp_exec_t,s0)
24+
/usr/libexec/grafana-pcp/datasources/redis/pcp_redis_datasource_(.*) -- gen_context(system_u:object_r:grafana_pcp_exec_t,s0)

0 commit comments

Comments
 (0)