From b1cff43c0853b883d12e535b49ff0caf7cc5bd68 Mon Sep 17 00:00:00 2001 From: Anderson Queiroz Date: Wed, 3 May 2023 09:40:07 +0200 Subject: [PATCH 1/2] update logging.files.permissions documentation to consider umask (#35257) --- 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 5ed2bd6db3b..d1bcdf2e545 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: From 117361a19d95215f5e9791e1ab566ca9b35a7613 Mon Sep 17 00:00:00 2001 From: Anderson Queiroz Date: Wed, 3 May 2023 18:21:04 +0200 Subject: [PATCH 2/2] update notice --- NOTICE.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NOTICE.txt b/NOTICE.txt index 49e4f49c2eb..1d90a6a7c32 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/).