Something like the attached? On Wed, Jan 9, 2013 at 9:30 AM, Eric Paris <eparis@xxxxxxxxxxxxxx> wrote: > On Wed, Jan 9, 2013 at 7:03 AM, Ondrej Oprala <ooprala@xxxxxxxxxx> wrote: >> Thank you for the pointers, it helped me out a lot. I tested the patched >> libselinux with >> $cp -a dir1 dir2 >> and got an approx. 20% save in instruction count. The patch is attached. >> Thanks, > > Thanks! I'm working on it right now. You did the: > __selinux_once(once, init_procattr); > init_thread_destructor(); > Before variable declaration and you do not handle context==NULL, which > is how you clear the value. I'll fix both of those up and apply to > the devel tree. Thanks so much!
Attachment:
tmp.patch
Description: Binary data