mirror of
https://git.proxmox.com/git/proxmox-spamassassin
synced 2025-08-14 17:52:22 +00:00
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
From 356385958bef16b3f95a100aea6e906a54819e84 Mon Sep 17 00:00:00 2001
|
|
From: Stoiko Ivanov <s.ivanov@proxmox.com>
|
|
Date: Tue, 4 Jun 2024 12:49:50 +0200
|
|
Subject: [PATCH] make userstate directory writeable by nobody when building as
|
|
root
|
|
|
|
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
|
|
---
|
|
t/SATest.pm | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/t/SATest.pm b/t/SATest.pm
|
|
index bb5391d84d..9ff58c03d5 100644
|
|
--- a/t/SATest.pm
|
|
+++ b/t/SATest.pm
|
|
@@ -267,6 +267,7 @@ sub sa_t_init {
|
|
if ($> == 0) {
|
|
$tmp_dir_mode = 0777;
|
|
umask 022; # ensure correct permissions on files and dirs created here
|
|
+ chmod(01777, $userstate); # else "nobody" cannot create the lockfile for the bayes-db
|
|
# Bug 5529 initial fix: For now don't run a test as root if it has a problem resuting from setuid nobody
|
|
# FIXME: Eventually we can actually test setuid nobody and accessing ./log to make this test more fine grained
|
|
# and we can create an accessible temp dir that some of the tests can use. But for now just skip those tests.
|
|
--
|
|
2.39.2
|
|
|