From: Daniel Hokka Zakrisson Date: Tue, 18 Nov 2008 16:19:13 +0000 (+0000) Subject: Add VLIMIT_OPENFD limit, and change the min_role_id to admin (as the comment says). X-Git-Tag: MyPLC-4.3-2~16 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1ca5a55fcab0581e10c647130884abcd458925cf;p=myplc.git Add VLIMIT_OPENFD limit, and change the min_role_id to admin (as the comment says). --- diff --git a/db-config b/db-config index c91bc58..0457887 100755 --- a/db-config +++ b/db-config @@ -262,8 +262,8 @@ def main(): ] # add in the platform supported rlimits to the default_attribute_types - for entry in resource.__dict__.keys(): - if entry.find("RLIMIT_")==0: + for entry in resource.__dict__.keys() + ["VLIMIT_OPENFD"]: + if entry.find("LIMIT_")==1: rlim = entry[len("RLIMIT_"):] rlim = rlim.lower() for ty in ("min","soft","hard"): @@ -271,7 +271,7 @@ def main(): 'tagname': "%s_%s"%(rlim,ty), 'description': "Per sliver RLIMIT %s_%s."%(rlim,ty), 'category': 'slice/limit', - 'min_role_id': 40 #admin + 'min_role_id': 10 #admin } default_attribute_types.append(attribute)