1.13. Excluding Files from the Database

Problem

You want to add some, but not all, files in a given directory to the Tripwire database.

Solution

Mark a directory hierarchy for inclusion:

/etc -> rule

Immediately after, mark some files to be excluded:

!/etc/not.me
!/etc/not.me.either

You can exclude a subdirectory too:

!/etc/dirname

Discussion

The exclamation mark (!) prevents the given file or subdirectory from being added to Tripwire’s database.

See Also

The Tripwire manual has detailed documentation on the policy file format.

Get Linux Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.