Comments (6)
Hi Didier, I was surprised to realize the man pages don't document return codes. They absolutely should do this, and I'll fix this in the next release. Until then, here's a quick summary of how things are intended to work:
-
The twadmin, twprint, and siggen commands return 0 on success, and 1 on any error.
-
In tripwire integrity check mode, the return code is a set of bits OR'd together to indicate the check result:
1: At least one file or directory was added.
2: At least one file or directory was removed.
4: At least one file or directory was modified.
8: At least one error occurred during the check.
So if an integrity check returns 0, it means the check ran successfully and no changes were observed. -
Other tripwire modes return 0 on success, and 8 on error, for consistency with IC mode.
Right now there might be an exception or two to these rules; I see one spot in core/msystem.cpp that would exit with -1, but it's right below a comment saying "should never happen ...", and I doubt anyone will bump into it in practice. I think I'll change this and any other exceptions I run across at the same time I update the man pages.
from tripwire-open-source.
thank you brian. Have you a date for the next release ?
from tripwire-open-source.
I don't have an exact date, but it will probably be sometime in December or January.
from tripwire-open-source.
I've added Exit Code sections to the man pages on this branch: https://github.com/Tripwire/tripwire-open-source/tree/dev/q1-2018 . I have some other documentation stuff to do there before it becomes a 2.4.3.7 release, but I hope to have that wrapped up in the near future.
from tripwire-open-source.
Resolved in 2.4.3.7
from tripwire-open-source.
Closing as resolved.
from tripwire-open-source.
Related Issues (20)
- Filename: /usr/local/etc/tw.cfg HOT 5
- Send report by mail HOT 3
- Tripwire Install in Kubernets
- Tripwire Install in Kubernetes HOT 3
- Linux Policy No file detected ...bug?? HOT 3
- Issue with ecryptfs? HOT 4
- Compilation with static libraries fails HOT 5
- Unable to run Tripwire HOT 2
- tripwire --update --accept-all fails with file not found HOT 7
- Tripwire build problem HOT 2
- Modern hash support? HOT 1
- tripwire double HOT 1
- Tripwire reporting multiple errors on system date change HOT 5
- Windows Compilation, HOT 2
- Segmentation fault on Ubuntu 20.10 HOT 25
- Unable to init in FIPS mode HOT 3
- util_SignalHandler could signpost use of RESOLVE_IDS_TO_NAMES=false
- How to filter filenames by pattern/regex
- Malformed Date header in mails depending on systems locale settings
- Thank you!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tripwire-open-source.