Skip to content

Commit

Permalink
event-broker: Change default socket path under /run instead of /var
Browse files Browse the repository at this point in the history
Signed-off-by: Daiki Ueno <[email protected]>
  • Loading branch information
ueno committed Jun 22, 2023
1 parent 6dc3022 commit 1f777c2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ install: install-programs
done
install -D -m 644 -t ${DESTDIR}$(systemdsystemunitdir) dist/systemd/system/crypto-auditing-agent.service
install -D -m 644 -t ${DESTDIR}$(systemdsystemunitdir) dist/systemd/system/crypto-auditing-event-broker.service
install -d ${DESTDIR}/var/lib/crypto-auditing
install -d ${DESTDIR}/run/crypto-auditing
install -d ${DESTDIR}/var/log/crypto-auditing

.PHONY: check
Expand Down
2 changes: 1 addition & 1 deletion crypto-auditing/src/event_broker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ mod client;
pub use client::{Client, ClientHandle};

/// The default path of the Unix domain socket where the event broker is running
pub const SOCKET_PATH: &'static str = "/var/lib/crypto-auditing/audit.sock";
pub const SOCKET_PATH: &'static str = "/run/crypto-auditing/audit.sock";
2 changes: 1 addition & 1 deletion dist/conf/client.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# socket_path = "/var/lib/crypto-auditing/audit.sock"
# socket_path = "/run/crypto-auditing/audit.sock"
# scope = ["tls"]
2 changes: 1 addition & 1 deletion dist/conf/event-broker.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# log_file = "/var/log/crypto-auditing/audit.cborseq"
# socket_path = "/var/lib/crypto-auditing/audit.sock"
# socket_path = "/run/crypto-auditing/audit.sock"
2 changes: 1 addition & 1 deletion dist/systemd/system/crypto-auditing-event-broker.socket
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Event broker socket for crypto-auditing project

[Socket]
ListenStream=/var/lib/crypto-auditing/audit.sock
ListenStream=/run/crypto-auditing/audit.sock
# SocketUser=crypto-auditing
# SocketGroup=crypto-auditing
# SocketMode=0660
Expand Down

0 comments on commit 1f777c2

Please sign in to comment.