Skip to content

Commit fa44382

Browse files
authored
systemd: disable tcp timestamps. (#110)
This setting allows to disable TCP timestamps disclosure on host. OS user can use 'sysctl net.ipv4.tcp_timestamps' command to check the setting. Signed-off-by: Unniche, BasavarajX <basavarajx.unniche@intel.com>
1 parent 4f3d019 commit fa44382

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

SPECS/systemd/99-tcp-timestamps.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# disable TCP timestamps option in the TCP header.
2+
# The value 0 disables timestamps and 1 enables timestamps.
3+
net.ipv4.tcp_timestamps = 0

SPECS/systemd/systemd.signatures.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"99-yama-ptrace.conf": "5a4876d61267e5748b4765923a8d169136fc5c161d7f363250dc24849c7cfe80",
1212
"99-net-core-bpf-jit-harden.conf": "5eb31e2e240cab5f57217be2e9460af2cb989d9e3fc4c7c7b50cbba536d8e7f2",
1313
"99-kernel.conf": "0ddcedb57a5ec3be92ffd6ea88b2fd4e1ab16e8fee0fda58727757c77ad688cb",
14+
"99-tcp-timestamps.conf": "698d35fe8117ffd8afb47a25aae9cc0cc7b3424c837c7eec27f77a9dea009972",
1415
"macros.sysusers": "b7c3941912208657b68a5890b8e320d626a6bc17290a223b46071e251b240160",
1516
"split-files.py": "ff2ace09f116028299f75ab1f81ca467a6dc4e7ad38c27c22d2e8dd1229ad0dd",
1617
"sysctl.conf.README": "51d16ee2e7eef12dd42e924af6b835861e8b79d11921ba0418d7d0aec7a2a93b",

SPECS/systemd/systemd.spec

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Version: 255
5050
# determine the build information from local checkout
5151
Version: %(tools/meson-vcs-tag.sh . error | sed -r 's/-([0-9])/.^\1/; s/-g/_g/')
5252
%endif
53-
Release: 27%{?dist}
53+
Release: 28%{?dist}
5454

5555
# FIXME - hardcode to 'stable' for now as that's what we have in our blobstore
5656
%global stable 1
@@ -109,6 +109,7 @@ Source27: 99-magic-sysrq.conf
109109
Source28: 99-yama-ptrace.conf
110110
Source29: 99-net-core-bpf-jit-harden.conf
111111
Source30: 99-kernel.conf
112+
Source31: 99-tcp-timestamps.conf
112113

113114
%if 0
114115
GIT_DIR=../../src/systemd/.git git format-patch-ab --no-signature -M -N v235..v235-stable
@@ -882,6 +883,9 @@ install -Dm0644 10-timeout-abort.conf.user %{buildroot}%{user_unit_dir}/service.
882883
# https://fedoraproject.org/wiki/Changes/IncreaseVmMaxMapCount
883884
install -Dm0644 -t %{buildroot}%{_prefix}/lib/sysctl.d/ %{SOURCE17}
884885

886+
# Install TCP timestamp setting
887+
install -Dm0644 -t %{buildroot}%{_prefix}/lib/sysctl.d/ %{SOURCE31}
888+
885889
%if 0%{?emt}
886890
install -Dm0644 -t %{buildroot}%{_prefix}/lib/sysctl.d/ %{SOURCE18}
887891
install -Dm0644 -t %{buildroot}%{_prefix}/lib/sysctl.d/ %{SOURCE26}
@@ -1233,6 +1237,9 @@ rm -f %{name}.lang
12331237
# %autochangelog. So we need to continue manually maintaining the
12341238
# changelog here.
12351239
%changelog
1240+
* Tue May 20 2025 Basavaraj unniche <basavarajx.unniche@intel.com> - 255-28
1241+
- Add kernel command to disable TCP timestamps.
1242+
12361243
* Fri Mar 07 2025 Ranjan Dutta <ranjan.dutta@intel.com> - 255-27
12371244
- Bump up the version on merge frm AZL tag 3.0.20250206-3.0
12381245
- adding patch for enhancing DNSSEC signature validation integrity

0 commit comments

Comments
 (0)