From 31231895a5d2f30a7ba879c9fafce97a893e0053 Mon Sep 17 00:00:00 2001 From: Will Jordan Date: Wed, 8 Jan 2020 09:55:12 -0800 Subject: [PATCH] Add 00rsyslog.conf to systemd packages Override systemd's default tmpfiles.d/var.conf to make /var/log writable by the syslog group, so that rsyslog can run as user. Fixes #61. --- rsyslog/artful/master/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/artful/master/debian/rsyslog.install | 1 + rsyslog/artful/v8-stable/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/artful/v8-stable/debian/rsyslog.install | 1 + rsyslog/bionic/master/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/bionic/master/debian/rsyslog.install | 1 + rsyslog/bionic/v8-stable/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/bionic/v8-stable/debian/rsyslog.install | 1 + rsyslog/cosmic/master/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/cosmic/master/debian/rsyslog.install | 1 + rsyslog/cosmic/v8-stable/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/cosmic/v8-stable/debian/rsyslog.install | 1 + rsyslog/disco/master/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/disco/master/debian/rsyslog.install | 1 + rsyslog/disco/v8-stable/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/disco/v8-stable/debian/rsyslog.install | 1 + rsyslog/eoan/master/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/eoan/master/debian/rsyslog.install | 1 + rsyslog/eoan/v8-stable/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/eoan/v8-stable/debian/rsyslog.install | 1 + rsyslog/xenial/master/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/xenial/master/debian/rsyslog.install | 1 + rsyslog/xenial/v8-stable/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/xenial/v8-stable/debian/rsyslog.install | 1 + rsyslog/yakkety/master/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/yakkety/master/debian/rsyslog.install | 1 + rsyslog/yakkety/v8-stable/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/yakkety/v8-stable/debian/rsyslog.install | 1 + rsyslog/zesty/master/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/zesty/master/debian/rsyslog.install | 1 + rsyslog/zesty/v8-stable/debian/00rsyslog.conf | 12 ++++++++++++ rsyslog/zesty/v8-stable/debian/rsyslog.install | 1 + 32 files changed, 208 insertions(+) create mode 100644 rsyslog/artful/master/debian/00rsyslog.conf create mode 100644 rsyslog/artful/v8-stable/debian/00rsyslog.conf create mode 100644 rsyslog/bionic/master/debian/00rsyslog.conf create mode 100644 rsyslog/bionic/v8-stable/debian/00rsyslog.conf create mode 100644 rsyslog/cosmic/master/debian/00rsyslog.conf create mode 100644 rsyslog/cosmic/v8-stable/debian/00rsyslog.conf create mode 100644 rsyslog/disco/master/debian/00rsyslog.conf create mode 100644 rsyslog/disco/v8-stable/debian/00rsyslog.conf create mode 100644 rsyslog/eoan/master/debian/00rsyslog.conf create mode 100644 rsyslog/eoan/v8-stable/debian/00rsyslog.conf create mode 100644 rsyslog/xenial/master/debian/00rsyslog.conf create mode 100644 rsyslog/xenial/v8-stable/debian/00rsyslog.conf create mode 100644 rsyslog/yakkety/master/debian/00rsyslog.conf create mode 100644 rsyslog/yakkety/v8-stable/debian/00rsyslog.conf create mode 100644 rsyslog/zesty/master/debian/00rsyslog.conf create mode 100644 rsyslog/zesty/v8-stable/debian/00rsyslog.conf diff --git a/rsyslog/artful/master/debian/00rsyslog.conf b/rsyslog/artful/master/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/artful/master/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/artful/master/debian/rsyslog.install b/rsyslog/artful/master/debian/rsyslog.install index b7745ac3..913b595a 100644 --- a/rsyslog/artful/master/debian/rsyslog.install +++ b/rsyslog/artful/master/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/artful/v8-stable/debian/00rsyslog.conf b/rsyslog/artful/v8-stable/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/artful/v8-stable/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/artful/v8-stable/debian/rsyslog.install b/rsyslog/artful/v8-stable/debian/rsyslog.install index b7745ac3..913b595a 100644 --- a/rsyslog/artful/v8-stable/debian/rsyslog.install +++ b/rsyslog/artful/v8-stable/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/bionic/master/debian/00rsyslog.conf b/rsyslog/bionic/master/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/bionic/master/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/bionic/master/debian/rsyslog.install b/rsyslog/bionic/master/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/bionic/master/debian/rsyslog.install +++ b/rsyslog/bionic/master/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/bionic/v8-stable/debian/00rsyslog.conf b/rsyslog/bionic/v8-stable/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/bionic/v8-stable/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/bionic/v8-stable/debian/rsyslog.install b/rsyslog/bionic/v8-stable/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/bionic/v8-stable/debian/rsyslog.install +++ b/rsyslog/bionic/v8-stable/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/cosmic/master/debian/00rsyslog.conf b/rsyslog/cosmic/master/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/cosmic/master/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/cosmic/master/debian/rsyslog.install b/rsyslog/cosmic/master/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/cosmic/master/debian/rsyslog.install +++ b/rsyslog/cosmic/master/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/cosmic/v8-stable/debian/00rsyslog.conf b/rsyslog/cosmic/v8-stable/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/cosmic/v8-stable/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/cosmic/v8-stable/debian/rsyslog.install b/rsyslog/cosmic/v8-stable/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/cosmic/v8-stable/debian/rsyslog.install +++ b/rsyslog/cosmic/v8-stable/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/disco/master/debian/00rsyslog.conf b/rsyslog/disco/master/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/disco/master/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/disco/master/debian/rsyslog.install b/rsyslog/disco/master/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/disco/master/debian/rsyslog.install +++ b/rsyslog/disco/master/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/disco/v8-stable/debian/00rsyslog.conf b/rsyslog/disco/v8-stable/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/disco/v8-stable/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/disco/v8-stable/debian/rsyslog.install b/rsyslog/disco/v8-stable/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/disco/v8-stable/debian/rsyslog.install +++ b/rsyslog/disco/v8-stable/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/eoan/master/debian/00rsyslog.conf b/rsyslog/eoan/master/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/eoan/master/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/eoan/master/debian/rsyslog.install b/rsyslog/eoan/master/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/eoan/master/debian/rsyslog.install +++ b/rsyslog/eoan/master/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/eoan/v8-stable/debian/00rsyslog.conf b/rsyslog/eoan/v8-stable/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/eoan/v8-stable/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/eoan/v8-stable/debian/rsyslog.install b/rsyslog/eoan/v8-stable/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/eoan/v8-stable/debian/rsyslog.install +++ b/rsyslog/eoan/v8-stable/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/xenial/master/debian/00rsyslog.conf b/rsyslog/xenial/master/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/xenial/master/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/xenial/master/debian/rsyslog.install b/rsyslog/xenial/master/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/xenial/master/debian/rsyslog.install +++ b/rsyslog/xenial/master/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/xenial/v8-stable/debian/00rsyslog.conf b/rsyslog/xenial/v8-stable/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/xenial/v8-stable/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/xenial/v8-stable/debian/rsyslog.install b/rsyslog/xenial/v8-stable/debian/rsyslog.install index 0bb9f5b2..367cd1d7 100644 --- a/rsyslog/xenial/v8-stable/debian/rsyslog.install +++ b/rsyslog/xenial/v8-stable/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/yakkety/master/debian/00rsyslog.conf b/rsyslog/yakkety/master/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/yakkety/master/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/yakkety/master/debian/rsyslog.install b/rsyslog/yakkety/master/debian/rsyslog.install index 1543d1f7..86e78c20 100644 --- a/rsyslog/yakkety/master/debian/rsyslog.install +++ b/rsyslog/yakkety/master/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/yakkety/v8-stable/debian/00rsyslog.conf b/rsyslog/yakkety/v8-stable/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/yakkety/v8-stable/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/yakkety/v8-stable/debian/rsyslog.install b/rsyslog/yakkety/v8-stable/debian/rsyslog.install index 1543d1f7..86e78c20 100644 --- a/rsyslog/yakkety/v8-stable/debian/rsyslog.install +++ b/rsyslog/yakkety/v8-stable/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/zesty/master/debian/00rsyslog.conf b/rsyslog/zesty/master/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/zesty/master/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/zesty/master/debian/rsyslog.install b/rsyslog/zesty/master/debian/rsyslog.install index 1543d1f7..86e78c20 100644 --- a/rsyslog/zesty/master/debian/rsyslog.install +++ b/rsyslog/zesty/master/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/ diff --git a/rsyslog/zesty/v8-stable/debian/00rsyslog.conf b/rsyslog/zesty/v8-stable/debian/00rsyslog.conf new file mode 100644 index 00000000..0eafde19 --- /dev/null +++ b/rsyslog/zesty/v8-stable/debian/00rsyslog.conf @@ -0,0 +1,12 @@ +# Override systemd's default tmpfiles.d/var.conf to make /var/log writable by +# the syslog group, so that rsyslog can run as user. +# See tmpfiles.d(5) for details. + +# Type Path Mode UID GID Age Argument +z /var/log 0775 root syslog - +z /var/log/auth.log 0640 syslog adm - +z /var/log/mail.err 0640 syslog adm - +z /var/log/mail.log 0640 syslog adm - +z /var/log/kern.log 0640 syslog adm - +z /var/log/syslog 0640 syslog adm - +d /var/spool/rsyslog 0700 syslog adm - diff --git a/rsyslog/zesty/v8-stable/debian/rsyslog.install b/rsyslog/zesty/v8-stable/debian/rsyslog.install index 1543d1f7..86e78c20 100644 --- a/rsyslog/zesty/v8-stable/debian/rsyslog.install +++ b/rsyslog/zesty/v8-stable/debian/rsyslog.install @@ -1,4 +1,5 @@ debian/rsyslog.conf /etc/ +debian/00rsyslog.conf usr/lib/tmpfiles.d/ debian/50-default.conf /usr/share/rsyslog debian/tmp/usr/sbin/ debian/tmp/usr/share/man/