# HG changeset patch # User Vladimir Marek # Date 1475564626 -7200 # Node ID b5ccd506d4ab4867ca2b8f8b4e30a1962ec02f0d # Parent d80040c62de5a7b992282cd8ea3a035058b72f08 23002702 rsyslogd $FileGroup directive broken due to restrictive privilege in start metho diff -r d80040c62de5 -r b5ccd506d4ab components/rsyslog/Makefile --- a/components/rsyslog/Makefile Thu Sep 22 14:47:13 2016 +0200 +++ b/components/rsyslog/Makefile Tue Oct 04 09:03:46 2016 +0200 @@ -18,7 +18,7 @@ # # CDDL HEADER END # -# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. # include ../../make-rules/shared-macros.mk @@ -85,6 +85,10 @@ # /usr/lib/rsyslog . CONFIGURE_LIBDIR.64 = $(CONFIGURE_LIBDIR.32) +# Rsyslog sources contain __FILE__ macros which contain full path to the workspace +# This may appear in debug output which is not nice. By specifying the source +# path relative we force the macro to be relative path too. +CONFIGURE_OPTIONS += --srcdir=../../$(COMPONENT_NAME)-$(COMPONENT_VERSION) CONFIGURE_OPTIONS += --enable-imsolaris CONFIGURE_OPTIONS += --enable-mail CONFIGURE_OPTIONS += --enable-gssapi_krb5 diff -r d80040c62de5 -r b5ccd506d4ab components/rsyslog/TESTING --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/rsyslog/TESTING Tue Oct 04 09:03:46 2016 +0200 @@ -0,0 +1,30 @@ +# check version +/usr/lib/rsyslog/rsyslogd -v + + + +# test that rsyslog does not contain our workspace path but rather relative paths +/usr/lib/rsyslog/rsyslogd -d -n 2>&1 | grep ': source file' + + + +# Disable native syslog, enable rsyslog +svcadm disable system/system-log:default +sleep 5 +svcadm enable system/system-log:rsyslog +sleep 5 +svcs -x + + + +======================= to the end of /etc/rsyslog.conf ======================== +$FileGroup openldap +*.* /var/tmp/openldap +$ResetConfigVariables +================================================================================ +rm -f /var/tmp/openldap +svcadm restart system/system-log:rsyslog +logger -p error "openldap" +ls -l /var/tmp/openldap +-rw-r--r-- 1 root openldap 2873 Jun 22 10:36 /var/tmp/openldap +# Make sure that the new file has 'openldap' group diff -r d80040c62de5 -r b5ccd506d4ab components/rsyslog/files/rsyslog.xml --- a/components/rsyslog/files/rsyslog.xml Thu Sep 22 14:47:13 2016 +0200 +++ b/components/rsyslog/files/rsyslog.xml Tue Oct 04 09:03:46 2016 +0200 @@ -3,7 +3,7 @@