From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2685 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dewayne Geraghty Newsgroups: gmane.comp.sysutils.supervision.general Subject: s6-log can create current with 640? Date: Wed, 23 Oct 2019 13:27:24 +1100 Message-ID: <6f3a28f8-798c-9a55-e79b-2e54b37edf2e@heuristicsystems.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="34134"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 To: "supervision@list.skarnet.org" Original-X-From: supervision-return-2274-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Oct 23 04:28:58 2019 Return-path: Envelope-to: gcsg-supervision@m.gmane.org Original-Received: from alyss.skarnet.org ([95.142.172.232]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iN6OP-0008kR-Kb for gcsg-supervision@m.gmane.org; Wed, 23 Oct 2019 04:28:58 +0200 Original-Received: (qmail 21619 invoked by uid 89); 23 Oct 2019 02:29:19 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Original-Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Original-Received: (qmail 21612 invoked from network); 23 Oct 2019 02:29:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=heuristicsystems.com.au; s=hsa; t=1571797645; x=1572402446; bh=+NLQLCV11gCO0Cm2aZTHJx3SKzOB4oMacC8KNZDiKTM=; h=To:From:Subject:Message-ID:Date; b=SPbM78PdW23e+FhtNf4awu4KBCr5AhjCbhvanQmr7VDHowfgqRMzveGnIsSUQEVaq tnk0qSk1b0/Kq20tJyevEmddUJBL3YsrLaKvw519KqFcK9iDjSJOoHVGvb9cyPrqAF 4+miCoDUlLDPRp4znEETxwOPz6W/iuo6TGvsvyInz7SOb8rKa+b45 X-Authentication-Warning: b3.hs: Host noddy.hs [10.0.5.3] claimed to be [10.0.5.3] Openpgp: preference=signencrypt Content-Language: en-AU Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2685 Archived-At: Is there any way to tell s6-log to set the mode to ./current to something other than 644? 640 is preferred? For example: I write to the logdir /var/log/httpd/error which has privs: /var/log/http drwx------ 2 uucp uucp 1.0K Oct 23 12:37 error/ Within /var/log/httpd/error -rwxr--r-- 1 uucp uucp 190K Oct 23 12:37 @400000005dafaf1b180d862c.s* -rw-r----- 1 uucp uucp 0B Oct 23 12:37 state -rw-r--r-- 1 uucp uucp 0B Oct 23 12:37 current I did try umask 037 but that just broke the pipe. All my log files are of this form #!/usr/local/bin/execlineb -P s6-setuidgid uucp redirfd -r 0 /services/ntp/fifo /usr/local/bin/s6-log -b n28 r7000 s200000 S7000000 !"/usr/bin/xz -7q" /var/log/ntpd This is a big deal as I'm about to move my audit processing under s6-rc. (Aside: Actually I write to a fifo and then redirfd for s6-log to pick up the content and manage the log files. All works very nicely :) )