Re: [RFCv2] security: smack: add a hash table to quicken smk_find_entry()

2013-08-02 Thread Tomasz Stanislawski
On 08/02/2013 01:58 AM, Casey Schaufler wrote: > On 6/27/2013 2:11 PM, Casey Schaufler wrote: >> On 6/11/2013 5:55 AM, Tomasz Stanislawski wrote: >>> This patch adds a hash table to quicken searching of a smack label by its >>> name. >>> >>> Basically, the patch improves performance of SMACK initi

Re: [RFCv2] security: smack: add a hash table to quicken smk_find_entry()

2013-08-01 Thread Casey Schaufler
On 6/27/2013 2:11 PM, Casey Schaufler wrote: > On 6/11/2013 5:55 AM, Tomasz Stanislawski wrote: >> This patch adds a hash table to quicken searching of a smack label by its >> name. >> >> Basically, the patch improves performance of SMACK initialization. Parsing >> of >> rules involves translati

Re: [RFCv2] security: smack: add a hash table to quicken smk_find_entry()

2013-06-27 Thread Casey Schaufler
On 6/11/2013 5:55 AM, Tomasz Stanislawski wrote: > This patch adds a hash table to quicken searching of a smack label by its > name. > > Basically, the patch improves performance of SMACK initialization. Parsing of > rules involves translation from a string to a smack_known (aka label) entity > w

Re: [RFCv2] security: smack: add a hash table to quicken smk_find_entry()

2013-06-12 Thread Casey Schaufler
On 6/12/2013 6:40 AM, Tomasz Stanislawski wrote: > Hi Casey, > Thank you for your review. > Please refer to comments below. > > On 06/12/2013 07:11 AM, Casey Schaufler wrote: >> On 6/11/2013 5:55 AM, Tomasz Stanislawski wrote: >>> This patch adds a hash table to quicken searching of a smack label b

Re: [RFCv2] security: smack: add a hash table to quicken smk_find_entry()

2013-06-12 Thread Tomasz Stanislawski
Hi Casey, Thank you for your review. Please refer to comments below. On 06/12/2013 07:11 AM, Casey Schaufler wrote: > On 6/11/2013 5:55 AM, Tomasz Stanislawski wrote: >> This patch adds a hash table to quicken searching of a smack label by its >> name. >> >> Basically, the patch improves performa

Re: [RFCv2] security: smack: add a hash table to quicken smk_find_entry()

2013-06-11 Thread Casey Schaufler
On 6/11/2013 5:55 AM, Tomasz Stanislawski wrote: > This patch adds a hash table to quicken searching of a smack label by its > name. > > Basically, the patch improves performance of SMACK initialization. Parsing of > rules involves translation from a string to a smack_known (aka label) entity > w

[RFCv2] security: smack: add a hash table to quicken smk_find_entry()

2013-06-11 Thread Tomasz Stanislawski
Hi everyone, I have updated the patch after Casey's review. The fixes from the recent version are: - update naming according to Casey's guidelines - fix coding style issues - use hlist interface instead of double-linked list to reduce memory usage and to speed-up initialization - drop Dan Bernste

[RFCv2] security: smack: add a hash table to quicken smk_find_entry()

2013-06-11 Thread Tomasz Stanislawski
This patch adds a hash table to quicken searching of a smack label by its name. Basically, the patch improves performance of SMACK initialization. Parsing of rules involves translation from a string to a smack_known (aka label) entity which is done in smk_find_entry(). The current implementation