Skip to contentSkip to conversation

auditctl exit code

DISCUSSION Stephen Quinney 2 participants 4 messages May 11, 2012 – May 15, 2012

lore
Share & tools
lore
#0 lore raw

I am using Linux Audit version 2.1.3 and I'm wondering if the following behaviour of auditctl is intentional. When I do a complete list of the current rules (with auditctl -l) I get an exit code of zero, as expected. When I do a list which is restricted to a particular key (auditctl -l -k foo) I get 255. It doesn't matter which of my keys I use and there are no error messages sent to stderr to indicate a problem. The auditctl manpage doesn't say what various exit values mean so I'm not sure what type of error is occurring.

Stephen Quinney

Signature · 2 lines
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
#1 lore raw
Quoted 2 lines · Stephen Quinney

I am using Linux Audit version 2.1.3 and I'm wondering if the following behaviour of auditctl is intentional.

No. I think its a bug in the code.

-Steve

Quoted 10 lines

When I do a complete
list of the current rules (with auditctl -l) I get an exit code of zero, as expected. When I do a list which is restricted to a particular key (auditctl -l -k foo) I get 255. It doesn't matter which of my keys I use and there are no error messages sent to stderr to indicate a problem. The auditctl manpage doesn't say what various exit values mean so I'm not sure what type of error is occurring.

Stephen Quinney

#2 lore raw
Quoted 5 lines · Steve Grubb
Quoted 2 lines · Stephen Quinney

I am using Linux Audit version 2.1.3 and I'm wondering if the following behaviour of auditctl is intentional.

No. I think its a bug in the code.

This should fix it:
https://fedorahosted.org/audit/changeset/694

-Steve

Quoted 7 lines
Quoted 7 lines

When I do a complete
list of the current rules (with auditctl -l) I get an exit code of zero, as expected. When I do a list which is restricted to a particular key (auditctl -l -k foo) I get 255. It doesn't matter which of my keys I use and there are no error messages sent to stderr to indicate a problem. The auditctl manpage doesn't say what various exit values mean so I'm not sure what type of error is occurring.

#3 lore raw
Quoted 13 lines · Steve Grubb
Quoted 12 lines · Steve Grubb
Quoted 10 lines · Stephen Quinney

I am using Linux Audit version 2.1.3 and I'm wondering if the following behaviour of auditctl is intentional.

When I do a complete
list of the current rules (with auditctl -l) I get an exit code of zero, as expected. When I do a list which is restricted to a particular key (auditctl -l -k foo) I get 255. It doesn't matter which of my keys I use and there are no error messages sent to stderr to indicate a problem. The auditctl manpage doesn't say what various exit values mean so I'm not sure what type of error is occurring.

Quoted 5 lines
Quoted 1 line

No. I think its a bug in the code.

This should fix it:
https://fedorahosted.org/audit/changeset/694

Thanks for the patch. I've just rebuilt the code with the patch applied and it now works correctly.

Cheers,

Stephen

Signature · 2 lines
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.