source: postlfs/security/tripwire.xml@ 2f00f964

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2f00f964 was 2f00f964, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Added openssl as a required depedency of tripwire.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5851 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY tripwire-download-http "http://prdownloads.sourceforge.net/tripwire/tripwire-&tripwire-version;-src.tar.bz2?download">
8 <!ENTITY tripwire-download-ftp " ">
9 <!ENTITY tripwire-md5sum "b371f79ac23cacc9ad40b1da76b4a0c4">
10 <!ENTITY tripwire-size "1.2 MB">
11 <!ENTITY tripwire-buildsize "37 MB">
12 <!ENTITY tripwire-time "1.6 SBU">
13]>
14
15<sect1 id="tripwire" xreflabel="Tripwire-&tripwire-version;">
16 <?dbhtml filename="tripwire.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">tripwire-&tripwire-version;.tar</keyword>
23 <keyword role="ftpdir">tripwire</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Tripwire-&tripwire-version;</title>
28
29 <indexterm zone="tripwire">
30 <primary sortas="a-Tripwire">Tripwire</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Tripwire</title>
35
36 <para>The <application>Tripwire</application> package contains programs
37 used to verify the integrity of the files on a given system.</para>
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&tripwire-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&tripwire-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &tripwire-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &tripwire-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &tripwire-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &tripwire-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>Required patch:
65 <ulink url="&patch-root;/tripwire-&tripwire-version;-gcc4_build_fixes-1.patch"/>
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Tripwire Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required"><xref linkend="openssl"/></para>
74
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">MTA (See <xref linkend="server-mail"/>)</para>
78
79 <para condition="html" role="usernotes">User Notes:
80 <ulink url="&blfs-wiki;/tripwire"/></para>
81
82 </sect2>
83
84 <sect2 role="installation">
85 <title>Installation of Tripwire</title>
86
87 <para>Compile <application>Tripwire</application> by running the following
88 commands:</para>
89
90<screen><userinput>ln -s contrib install &amp;&amp;
91patch -Np1 -i ../tripwire-&tripwire-version;-gcc4_build_fixes-1.patch &amp;&amp;
92sed -i -e 's@TWDB="${prefix}@TWDB="/var@' install/install.cfg &amp;&amp;
93./configure --prefix=/usr --sysconfdir=/etc/tripwire &amp;&amp;
94make</userinput></screen>
95
96 <warning><para>The default configuration is to use a local MTA. If
97 you don't have an MTA installed and have no wish to install
98 one, modify <filename>install/install.cfg</filename> to use an SMTP
99 server instead. Otherwise the install will fail.</para></warning>
100
101 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
102
103<screen role="root"><userinput>make install &amp;&amp;
104cp -v policy/*.txt /usr/share/doc/tripwire</userinput></screen>
105
106 </sect2>
107
108 <sect2 role="commands">
109 <title>Command Explanations</title>
110
111 <para><command>ln -s contrib install</command>: This command creates
112 a symbolic link in the build directory needed for installation.</para>
113
114 <para><command>sed -i -e 's@TWDB="${prefix}@TWDB="/var@'
115 install/install.cfg</command>: This command tells the package to install
116 the program database and reports in
117 <filename class="directory">/var/lib/tripwire</filename>.</para>
118
119 <para><command>make install</command>: This command creates the
120 <application>Tripwire</application> security keys as well as installing
121 the binaries. There are two keys: a site key and a local key which are
122 stored in <filename class="directory">/etc/tripwire/</filename>.</para>
123
124 <para><command>cp -v policy/*.txt /usr/share/doc/tripwire</command>: This
125 command installs the documentation.</para>
126
127 </sect2>
128
129 <sect2 role="configuration">
130 <title>Configuring Tripwire</title>
131
132 <sect3 id="tripwire-config">
133 <title>Config Files</title>
134
135 <para><filename>/etc/tripwire/*</filename></para>
136
137 <indexterm zone="tripwire tripwire-config">
138 <primary sortas="e-etc-tripwire">/etc/tripwire/*</primary>
139 </indexterm>
140
141 </sect3>
142
143 <sect3>
144 <title>Configuration Information</title>
145
146 <para><application>Tripwire</application> uses a policy file to
147 determine which files are integrity checked. The default policy
148 file (<filename>/etc/tripwire/twpol.txt</filename>) is for a
149 default Redhat installation and will need to be updated for your
150 system.</para>
151
152 <para>Policy files should be tailored to each individual distribution
153 and/or installation. Some custom policy files can be found below:</para>
154
155<literallayout><ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-all.txt"/>
156Checks integrity of all files
157<ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-lfs.txt"/>
158Custom policy file for Base LFS 3.0 system
159<ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-suse7.2.txt"/>
160Custom policy file for SuSE 7.2 system</literallayout>
161
162 <para>Download the custom policy file you'd like to try, copy it into
163 <filename class="directory">/etc/tripwire/</filename>, and use it instead
164 of <filename>twpol.txt</filename>. It is, however, recommended that you
165 make your own policy file. Get ideas from the examples above and read
166 <filename>/usr/share/doc/tripwire/policyguide.txt</filename> for
167 additional information. <filename>twpol.txt</filename> is a good policy
168 file for beginners as it will note any changes to the file system and can
169 even be used as an annoying way of keeping track of changes for
170 uninstallation of software.</para>
171
172 <para>After your policy file has been transferred to
173 <filename class="directory">/etc/tripwire/</filename> you may begin
174 the configuration steps (perform as the
175 <systemitem class='username'>root</systemitem>):</para>
176
177<screen role="root"><userinput>twadmin --create-polfile --site-keyfile /etc/tripwire/site.key \
178 /etc/tripwire/twpol.txt &amp;&amp;
179tripwire --init</userinput></screen>
180
181 </sect3>
182
183 <sect3>
184 <title>Usage Information</title>
185
186 <para>To use <application>Tripwire</application> after creating a policy
187 file to run a report, use the following command:</para>
188
189<screen role="root"><userinput>tripwire --check &gt; /etc/tripwire/report.txt</userinput></screen>
190
191 <para>View the output to check the integrity of your files. An automatic
192 integrity report can be produced by using a cron facility to schedule
193 the runs.</para>
194
195 <para>Please note that after you run an integrity check, you must
196 examine the report (or email) and then modify the
197 <application>Tripwire</application> database to reflect the changed
198 files on your system. This is so that <application>Tripwire</application>
199 will not continually notify you that files you intentionally changed are
200 a security violation. To do this you must first <command>ls -l
201 /var/lib/tripwire/report/</command> and note the name of the newest file
202 which starts with <filename>linux-</filename> and ends in
203 <filename>.twr</filename>. This encrypted file was created during the
204 last report creation and is needed to update the
205 <application>Tripwire</application> database of your system. Then, as the
206 <systemitem class='username'>root</systemitem> user, type
207 in the following command making the appropriate substitutions for
208 <replaceable>&lt;?&gt;</replaceable>:</para>
209
210<screen role="root"><userinput>tripwire --update -twrfile \
211 /var/lib/tripwire/report/linux-<replaceable>&lt;???????&gt;</replaceable>-<replaceable>&lt;??????&gt;</replaceable>.twr</userinput></screen>
212
213 <para>You will be placed into <application>vim</application> with a copy
214 of the report in front of you. If all the changes were good, then just
215 type <command>:x</command> and after entering your local key, the database
216 will be updated. If there are files which you still want to be warned
217 about, remove the 'x' before the filename in the report and type
218 <command>:x</command>.</para>
219
220
221 <para>A good summary of tripwire operations can be found at
222 <ulink url="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-tripwire.html"/>.</para>
223
224 </sect3>
225
226 <sect3>
227 <title>Changing the Policy File</title>
228
229 <para>If you are unhappy with your policy file and would like to modify
230 it or use a new one, modify the policy file and then execute the following
231 commands as the <systemitem class='username'>root</systemitem> user:</para>
232
233<screen role="root"><userinput>twadmin --create-polfile /etc/tripwire/twpol.txt &amp;&amp;
234tripwire --init</userinput></screen>
235
236 </sect3>
237
238 </sect2>
239
240 <sect2 role="content">
241 <title>Contents</title>
242
243 <segmentedlist>
244 <segtitle>Installed Programs</segtitle>
245 <segtitle>Installed Libraries</segtitle>
246 <segtitle>Installed Directories</segtitle>
247
248 <seglistitem>
249 <seg>siggen, tripwire, twadmin, and twprint.</seg>
250 <seg>None</seg>
251 <seg>/etc/tripwire, /usr/share/doc/tripwire, and /var/lib/tripwire</seg>
252 </seglistitem>
253 </segmentedlist>
254
255 <variablelist>
256 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
257 <?dbfo list-presentation="list"?>
258 <?dbhtml list-presentation="table"?>
259
260 <varlistentry id="siggen">
261 <term><command>siggen</command></term>
262 <listitem>
263 <para>is a signature gathering utility that displays
264 the hash function values for the specified files.</para>
265 <indexterm zone="tripwire siggen">
266 <primary sortas="b-siggen">siggen</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id='tripwire-program'>
272 <term><command>tripwire</command></term>
273 <listitem>
274 <para>is the main file integrity checking program.</para>
275 <indexterm zone="tripwire tripwire">
276 <primary sortas="b-tripwire">tripwire</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id='twadmin'>
282 <term><command>twadmin</command></term>
283 <listitem>
284 <para>administrative and utility tool used to perform
285 certain administrative functions related to
286 <application>Tripwire</application> files and configuration
287 options.</para>
288 <indexterm zone="tripwire twadmin">
289 <primary sortas="b-twadmin">twadmin</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id='twprint'>
295 <term><command>twprint</command></term>
296 <listitem>
297 <para>prints <application>Tripwire</application>
298 database and report files in clear text format.</para>
299 <indexterm zone="tripwire twprint">
300 <primary sortas="b-twprint">twprint</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 </variablelist>
306
307 </sect2>
308
309</sect1>
Note: See TracBrowser for help on using the repository browser.