Skip to content

Commit

Permalink
Update tftp_uses_secure_mode_systemd based on feedback #12436
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Sep 30, 2024
1 parent 39646ef commit 3374111
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
documentation_complete: true

title: 'Ensure tftp Daemon Uses Secure Mode Using systemd'
title: 'Ensure tftp systemd Service Uses Secure Mode'

description: |-
If running the Trivial File Transfer Protocol (TFTP) service is necessary,
Expand All @@ -21,8 +21,13 @@ rationale: |-
severity: medium

ocil: |-
Use <tt>sudo systemctl edit tftp</tt> to adjust the <tt>ExecStart</tt> to
be <tt>/usr/sbin/in.tftpd -s {{{ xccdf_value("var_tftpd_secure_directory") }}}</tt>
Use <tt>udo systemctl show tftp</tt> to verify that tftp service is using secure mode.
<pre>$ sudo systemctl show tftp | grep ExecStart=
ExecStart={ path=/usr/sbin/in.tftpd ; argv[]=/usr/sbin/in.tftpd -s /var/lib/tftpboot ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }e
</pre>
and ensure the <tt>ExecStart</tt> line on that file includes the <tt>-s</tt> option with a subdirectory:
<pre>ExecStart=/usr/sbin/in.tftpd -s {{{ xccdf_value("var_tftpd_secure_directory") }}}</pre>
ocil_clause: 'the ExecStart property of tftp does not contain correctly set -s flag'
Expand All @@ -31,7 +36,8 @@ platform: package[tftp-server]

warnings:
- general: |-
A remedation is not currently available due limits of the checking engine.
An OVAL check is not currently available since <tt>ExecStart</tt> cannot be checked with OVAL since it is not exposed via dbus.
Currently, a remedation is not available for this rule.
identifiers:
Expand Down

0 comments on commit 3374111

Please sign in to comment.