LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 01-06-2011, 03:16 PM   #1
alephan
Member
 
Registered: Dec 2010
Location: Bucharest
Distribution: ubuntu
Posts: 45

Rep: Reputation: 0
Question Enable AUDITSYSCALL


I have a tiny problem. I need to activate AUDITSYSCALL in kernel. Well everything seems ok. I see in menuconfig this:

depends on: ( CONFIG_AUDIT && ( CONFIG_X86 || CONFIG_PPC || CONFIG_PPC64 || CONFIG_S390 || CONFIG_IA64 || CONFIG_UML || CONFIG_SPARC64 || CONFIG_SUPERH )) && ( CONFIG_SECURITY_SELINUX )

And here is the problem. I want to CC (cross-compile) the kernel form arm and i don't see any CONFIG_ARM there in depends.

What can i do?
What if i activate X86 for ex and than compile for arm?
What does this AUDITSYSCALL does exactly?

THANKS A LOT! AND PLEASE HELP.
 
Old 01-09-2011, 01:15 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
There are some older posts stating that AUDIT is broken for some platforms and probably there was some reason not to include it. However, you may try if you really want. You'll need to find the dependency description and change it to add also arm: || CONFIG_ARM

However, DO NOT try to configure for X86 and compile for ARM. First, it will quite likely fail quite close to the beginning of the complication. Secondly, even if it passes somehow, it is unlikely to work. Configure for the platform you want to compile on.
 
Old 01-09-2011, 04:42 PM   #3
alephan
Member
 
Registered: Dec 2010
Location: Bucharest
Distribution: ubuntu
Posts: 45

Original Poster
Rep: Reputation: 0
Thanks a lot man. I tried to compile kernel after patching Kconfig to add || ARM and died with this "last message":

/home/mmes/builds/2011_01_06_with/build/linux/kernel/auditsc.c: In function 'audit_alloc':
/home/mmes/builds/2011_01_06_with/build/linux/kernel/auditsc.c:890: error: 'TIF_SYSCALL_AUDIT' undeclared (first use in this function)
/home/mmes/builds/2011_01_06_with/build/linux/kernel/auditsc.c:890: error: (Each undeclared identifier is reported only once
/home/mmes/builds/2011_01_06_with/build/linux/kernel/auditsc.c:890: error: for each function it appears in.)
make[6]: *** [kernel/auditsc.o] Error 1
make[5]: *** [kernel] Error 2
make[4]: *** [sub-make] Error 2
make[3]: *** [linux.compile] Error 2
make[2]: *** [linux.buildlogger] Error 2
make[1]: *** [linux.build] Error 2
make: *** [linux] Error 2

Do you know what this thing does?

Last edited by alephan; 01-10-2011 at 07:41 AM.
 
Old 01-19-2011, 09:02 AM   #4
djszapi
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by alephan View Post
Thanks a lot man. I tried to compile kernel after patching Kconfig to add || ARM and died with this "last message":

/home/mmes/builds/2011_01_06_with/build/linux/kernel/auditsc.c: In function 'audit_alloc':
/home/mmes/builds/2011_01_06_with/build/linux/kernel/auditsc.c:890: error: 'TIF_SYSCALL_AUDIT' undeclared (first use in this function)
/home/mmes/builds/2011_01_06_with/build/linux/kernel/auditsc.c:890: error: (Each undeclared identifier is reported only once
/home/mmes/builds/2011_01_06_with/build/linux/kernel/auditsc.c:890: error: for each function it appears in.)
make[6]: *** [kernel/auditsc.o] Error 1
make[5]: *** [kernel] Error 2
make[4]: *** [sub-make] Error 2
make[3]: *** [linux.compile] Error 2
make[2]: *** [linux.buildlogger] Error 2
make[1]: *** [linux.build] Error 2
make: *** [linux] Error 2

Do you know what this thing does?
Well, this value is not defined on the ARM architecture, one might do that asap ?
http://lxr.free-electrons.com/ident?i=TIF_SYSCALL_AUDIT
 
Old 01-19-2011, 10:38 AM   #5
alephan
Member
 
Registered: Dec 2010
Location: Bucharest
Distribution: ubuntu
Posts: 45

Original Poster
Rep: Reputation: 0
So this won't work in arm. This is my final conclusion.
 
Old 01-20-2011, 02:13 AM   #6
djszapi
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by alephan View Post
So this won't work in arm. This is my final conclusion.
I really hope it is bad conclusion, someone just needs to fix it as usual in the open source world. To be honest I would also like to use this feature on my Maemo, MeeGo ARM phone and that is why I realized topic...

It would be nice to figure it out really.
 
Old 05-01-2011, 02:26 PM   #7
alephan
Member
 
Registered: Dec 2010
Location: Bucharest
Distribution: ubuntu
Posts: 45

Original Poster
Rep: Reputation: 0
closed

Not supported on arm.
This can be closed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to recompile squid to enable -enable-storeio=coss ejinh Fedora 2 08-11-2010 04:15 AM
GD Enable vadivelphp Linux - Server 1 03-27-2009 10:20 AM
DHT should be Enable vidhyaprakash85 Linux - Networking 1 11-15-2008 06:36 PM
How do I enable DMA? ouellettesr Slackware 5 03-01-2007 10:36 AM
Can't enable 3D yzrider210 Linux - Hardware 24 12-29-2003 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration