Skip to contentSkip to conversation

audit without python?

DISCUSSION Jason 3 participants 6 messages Oct 25, 2011

lore
Share & tools
lore

Jason

author
#0 lore raw

Is it possible to compile and use audit without needing python? If so, how?

Jason

#1 lore raw
Quoted 2 lines · Jason

Is it possible to compile and use audit without needing python? If so, how?

I've never considered compiling without python because its so pervasive. You can't really have a functioning system without it inless its an appliance. And would you want an appliance doing compiles?

You can certainly separate it out after compile in the packaging portion so that installing it doesn't drag python in. I suppose the configure and Makefiles can be fixed so it does not make python bindings.

-Steve

#2 lore raw

I've hacked together the Makefiles so that audisp does not compile with Python, but I wouldn't necessarily advise it. My reasons were primarily to enable audisp to be compiled under Android with limited functionality (only the AF_Unix socket available).

Cheers,
Nathaniel

Quoted 19 lines · Steve Grubb
Quoted 2 lines · Jason

Is it possible to compile and use audit without needing python?  If so, how?

I've never considered compiling without python because its so pervasive. You can't really have a functioning system without it inless its an appliance. And would you want an appliance doing compiles?

You can certainly separate it out after compile in the packaging portion so that installing it doesn't drag python in. I suppose the configure and Makefiles can be fixed so it does not make python bindings.

-Steve

--
Linux-audit mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-audit

author
#3 lore raw
In reply to Steve Grubb

Thanks for your reply Steve. Our plan then is to install python on our development platform and compile audit with python support so we don't have to hack Makefiles. Then we will install audit on our network appliance which does not have python. Do you foresee any issues with doing it this way? What functionality do we lose by not including python?

Jason

Quoted 13 lines · Steve Grubb
Quoted 2 lines · Jason

Is it possible to compile and use audit without needing python? If so, how?

I've never considered compiling without python because its so pervasive. You can't really have a functioning system without it inless its an appliance. And would you want an appliance doing compiles?

You can certainly separate it out after compile in the packaging portion so that installing it doesn't drag python in. I suppose the configure and Makefiles can be fixed so it does not make python bindings.

-Steve

#4 lore raw
Quoted 3 lines · Jason

Thanks for your reply Steve. Our plan then is to install python on our development platform and compile audit with python support so we don't have to hack Makefiles.

I almost am done with hacking the makefiles. Just need to fix one thing in auparse/test and I'll put it in svn.

Quoted 2 lines

Then we will install audit on our network appliance which does not have python. Do you foresee any issues with doing it this way? What functionality do we lose by not

including python?

semanage, I think the selinux troubleshooter, and the audit log viewer are the only things I know of that uses the python bindings.

-Steve

#5 lore raw
Quoted 7 lines · Steve Grubb
Quoted 3 lines · Jason

Thanks for your reply Steve. Our plan then is to install python on our development platform and compile audit with python support so we don't have to hack Makefiles.

I almost am done with hacking the makefiles. Just need to fix one thing in auparse/test and I'll put it in svn.

This should do it:
https://fedorahosted.org/audit/changeset/592

Add --with-python=no to your configure line.

-Steve