Lines Matching full:seuser
12 -S for add seuser (warning this will write!)\n\
153 for seuser in slist:
154 if self.verbose: print "seseuser reference: ", seuser
155 print "seuser name: ", semanage.semanage_seuser_get_name(seuser)
156 print " seuser mls range: ", semanage.semanage_seuser_get_mlsrange(seuser)
157 print " seuser sename: ", semanage.semanage_seuser_get_sename(seuser)
158 semanage.semanage_seuser_free(seuser)
425 print "Testing seuser write..."
427 (status, seuser) = semanage.semanage_seuser_create(sh)
429 raise Error("Could not create SEUser object")
430 if self.verbose: print "SEUser object created."
432 status = semanage.semanage_seuser_set_name(sh,seuser, "testPySEUser")
435 if self.verbose: print "SEUser name set: ", semanage.semanage_seuser_get_name(seuser)
437 status = semanage.semanage_seuser_set_sename(sh, seuser, "root")
440 if self.verbose: print "SEUser seuser: ", semanage.semanage_seuser_get_sename(seuser)
442 status = semanage.semanage_seuser_set_mlsrange(sh, seuser, "s0:c0.c255")
445 if self.verbose: print "SEUser mlsrange: ", semanage.semanage_seuser_get_mlsrange(seuser)
447 (status,key) = semanage.semanage_seuser_key_extract(sh,seuser)
449 raise Error("Could not extract SEUser key")
450 if self.verbose: print "SEUser key extracted: ", key
454 raise Error("Could not check if SEUser exists")
460 raise Error("Could not query old SEUser")
468 status = semanage.semanage_seuser_modify_local(sh,key,seuser)
470 raise Error("Could not modify SEUser")
482 print "Removing seuser..."
485 raise Error("Could not delete test SEUser")
486 if self.verbose: print "Seuser delete: ", status
488 print "Resetting seuser..."
491 raise Error("Could not reset test SEUser")
492 if self.verbose: print "Seuser modify: ", status
500 semanage.semanage_seuser_free(seuser)