Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-11-08 Thread Panu Matilainen

On 11/08/2012 08:35 AM, Reshetova, Elena wrote:

Hi,

Sorry for the late reply: I was on holidays.


No worries. Lucky you :)


Sure, go ahead with rpmlog and
indentation changes, if it doesn't bother you to do this!


Okay then, done and pushed. Now that I looked closer, I spotted (and 
fixed) a couple of more "issues": a tiny memleak from early 
rpmtsSetupTransactionPlugins() return and some further cosmetics (two 
soft-tabs instead of one hard-tab, trailing whitespace etc), but nothing 
dramatic.


Oh and one other thing I noticed just now that'll need further thought: 
currently the script setup hook only runs for external scripts, but not 
the embedded Lua-scripts. Which are getting more and more common... 
They'll obviously need to be handled quite differently as they run 
within the rpm process itself, ie fork() + exec() does not occur.



I will then start concentrating on rest of the stuff: need to do some more
thinking on it to begin with.


Cool. And thanks for all the work so far :)

- Panu -
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint


Re: [Rpm-maint] [PATCH 1/2] Extending rpm plugin interface, part 1

2012-11-08 Thread Reshetova, Elena
> Okay then, done and pushed. Now that I looked closer, I spotted (and
> fixed) a couple of more "issues": a tiny memleak from early
> rpmtsSetupTransactionPlugins() return and some further cosmetics (two
soft-tabs instead of one hard-tab, trailing whitespace etc), but nothing
dramatic.

Thank you!  I will seriously try to improve my style. I am not using vim for
code edits, but I think I should probably reconsider it or get some kind of
editor that shows all symbols explicitly. Pain to read but I get it right at
the end :)

>Oh and one other thing I noticed just now that'll need further thought: 
>currently the script setup hook only runs for external scripts, but not the
embedded Lua-scripts. Which are getting more and more common... 
>They'll obviously need to be handled quite differently as they run within
the rpm process itself, ie fork() + exec() does not occur.

Yes, I don't currently have a very good idea how this case should be
handled. The idea of script hook is that it sets the needed security
context, but we obviously can't do this for lua case unless we want to drop
the whole rpm security context. 
As a temporal and draconic measure we can compile rpm without lua support to
close this hole, but it is no-go in the future since it is getting more and
more usage. I guess this is one of the things that I need to think more
about.

> Cool. And thanks for all the work so far :)

I hope this is only the beginning, I am really interested in security part
of rpm!

Best Regards,
Elena.


smime.p7s
Description: S/MIME cryptographic signature
___
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint