Skip to content

Commit

Permalink
rsyslog conf in providers and adm group not in opensuse fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-N00B committed Jul 25, 2024
1 parent c7e8f31 commit 9deb3f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ uki-provider-image:
RUN apt-get update && apt-get install -y rsync

WORKDIR /
COPY overlay/files/etc/ /etc/
COPY +luet/luet /usr/bin/luet
COPY +kairos-agent/kairos-agent /usr/bin/kairos-agent
COPY --platform=linux/${ARCH} +trust-boot-unpack/ /trusted-boot
Expand Down Expand Up @@ -557,6 +558,7 @@ provider-image:
ARG BASE_K8S_VERSION=$K8S_VERSION-$K8S_DISTRIBUTION_TAG
END

COPY overlay/files/etc/ /etc/
COPY --platform=linux/${ARCH} +kairos-provider-image/ /
COPY +stylus-image/etc/kairos/branding /etc/kairos/branding
COPY +stylus-image/oem/stylus_config.yaml /etc/kairos/branding/stylus_config.yaml
Expand Down
2 changes: 0 additions & 2 deletions overlay/files/etc/rsyslog.d/49-stylus.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Running rsyslog as root.
# TODO: should this be done or change acceptance criteria to about audit log file permissions accordingly
$PrivDropToUser root
$PrivDropToGroup adm
# default config has $Umask 0022 set. That breaks any config related to masks and modes.
$Umask 0000

Expand All @@ -15,7 +14,6 @@ if ($syslogfacility-text == 'local7' and $syslogseverity-text == 'notice') then{
file="/var/log/stylus-audit.log"
FileCreateMode="0600"
fileowner="root"
fileGroup="adm"
template="ForwardFormat"
) & stop
}

0 comments on commit 9deb3f2

Please sign in to comment.