git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5c61bd0
)
Add VLIMIT_OPENFD limit, and change the min_role_id to admin (as the comment says).
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Tue, 18 Nov 2008 16:15:27 +0000
(16:15 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Tue, 18 Nov 2008 16:15:27 +0000
(16:15 +0000)
db-config
patch
|
blob
|
history
diff --git
a/db-config
b/db-config
index
780bcf2
..
8bbad02
100755
(executable)
--- a/
db-config
+++ b/
db-config
@@
-530,15
+530,15
@@
def main():
]
# add in the platform supported rlimits to the default_attribute_types
]
# 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"):
attribute = {
rlim = entry[len("RLIMIT_"):]
rlim = rlim.lower()
for ty in ("min","soft","hard"):
attribute = {
- 'name': "%s_%s
'%(rlim,ty)"
,
+ 'name': "%s_%s
"%(rlim,ty)
,
'description': "Per sliver RLIMIT %s_%s."%(rlim,ty),
'description': "Per sliver RLIMIT %s_%s."%(rlim,ty),
- 'min_role_id':
4
0 #admin
+ 'min_role_id':
1
0 #admin
}
default_attribute_types.append(attribute)
}
default_attribute_types.append(attribute)