Linux-audit Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC: 2.6 patch] kernel/audit.c: remove unused exports
@ 2006-04-20 21:05 Adrian Bunk
  2006-04-20 21:25 ` Tony Jones
  2006-04-20 22:44 ` Steve Grubb
  0 siblings, 2 replies; 9+ messages in thread
From: Adrian Bunk @ 2006-04-20 21:05 UTC (permalink / raw)
  To: dwmw2; +Cc: linux-audit

This patch removes the following unused EXPORT_SYMBOL's:
- audit_log_start
- audit_log_end
- audit_log_format
- audit_log

Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.17-rc1-mm3-full/kernel/audit.c.old	2006-04-20 22:38:17.000000000 +0200
+++ linux-2.6.17-rc1-mm3-full/kernel/audit.c	2006-04-20 22:40:03.000000000 +0200
@@ -1092,7 +1092,3 @@
 	}
 }
 
-EXPORT_SYMBOL(audit_log_start);
-EXPORT_SYMBOL(audit_log_end);
-EXPORT_SYMBOL(audit_log_format);
-EXPORT_SYMBOL(audit_log);

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC: 2.6 patch] kernel/audit.c: remove unused exports
  2006-04-20 21:05 [RFC: 2.6 patch] kernel/audit.c: remove unused exports Adrian Bunk
@ 2006-04-20 21:25 ` Tony Jones
  2006-04-21  9:27   ` Adrian Bunk
  2006-04-20 22:44 ` Steve Grubb
  1 sibling, 1 reply; 9+ messages in thread
From: Tony Jones @ 2006-04-20 21:25 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-audit, dwmw2

On Thu, Apr 20, 2006 at 11:05:21PM +0200, Adrian Bunk wrote:
> This patch removes the following unused EXPORT_SYMBOL's:
> - audit_log_start
> - audit_log_end
> - audit_log_format
> - audit_log
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> 
> --- linux-2.6.17-rc1-mm3-full/kernel/audit.c.old	2006-04-20 22:38:17.000000000 +0200
> +++ linux-2.6.17-rc1-mm3-full/kernel/audit.c	2006-04-20 22:40:03.000000000 +0200
> @@ -1092,7 +1092,3 @@
>  	}
>  }
>  
> -EXPORT_SYMBOL(audit_log_start);
> -EXPORT_SYMBOL(audit_log_end);
> -EXPORT_SYMBOL(audit_log_format);
> -EXPORT_SYMBOL(audit_log);

It would seem useful to allow out of tree modules (even if they never have
a goal of submitting to become intree) to log audit data. No?  A reason to
prevent it seems utterly lost on me.

Tony

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC: 2.6 patch] kernel/audit.c: remove unused exports
  2006-04-20 21:05 [RFC: 2.6 patch] kernel/audit.c: remove unused exports Adrian Bunk
  2006-04-20 21:25 ` Tony Jones
@ 2006-04-20 22:44 ` Steve Grubb
  2006-04-20 22:48   ` David Woodhouse
  1 sibling, 1 reply; 9+ messages in thread
From: Steve Grubb @ 2006-04-20 22:44 UTC (permalink / raw)
  To: linux-audit; +Cc: dwmw2, Adrian Bunk

On Thursday 20 April 2006 17:05, Adrian Bunk wrote:
> This patch removes the following unused EXPORT_SYMBOL's:
> - audit_log_start
> - audit_log_end
> - audit_log_format
> - audit_log

These are to allow 3rd party security modules log to the audit system.

-Steve

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC: 2.6 patch] kernel/audit.c: remove unused exports
  2006-04-20 22:44 ` Steve Grubb
@ 2006-04-20 22:48   ` David Woodhouse
  0 siblings, 0 replies; 9+ messages in thread
From: David Woodhouse @ 2006-04-20 22:48 UTC (permalink / raw)
  To: Steve Grubb; +Cc: linux-audit, Adrian Bunk

On Thu, 2006-04-20 at 18:44 -0400, Steve Grubb wrote:
> These are to allow 3rd party security modules log to the audit system.

They should be EXPORT_SYMBOL_GPL though, at least.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC: 2.6 patch] kernel/audit.c: remove unused exports
  2006-04-20 21:25 ` Tony Jones
@ 2006-04-21  9:27   ` Adrian Bunk
  2006-04-21 13:10     ` Steve Grubb
  2006-04-21 17:24     ` Tony Jones
  0 siblings, 2 replies; 9+ messages in thread
From: Adrian Bunk @ 2006-04-21  9:27 UTC (permalink / raw)
  To: Tony Jones; +Cc: linux-audit, dwmw2

On Thu, Apr 20, 2006 at 02:25:19PM -0700, Tony Jones wrote:
> On Thu, Apr 20, 2006 at 11:05:21PM +0200, Adrian Bunk wrote:
> > This patch removes the following unused EXPORT_SYMBOL's:
> > - audit_log_start
> > - audit_log_end
> > - audit_log_format
> > - audit_log
> > 
> > Signed-off-by: Adrian Bunk <bunk@stusta.de>
> > 
> > --- linux-2.6.17-rc1-mm3-full/kernel/audit.c.old	2006-04-20 22:38:17.000000000 +0200
> > +++ linux-2.6.17-rc1-mm3-full/kernel/audit.c	2006-04-20 22:40:03.000000000 +0200
> > @@ -1092,7 +1092,3 @@
> >  	}
> >  }
> >  
> > -EXPORT_SYMBOL(audit_log_start);
> > -EXPORT_SYMBOL(audit_log_end);
> > -EXPORT_SYMBOL(audit_log_format);
> > -EXPORT_SYMBOL(audit_log);
> 
> It would seem useful to allow out of tree modules (even if they never have
> a goal of submitting to become intree) to log audit data. No?  A reason to
> prevent it seems utterly lost on me.

Out of tree modules without the goal of being submitted are not a good 
idea.

AppArmor/LSM is a good example what can happen if people don't submit 
their external modules for inclusion in the kernel.

> Tony

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC: 2.6 patch] kernel/audit.c: remove unused exports
  2006-04-21  9:27   ` Adrian Bunk
@ 2006-04-21 13:10     ` Steve Grubb
  2006-04-21 13:12       ` David Woodhouse
  2006-04-21 17:24     ` Tony Jones
  1 sibling, 1 reply; 9+ messages in thread
From: Steve Grubb @ 2006-04-21 13:10 UTC (permalink / raw)
  To: linux-audit; +Cc: dwmw2, Adrian Bunk

On Friday 21 April 2006 05:27, Adrian Bunk wrote:
> Out of tree modules without the goal of being submitted are not a good
> idea.

And what are people to do while developing modules that are not ready for 
inclusion? This is a generic API for use by anyone. If virus scanning or IDS  
companies need to use the API, shouldn't they be allowed to?

-Steve

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC: 2.6 patch] kernel/audit.c: remove unused exports
  2006-04-21 13:10     ` Steve Grubb
@ 2006-04-21 13:12       ` David Woodhouse
  0 siblings, 0 replies; 9+ messages in thread
From: David Woodhouse @ 2006-04-21 13:12 UTC (permalink / raw)
  To: Steve Grubb; +Cc: linux-audit, Adrian Bunk

On Fri, 2006-04-21 at 09:10 -0400, Steve Grubb wrote:
> And what are people to do while developing modules that are not ready for 
> inclusion? This is a generic API for use by anyone. If virus scanning or IDS  
> companies need to use the API, shouldn't they be allowed to?

Yes, but only if their code is GPL'd.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC: 2.6 patch] kernel/audit.c: remove unused exports
  2006-04-21  9:27   ` Adrian Bunk
  2006-04-21 13:10     ` Steve Grubb
@ 2006-04-21 17:24     ` Tony Jones
  2006-04-21 18:12       ` Adrian Bunk
  1 sibling, 1 reply; 9+ messages in thread
From: Tony Jones @ 2006-04-21 17:24 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-audit, dwmw2

On Fri, Apr 21, 2006 at 11:27:55AM +0200, Adrian Bunk wrote:
> > > -EXPORT_SYMBOL(audit_log_start);
> > > -EXPORT_SYMBOL(audit_log_end);
> > > -EXPORT_SYMBOL(audit_log_format);
> > > -EXPORT_SYMBOL(audit_log);
> > 
> > It would seem useful to allow out of tree modules (even if they never have
> > a goal of submitting to become intree) to log audit data. No?  A reason to
> > prevent it seems utterly lost on me.
> 
> Out of tree modules without the goal of being submitted are not a good 
> idea.

What a stupid comment (in general and expecially given the nature of the audit 
subsystem ). Sorry. 

Also, there are probably at present no intree users of audit other than 
compiled built-in. I'm guessing by your patch you believe built-in to be the 
only valid configuration mode for said users :-)

EXPORT_SYMBOL_GPL, sure.

> AppArmor/LSM is a good example what can happen if people don't submit 
> their external modules for inclusion in the kernel.

LOL. Thanks for the daily laugh.

Tony

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [RFC: 2.6 patch] kernel/audit.c: remove unused exports
  2006-04-21 17:24     ` Tony Jones
@ 2006-04-21 18:12       ` Adrian Bunk
  0 siblings, 0 replies; 9+ messages in thread
From: Adrian Bunk @ 2006-04-21 18:12 UTC (permalink / raw)
  To: Tony Jones; +Cc: linux-audit, dwmw2

On Fri, Apr 21, 2006 at 10:24:10AM -0700, Tony Jones wrote:
> On Fri, Apr 21, 2006 at 11:27:55AM +0200, Adrian Bunk wrote:
> > > > -EXPORT_SYMBOL(audit_log_start);
> > > > -EXPORT_SYMBOL(audit_log_end);
> > > > -EXPORT_SYMBOL(audit_log_format);
> > > > -EXPORT_SYMBOL(audit_log);
> > > 
> > > It would seem useful to allow out of tree modules (even if they never have
> > > a goal of submitting to become intree) to log audit data. No?  A reason to
> > > prevent it seems utterly lost on me.
> > 
> > Out of tree modules without the goal of being submitted are not a good 
> > idea.
> 
> What a stupid comment (in general and expecially given the nature of the audit 
> subsystem ). Sorry. 
> 
> Also, there are probably at present no intree users of audit other than 
> compiled built-in. I'm guessing by your patch you believe built-in to be the 
> only valid configuration mode for said users :-)
> 
> EXPORT_SYMBOL_GPL, sure.
>...

I don't have a fixed opinion about whether future in-kernel users of the 
audit subsystem could be modules.

Currently there are none, and if modular users get added at some point 
in the future re-exporting them will be trivial.

Until then, removing the exports simply makes the kernel image a bit 
smaller.

> Tony

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-04-21 18:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-20 21:05 [RFC: 2.6 patch] kernel/audit.c: remove unused exports Adrian Bunk
2006-04-20 21:25 ` Tony Jones
2006-04-21  9:27   ` Adrian Bunk
2006-04-21 13:10     ` Steve Grubb
2006-04-21 13:12       ` David Woodhouse
2006-04-21 17:24     ` Tony Jones
2006-04-21 18:12       ` Adrian Bunk
2006-04-20 22:44 ` Steve Grubb
2006-04-20 22:48   ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox