supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* svlogd and umask settings
@ 2006-08-30 22:03 Vincent Danen
  2006-09-01 17:49 ` Vincent Danen
  0 siblings, 1 reply; 8+ messages in thread
From: Vincent Danen @ 2006-08-30 22:03 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]

I have an issue with svlogd where I need it to write files with 0640
perms, but it wants to write with 0644 perms.  I tried to toss a umask
call in my runscript:

[root@ares apparmor.d]# cat /service/auditd/log/run 
#!/bin/execlineb

# logging for the auditd service; unfortunately we need to run as root here
# so that genprof will look at our log

/bin/foreground { /usr/bin/install -m 0700 -d -o root -g root
/var/log/system/audit }
/bin/cd /var/log/service
/bin/umask 026
/sbin/svlogd /var/log/system/audit

This doesn't seem to make a difference to svlogd.  Looking in the
manpage, I didn't see anything about changing the permissions of files
it creates.  But even with the above I get:

[root@ares apparmor.d]# ls -l /var/log/system/audit/
total 0
-rw-r--r--  1 root root 0 Aug 30 16:17 current
-rw-------  1 root root 0 Aug 30 16:17 lock

What am I missing or do I have to change something in svlogd itself?
Since Annvix is now using socklog by default, I need to make sure logs
are 0640.  The directory permissions are correct, but the log file
permissions are not.

-- 
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
mysql> SELECT * FROM users WHERE clue > 0;
Empty set (0.00sec)

[-- Attachment #2: Type: application/pgp-signature, Size: 186 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-09-18 16:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-30 22:03 svlogd and umask settings Vincent Danen
2006-09-01 17:49 ` Vincent Danen
2006-09-15 14:47   ` Gerrit Pape
2006-09-15 15:22     ` Vincent Danen
2006-09-16  9:51       ` Laurent Bercot
2006-09-16 17:20         ` Vincent Danen
2006-09-18 15:18       ` Christian Holtje
2006-09-18 16:06         ` Vincent Danen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).