Skip to contentSkip to conversation

audit-viewer

DISCUSSION Miloslav Trmac 2 participants 3 messages Mar 2, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1241228806.180461236014459986.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com

#1 lore raw

Hello,

Quoted 7 lines · ----- "Dan Gruhn

I am getting this error when audit viewer starts:

# audit-viewer
Error reading audit events: No such file or directory.

Thinking that perhaps something is pointing to the wrong files, I attempted to use Window/Change event source.. . Then I get this:

<snip>

Quoted 5 lines

File "/usr/local/share/audit-viewer/source_dialog.py", line 161, in

__source_log_with_rotated_toggled
self.source_log.set_active_iter(it)
TypeError: iter should be a GtkTreeIter

This crash is a bug in audit-viewer, I'll fix it for the next release.

I'm not 100% sure, but I think the problem is caused by the fact that audit-viewer searches for audit logs in the --prefix subtree (as specified by configure). You can verify the used path by running (strings /your/prefix/libexec/audit-viewer-server-real |grep /log/audit); If it is not /var/log/audit, you'll need to rebuild audit-viewer, specifying --localstatedir=/var .

I'll document the necessity to use --localstatedir.

Thank you,
Mirek

#2 lore raw

Greetings,

Quoted 12 lines · Miloslav Trmac

Hello,

Quoted 7 lines · ----- "Dan Gruhn

I am getting this error when audit viewer starts:

# audit-viewer
Error reading audit events: No such file or directory.

Thinking that perhaps something is pointing to the wrong files, I attempted to use Window/Change event source.. . Then I get this:

<snip>

Quoted 8 lines
Quoted 6 lines

File "/usr/local/share/audit-viewer/source_dialog.py", line 161, in

__source_log_with_rotated_toggled
self.source_log.set_active_iter(it)
TypeError: iter should be a GtkTreeIter

This crash is a bug in audit-viewer, I'll fix it for the next release.

I look forward to that.

Quoted 2 lines

I'm not 100% sure, but I think the problem is caused by the fact that audit-viewer searches for audit logs in the --prefix subtree (as specified by configure). You can verify the used path by running (strings /your/prefix/libexec/audit-viewer-server-real |grep /log/audit); If it is not /var/log/audit, you'll need to rebuild audit-viewer, specifying --localstatedir=/var .

You are right, the path was /usr/local/var/log/audit. Once I recompiled with this change everything seems to be working. Does this default of --prefix subree make sense in any situation? I ask because perhaps a default of /var would more often produce the correct result.

Quoted 5 lines

I'll document the necessity to use --localstatedir.

Thank you,
Mirek

Thank you for taking the time to lead me through all of this. I think I am on my way now.

Dan

#3 lore raw

Hello,

Quoted 4 lines · ----- "Dan Gruhn

You are right, the path was /usr/local/var/log/audit. Once I recompiled with this change everything seems to be working. Does this default of --prefix subree make sense in any situation? I ask because perhaps a default of /var would more often produce the correct result.

I personally use a different prefix for development and installation without root privileges - but I could of course use an extra option for that.

In general, I don't think overriding localstatedir in audit-viewer is worth it. It violates user's expectations about ./configure behavior, and autoconf doesn't offer a clean way to override it anyway. After all, most users should (eventually) rely on their distribution to package audit-viewer for them.
Mirek