From 0542faa10f9e36fd3384abb463b1d1ddf631835b Mon Sep 17 00:00:00 2001 From: Anderson Queiroz Date: Thu, 4 May 2023 14:47:05 +0200 Subject: [PATCH] [8.1](backport #35257) [Docs] Update logging.files.permissions documentation to consider umask (#35304) * update logging.files.permissions documentation to consider umask (#35257) * update notice --- NOTICE.txt | 2 +- filebeat/docs/filebeat-general-options.asciidoc | 3 +++ libbeat/docs/loggingconfig.asciidoc | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NOTICE.txt b/NOTICE.txt index 0da6f6477db4..13fe84155f2b 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,5 +1,5 @@ Elastic Beats -Copyright 2014-2022 Elasticsearch BV +Copyright 2014-2023 Elasticsearch BV This product includes software developed by The Apache Software Foundation (http://www.apache.org/). diff --git a/filebeat/docs/filebeat-general-options.asciidoc b/filebeat/docs/filebeat-general-options.asciidoc index 5ed2bd6db3b3..d1bcdf2e545e 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 c25f74e06a73..b5443d2d978b 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: