Re: [PATCH 1/3] Make cap default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi James,

On Tue, Jul 05, 2005 at 11:40:40AM -0400, James Morris wrote:
> On Tue, 5 Jul 2005, Kurt Garloff wrote:
> 
> > #  define COND_SECURITY(seop, def)			\
> > 	(security_opt->seop == NULL) ||			\
> > 	 security_ops == &capability_security_ops)?	\
> > 	 def: security_ops->seop
> 
> Why is this a macro and not a static inline?

Good question ...

The number and type of parameters is variable, so we can't 
easily do it with ONE static inline function.

seop is the function call including parameters, as is def.
Which means that the idea won't work the way I suggested in
the email. We'd need a three arg version, one for the security_ops
function name, one for the cap version and one for the arguments.

Best,
-- 
Kurt Garloff, Director SUSE Labs, Novell Inc.

Attachment: pgpFpl5eNYegb.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux