summaryrefslogtreecommitdiff
path: root/include/rpcd/session.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-12-03 23:36:35 +0100
committerJo-Philipp Wich <jo@mein.io>2021-12-08 20:09:24 +0100
commit75a96dc281d4e3652655155e85ea04abcffcb5e9 (patch)
tree29381b438ca1ed0777e8a040201b811d5d389aeb /include/rpcd/session.h
parentd11ffe9383ae0ec34836421926364b24c1d891ca (diff)
downloadrpcd-75a96dc281d4e3652655155e85ea04abcffcb5e9.tar.gz
build: honour CMake install prefix in hardcoded paths
Search plugins, ACL ressources and other data files relative to the compile time CMAKE_INSTALL_PREFIX instead of hardcoding `/usr`. Also ensure that plugin libraries are installed into the lib/rpcd subdir. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include/rpcd/session.h')
-rw-r--r--include/rpcd/session.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rpcd/session.h b/include/rpcd/session.h
index 3815a43..8ff3ed0 100644
--- a/include/rpcd/session.h
+++ b/include/rpcd/session.h
@@ -34,7 +34,7 @@
#define RPC_DEFAULT_SESSION_TIMEOUT 300
#define RPC_DEFAULT_SESSION_ID "00000000000000000000000000000000"
#define RPC_SESSION_DIRECTORY "/var/run/rpcd/sessions"
-#define RPC_SESSION_ACL_DIR "/usr/share/rpcd/acl.d"
+#define RPC_SESSION_ACL_DIR INSTALL_PREFIX "/share/rpcd/acl.d"
extern char apply_sid[RPC_SID_LEN + 1];