Lines Matching refs:newcat
61 def chcat_user_add(newcat, users):
82 for i in newcat[1:]:
103 def chcat_add(orig, newcat, objects, login_ind):
104 if len(newcat) == 1:
108 return chcat_user_add(newcat, objects)
111 sensitivity = newcat[0]
112 cat = newcat[1]
141 def chcat_user_remove(newcat, users):
162 for i in newcat[1:]:
182 def chcat_remove(orig, newcat, objects, login_ind):
183 if len(newcat) == 1:
187 return chcat_user_remove(newcat, objects)
190 sensitivity = newcat[0]
191 cat = newcat[1]
227 def chcat_user_replace(newcat, users):
240 new_serange = "%s-%s:%s" % (serange[0], newcat[0], string.join(newcat[1:], ","))
255 def chcat_replace(newcat, objects, login_ind):
257 return chcat_user_replace(newcat, objects)
259 if len(newcat) == 1:
260 sensitivity = newcat[0]
261 cmd = 'chcon -l %s ' % newcat[0]
263 sensitivity = newcat[0]
264 cmd = 'chcon -l %s:%s' % (sensitivity, newcat[1])
265 for cat in newcat[2:]:
320 newcat = []
322 newcat.append("s0")
323 return newcat
336 if len(newcat) == 0:
337 newcat.append(tlist[0])
339 if newcat[0] != tlist[0]:
342 newcat.append(i)
343 return newcat