On Saturday, February 09, 2013 04:18:51 PM Thiago Marcos P. Santos wrote:
> On Sat, Feb 9, 2013 at 1:43 AM, Paul Moore <[email protected]> wrote:
> > On Saturday, February 09, 2013 02:29:25 AM vi0oss wrote:
> >> http://en.wikipedia.org/wiki/Stdarg.h ->
> >> 
> >> "providing variadic API functions without also providing equivalent
> >> functions accepting va_list instead is considered a bad programming
> >> practice."
> >> 
> >> 
> >> Now thinking whether to stack "if(count==N) seccomp_rule_add(cxt, ac,
> >> sy, arg[0], ..., argv[N-1])" lines or to just workaround API and hack up
> >> _seccomp_rule_add to be available for me...
> >> 
> >> (writing a simple command-line libseccomp tool: syscall_limiter)
> > 
> > I generally stick to the policy of if you don't have a use for it, don't
> > include it; especially when it comes to "forever" things like APIs.
> > Personally I haven't had a need for a va_list version of the API so I've
> > spent my time working on other things which I do need.
> > 
> > I'll add your request to the todo list pile, but if it is important to you
> > and you want to see it added to the library quickly I would encourage you
> > to send a patch ...
> 
> I submitted a patch for this last year:
> http://sourceforge.net/mailarchive/message.php?msg_id=29625574
> 
> At the time I suggested the function name to be vseccomp_rule_add
> (inspired by printf and vprintf). I would do it differently today,
> maybe calling it seccomp_rule_vadd().

Thanks for the pointer/reminder.  I vaguely remembered you posting a patch for 
this but all I remembered was that I was waiting on a follow-up patch from 
you, I couldn't remember much of what we discussed.

Vitaly, please check out the link posted above; I'm still leaning towards 
passing a struct array as opposed to valist.

-- 
paul moore
security and virtualization @ redhat


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to