diff options
author | Aki <please@ignore.pl> | 2022-01-28 17:25:24 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-01-28 17:25:24 +0100 |
commit | ae55415b85ce7739c3816992a08b63f0ef0f34fe (patch) | |
tree | 1a86588cd750ae7d94fb846a846657af0279e26c /daemon | |
parent | 3eedebe20e3b715308ba7b97d42c819fcb671bd3 (diff) | |
download | hwd-ae55415b85ce7739c3816992a08b63f0ef0f34fe.zip hwd-ae55415b85ce7739c3816992a08b63f0ef0f34fe.tar.gz hwd-ae55415b85ce7739c3816992a08b63f0ef0f34fe.tar.bz2 |
Restricted user and group of the daemon
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/CMakeLists.txt | 3 | ||||
-rw-r--r-- | daemon/hwd.conf | 1 | ||||
-rw-r--r-- | daemon/hwd.service.in | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt index 4a3f436..54d3950 100644 --- a/daemon/CMakeLists.txt +++ b/daemon/CMakeLists.txt @@ -20,3 +20,6 @@ configure_file(hwd.service.in hwd.service) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/hwd.service DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/systemd/system ) +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/hwd.conf + DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/sysusers.d + ) diff --git a/daemon/hwd.conf b/daemon/hwd.conf new file mode 100644 index 0000000..bdd1819 --- /dev/null +++ b/daemon/hwd.conf @@ -0,0 +1 @@ +u hwd - "Daemon for Educational Hardware Simulator"
\ No newline at end of file diff --git a/daemon/hwd.service.in b/daemon/hwd.service.in index ae60536..f49f58b 100644 --- a/daemon/hwd.service.in +++ b/daemon/hwd.service.in @@ -3,6 +3,8 @@ Description=Daemon for Educational Hardware Simulator After=network.target [Service] +User=hwd +Group=hwd ExecStart=${CMAKE_INSTALL_BINDIR}/hwd [Install] |