config-files/dmesg-config/centos/dmesg-config.spec
Carmen Rata 529e9f5a7d Fix permissions for dmesg logs
Updated /var/log/dmesg and /var/log/dmesg.old file
permissions to 600 from 644 in order to comply to
openscap rules security requirements.
Verified that installation is successful for AIO-SX
and Standard 2+2 system configurations.

Story: 2008037
Task: 40694

Change-Id: I2acb1bb0126d472193da674a95ac4559d1a1f9d4
Signed-off-by: Carmen Rata <carmen.rata@windriver.com>
2020-12-08 14:46:31 -05:00

31 lines
722 B
RPMSpec

Summary: StarlingX Dmesg Configuration File
Name: dmesg-config
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: config-files
Packager: StarlingX
URL: unknown
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
%define debug_package %{nil}
%description
StarlingX dmesg configuration file
%prep
%setup
%install
install -d -m 755 %{buildroot}%{_sysconfdir}/systemd/system/rhel-dmesg.service.d/
install -p -m 644 rhel-dmesg-stx-override.conf %{buildroot}%{_sysconfdir}/systemd/system/rhel-dmesg.service.d/
%files
%defattr(-,root,root)
%license LICENSE
%dir %{_sysconfdir}/systemd/system/rhel-dmesg.service.d
%{_sysconfdir}/systemd/system/rhel-dmesg.service.d/rhel-dmesg-stx-override.conf