daemon_confs.patch 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. diff -Nuar a/etc/clamav-milter.conf.sample b/etc/clamav-milter.conf.sample
  2. --- a/etc/clamav-milter.conf.sample 2023-10-24 20:10:14.000000000 +0300
  3. +++ b/etc/clamav-milter.conf.sample 2023-11-04 11:15:20.706075909 +0300
  4. @@ -3,7 +3,7 @@
  5. ##
  6. # Comment or remove the line below.
  7. -Example
  8. +# Example
  9. ##
  10. diff -Nuar a/etc/clamd.conf.sample b/etc/clamd.conf.sample
  11. --- a/etc/clamd.conf.sample 2023-10-24 20:10:14.000000000 +0300
  12. +++ b/etc/clamd.conf.sample 2023-11-04 11:20:07.859485998 +0300
  13. @@ -5,13 +5,14 @@
  14. # Comment or remove the line below.
  15. -Example
  16. +# Example
  17. # Uncomment this option to enable logging.
  18. # LogFile must be writable for the user running daemon.
  19. # A full path is required.
  20. # Default: disabled
  21. #LogFile /tmp/clamd.log
  22. +LogFile /var/log/clamd.log
  23. # By default the log file is locked for writing - the lock protects against
  24. # running clamd multiple times (if want to run another clamd, please
  25. @@ -19,7 +20,7 @@
  26. # the daemon with --config-file option).
  27. # This option disables log file locking.
  28. # Default: no
  29. -#LogFileUnlock yes
  30. +LogFileUnlock yes
  31. # Maximum size of the log file.
  32. # Value of 0 disables the limit.
  33. @@ -75,6 +76,7 @@
  34. # also owned by root to keep other users from tampering with it.
  35. # Default: disabled
  36. #PidFile /run/clamav/clamd.pid
  37. +PidFile /run/clamd.pid
  38. # Optional path to the global temporary directory.
  39. # Default: system specific (usually /tmp or /var/tmp).
  40. @@ -82,7 +84,7 @@
  41. # Path to the database directory.
  42. # Default: hardcoded (depends on installation options)
  43. -#DatabaseDirectory /var/lib/clamav
  44. +DatabaseDirectory /var/lib/clamav
  45. # Only load the official signatures published by the ClamAV project.
  46. # Default: no
  47. @@ -100,6 +102,7 @@
  48. # Default: disabled (must be specified by a user)
  49. #LocalSocket /run/clamav/clamd.sock
  50. #LocalSocket /tmp/clamd.sock
  51. +LocalSocket /run/clamd.socket
  52. # Sets the group ownership on the unix socket.
  53. # Default: disabled (the primary group of the user running clamd)
  54. @@ -115,7 +118,7 @@
  55. # TCP port address.
  56. # Default: no
  57. -#TCPSocket 3310
  58. +TCPSocket 3310
  59. # TCP address.
  60. # By default we bind to INADDR_ANY, probably not wise.
  61. diff -Nuar a/etc/freshclam.conf.sample b/etc/freshclam.conf.sample
  62. --- a/etc/freshclam.conf.sample 2023-10-24 20:10:14.000000000 +0300
  63. +++ b/etc/freshclam.conf.sample 2023-11-04 11:22:10.603951481 +0300
  64. @@ -5,16 +5,16 @@
  65. # Comment or remove the line below.
  66. -Example
  67. +# Example
  68. # Path to the database directory.
  69. # WARNING: It must match clamd.conf's directive!
  70. # Default: hardcoded (depends on installation options)
  71. -#DatabaseDirectory /var/lib/clamav
  72. +DatabaseDirectory /var/lib/clamav
  73. # Path to the log file (make sure it has proper permissions)
  74. # Default: disabled
  75. -#UpdateLogFile /var/log/freshclam.log
  76. +UpdateLogFile /var/log/freshclam.log
  77. # Maximum size of the log file.
  78. # Value of 0 disables the limit.
  79. @@ -53,6 +53,7 @@
  80. # also owned by root to keep other users from tampering with it.
  81. # Default: disabled
  82. #PidFile /run/clamav/freshclam.pid
  83. +PidFile /run/freshclam.pid
  84. # By default when started freshclam drops privileges and switches to the
  85. # "clamav" user. This directive allows you to change the database owner.