[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47DA94CE.9090101@openvz.org>
Date: Fri, 14 Mar 2008 18:07:58 +0300
From: Pavel Emelyanov <xemul@...nvz.org>
To: "Serge E. Hallyn" <serue@...ibm.com>
CC: James Morris <jmorris@...ei.org>,
lkml <linux-kernel@...r.kernel.org>,
linux-security-module@...r.kernel.org, Greg KH <greg@...ah.com>,
Stephen Smalley <sds@...ch.ncsc.mil>,
Casey Schaufler <casey@...aufler-ca.com>
Subject: Re: [RFC] cgroups: implement device whitelist lsm (v2)
[snip]
>> The # of rules usually has a linear dependency on the number of containers
>> (each of then has to have an access to /dev/null,zero,random at least), so
>> having 100 containers we will have to scan through a 300-entries list.
>
> Oh no, the rules are stored per-container, so it sounds like you're
> saying 3 entries per container?
Oops :) I've missed that part :(
>> I'd
>> vote for a hash table or a radix/binary/rb tree for that. Or any other way
>> for non-linear search you can provide :)
>
> I'm fine with that, but not for 3 rules :)
So am I :) Anyway - if someday this will grow up to tens of entries turning
it into a more scalable lookup would be easy.
> -serge
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists