From 55100d1f6f780f65851e1d07b0fb484d77053589 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 3 May 2023 10:30:39 +0200 Subject: [PATCH] update logging.files.permissions documentation to consider umask (#35257) (#35293) (cherry picked from commit 7524a417f974b75813dcc871f318ff1906b086bf) Co-authored-by: Anderson Queiroz --- filebeat/docs/filebeat-general-options.asciidoc | 3 +++ libbeat/docs/loggingconfig.asciidoc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/filebeat/docs/filebeat-general-options.asciidoc b/filebeat/docs/filebeat-general-options.asciidoc index 07835e0973e..224706e4360 100644 --- a/filebeat/docs/filebeat-general-options.asciidoc +++ b/filebeat/docs/filebeat-general-options.asciidoc @@ -40,6 +40,9 @@ That means in case there are some states where the TTL expired, these are only r The permissions mask to apply on registry data file. The default value is 0600. The permissions option must be a valid Unix-style file permissions mask expressed in octal notation. In Go, numbers in octal notation must start with 0. +The most permissive mask allowed is 0640. If a higher permissions mask is +specified via this setting, it will be subject to an umask of 0027. + This option is not supported on Windows. Examples: diff --git a/libbeat/docs/loggingconfig.asciidoc b/libbeat/docs/loggingconfig.asciidoc index c25f74e06a7..b5443d2d978 100644 --- a/libbeat/docs/loggingconfig.asciidoc +++ b/libbeat/docs/loggingconfig.asciidoc @@ -231,6 +231,9 @@ The permissions mask to apply when rotating log files. The default value is expressed in octal notation. In Go, numbers in octal notation must start with '0'. +The most permissive mask allowed is 0640. If a higher permissions mask is +specified via this setting, it will be subject to an umask of 0027. + This option is not supported on Windows. Examples: