diff options
author | Daniel Baumann <daniel@debian.org> | 2025-01-14 18:46:22 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2025-01-14 19:34:48 +0100 |
commit | 540d7a590b45089046898451eac143027055fbc3 (patch) | |
tree | f6f395e4b68b2fe800dfae6f42cdb72b40120e4f | |
parent | Releasing debian version 1.9.19-7. (diff) | |
download | haveged-540d7a590b45089046898451eac143027055fbc3.tar.xz haveged-540d7a590b45089046898451eac143027055fbc3.zip |
Adding patch to create /dev/shm in haveged itself if it is not existing (Closes: #1087324).
Signed-off-by: Daniel Baumann <daniel@debian.org>
-rw-r--r-- | debian/patches/debian/0001-shm-directory.patch | 19 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/debian/0001-shm-directory.patch b/debian/patches/debian/0001-shm-directory.patch new file mode 100644 index 0000000..07a4402 --- /dev/null +++ b/debian/patches/debian/0001-shm-directory.patch @@ -0,0 +1,19 @@ +Author: Daniel Baumann <daniel@debian.org> +Description: Creating /dev/shm if its not existing (Closes: #1087324). + +diff -Naurp haveged.orig/src/haveged.c haveged/src/haveged.c +--- haveged.orig/src/haveged.c 2025-01-14 18:44:32.651852997 +0100 ++++ haveged/src/haveged.c 2025-01-14 19:30:07.495863674 +0100 +@@ -490,6 +490,12 @@ int main(int argc, char **argv) + } + } + /* Initilize named semaphore to synchronize command isntances */ ++ if (mkdir("/dev/shm", 0755) != 0) { ++ if (errno != EEXIST) { ++ error_exit("Couldn't create /dev/shm directory: %s", strerror(errno)); ++ } ++ } ++ + sem = sem_open(SEM_NAME, O_CREAT, 0644, 1); + if (sem == NULL) { + error_exit("Couldn't create nammed semaphore " SEM_NAME" error: %s", strerror(errno)); diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..89d2846 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-shm-directory.patch |