Lines Matching refs:status
144 (status, slist) = semanage.semanage_seuser_list(sh)
145 if status < 0:
147 print "Query status (commit number): ", status
163 (status, ulist) = semanage.semanage_user_list(sh)
164 if status < 0:
166 print "Query status (commit number): ", status
180 (status, rlist) = semanage.semanage_user_get_roles(sh, user)
181 if status < 0:
192 (status, plist) = semanage.semanage_port_list(sh)
193 if status < 0:
195 print "Query status (commit number): ", status
220 (status, flist) = semanage.semanage_fcontext_list(sh)
221 if status < 0:
223 print "Query status (commit number): ", status
246 (status, ilist) = semanage.semanage_iface_list(sh)
247 if status < 0:
249 print "Query status (commit number): ", status
270 (status, blist) = semanage.semanage_bool_list(sh)
271 if status < 0:
273 print "Query status (commit number): ", status
289 (status, ablist) = semanage.semanage_bool_list_active(sh)
290 if status < 0:
292 print "Query status (commit number): ", status
308 (status, nlist) = semanage.semanage_node_list(sh)
309 if status < 0:
311 print "Query status (commit number): ", status
320 (status, addr) = semanage.semanage_node_get_addr(sh, node)
321 if status < 0: addr = ""
323 (status, mask) = semanage.semanage_node_get_mask(sh, node)
324 if status < 0: mask = ""
330 (status, con_str) = semanage.semanage_context_to_string(sh, con)
331 if status < 0: con_str = ""
339 (status, user) = semanage.semanage_user_create(sh)
340 if status < 0:
344 status = semanage.semanage_user_set_name(sh,user, "testPyUser")
345 if status < 0:
349 status = semanage.semanage_user_add_role(sh, user, "user_r")
350 if status < 0:
353 status = semanage.semanage_user_set_prefix(sh,user, "user")
354 if status < 0:
358 status = semanage.semanage_user_set_mlsrange(sh, user, "s0")
359 if status < 0:
363 status = semanage.semanage_user_set_mlslevel(sh, user, "s0")
364 if status < 0:
368 (status,key) = semanage.semanage_user_key_extract(sh,user)
369 if status < 0:
373 (status,exists) = semanage.semanage_user_exists_local(sh,key)
374 if status < 0:
376 if self.verbose: print "Exists status (commit number): ", status
379 (status, old_user) = semanage.semanage_user_query_local(sh, key)
380 if status < 0:
382 if self.verbose: print "Query status (commit number): ", status
385 status = semanage.semanage_begin_transaction(sh)
386 if status < 0:
389 status = semanage.semanage_user_modify_local(sh,key,user)
390 if status < 0:
393 status = semanage.semanage_commit(sh)
394 if status < 0:
396 print "Commit status (transaction number): ", status
398 status = semanage.semanage_begin_transaction(sh)
399 if status < 0:
404 status = semanage.semanage_user_del_local(sh, key)
405 if status < 0:
407 if self.verbose: print "User delete: ", status
410 status = semanage.semanage_user_modify_local(sh, key, old_user)
411 if status < 0:
413 if self.verbose: print "User modify: ", status
415 status = semanage.semanage_commit(sh)
416 if status < 0:
418 print "Commit status (transaction number): ", status
427 (status, seuser) = semanage.semanage_seuser_create(sh)
428 if status < 0:
432 status = semanage.semanage_seuser_set_name(sh,seuser, "testPySEUser")
433 if status < 0:
437 status = semanage.semanage_seuser_set_sename(sh, seuser, "root")
438 if status < 0:
442 status = semanage.semanage_seuser_set_mlsrange(sh, seuser, "s0:c0.c255")
443 if status < 0:
447 (status,key) = semanage.semanage_seuser_key_extract(sh,seuser)
448 if status < 0:
452 (status,exists) = semanage.semanage_seuser_exists_local(sh,key)
453 if status < 0:
455 if self.verbose: print "Exists status (commit number): ", status
458 (status, old_seuser) = semanage.semanage_seuser_query_local(sh, key)
459 if status < 0:
461 if self.verbose: print "Query status (commit number): ", status
464 status = semanage.semanage_begin_transaction(sh)
465 if status < 0:
468 status = semanage.semanage_seuser_modify_local(sh,key,seuser)
469 if status < 0:
472 status = semanage.semanage_commit(sh)
473 if status < 0:
475 print "Commit status (transaction number): ", status
477 status = semanage.semanage_begin_transaction(sh)
478 if status < 0:
483 status = semanage.semanage_seuser_del_local(sh, key)
484 if status < 0:
486 if self.verbose: print "Seuser delete: ", status
489 status = semanage.semanage_seuser_modify_local(sh, key, old_seuser)
490 if status < 0:
492 if self.verbose: print "Seuser modify: ", status
494 status = semanage.semanage_commit(sh)
495 if status < 0:
497 print "Commit status (transaction number): ", status
506 (status, port) = semanage.semanage_port_create(sh)
507 if status < 0:
520 (status, con) = semanage.semanage_context_create(sh)
521 if status < 0:
525 status = semanage.semanage_context_set_user(sh, con, "system_u")
526 if status < 0:
530 status = semanage.semanage_context_set_role(sh, con, "object_r")
531 if status < 0:
535 status = semanage.semanage_context_set_type(sh, con, "http_port_t")
536 if status < 0:
540 status = semanage.semanage_context_set_mls(sh, con, "s0:c0.c255")
541 if status < 0:
545 status = semanage.semanage_port_set_con(sh, port, con)
546 if status < 0:
550 (status,key) = semanage.semanage_port_key_extract(sh,port)
551 if status < 0:
555 (status,exists) = semanage.semanage_port_exists_local(sh,key)
556 if status < 0:
558 if self.verbose: print "Exists status (commit number): ", status
561 (status, old_port) = semanage.semanage_port_query_local(sh, key)
562 if status < 0:
564 if self.verbose: print "Query status (commit number): ", status
567 status = semanage.semanage_begin_transaction(sh)
568 if status < 0:
571 status = semanage.semanage_port_modify_local(sh,key,port)
572 if status < 0:
575 status = semanage.semanage_commit(sh)
576 if status < 0:
578 print "Commit status (transaction number): ", status
580 status = semanage.semanage_begin_transaction(sh)
581 if status < 0:
586 status = semanage.semanage_port_del_local(sh, key)
587 if status < 0:
589 if self.verbose: print "Port range delete: ", status
592 status = semanage.semanage_port_modify_local(sh, key, old_port)
593 if status < 0:
595 if self.verbose: print "Port range modify: ", status
597 status = semanage.semanage_commit(sh)
598 if status < 0:
600 print "Commit status (transaction number): ", status
610 (status, fcon) = semanage.semanage_fcontext_create(sh)
611 if status < 0:
615 status = semanage.semanage_fcontext_set_expr(sh, fcon, "/test/fcontext(/.*)?")
616 if status < 0:
625 (status, con) = semanage.semanage_context_create(sh)
626 if status < 0:
630 status = semanage.semanage_context_set_user(sh, con, "system_u")
631 if status < 0:
635 status = semanage.semanage_context_set_role(sh, con, "object_r")
636 if status < 0:
640 status = semanage.semanage_context_set_type(sh, con, "default_t")
641 if status < 0:
645 status = semanage.semanage_context_set_mls(sh, con, "s0:c0.c255")
646 if status < 0:
650 status = semanage.semanage_fcontext_set_con(sh, fcon, con)
651 if status < 0:
655 (status,key) = semanage.semanage_fcontext_key_extract(sh,fcon)
656 if status < 0:
660 (status,exists) = semanage.semanage_fcontext_exists_local(sh,key)
661 if status < 0:
664 if self.verbose: print "Exists status (commit number): ", status
666 (status, old_fcontext) = semanage.semanage_fcontext_query_local(sh, key)
667 if status < 0:
669 if self.verbose: print "Query status (commit number): ", status
672 status = semanage.semanage_begin_transaction(sh)
673 if status < 0:
676 status = semanage.semanage_fcontext_modify_local(sh,key,fcon)
677 if status < 0:
680 status = semanage.semanage_commit(sh)
681 if status < 0:
683 print "Commit status (transaction number): ", status
685 status = semanage.semanage_begin_transaction(sh)
686 if status < 0:
691 status = semanage.semanage_fcontext_del_local(sh, key)
692 if status < 0:
694 if self.verbose: print "File context delete: ", status
697 status = semanage.semanage_fcontext_modify_local(sh, key, old_fcontext)
698 if status < 0:
700 if self.verbose: print "File context modify: ", status
702 status = semanage.semanage_commit(sh)
703 if status < 0:
705 print "Commit status (transaction number): ", status
715 (status, iface) = semanage.semanage_iface_create(sh)
716 if status < 0:
720 status = semanage.semanage_iface_set_name(sh, iface, "test_iface")
721 if status < 0:
725 (status, con) = semanage.semanage_context_create(sh)
726 if status < 0:
730 status = semanage.semanage_context_set_user(sh, con, "system_u")
731 if status < 0:
735 status = semanage.semanage_context_set_role(sh, con, "object_r")
736 if status < 0:
740 status = semanage.semanage_context_set_type(sh, con, "default_t")
741 if status < 0:
745 status = semanage.semanage_context_set_mls(sh, con, "s0:c0.c255")
746 if status < 0:
750 status = semanage.semanage_iface_set_ifcon(sh, iface, con)
751 if status < 0:
755 status = semanage.semanage_iface_set_msgcon(sh, iface, con)
756 if status < 0:
760 (status,key) = semanage.semanage_iface_key_extract(sh,iface)
761 if status < 0:
765 (status,exists) = semanage.semanage_iface_exists_local(sh,key)
766 if status < 0:
768 if self.verbose: print "Exists status (commit number): ", status
771 (status, old_iface) = semanage.semanage_iface_query_local(sh, key)
772 if status < 0:
774 if self.verbose: print "Query status (commit number): ", status
777 status = semanage.semanage_begin_transaction(sh)
778 if status < 0:
781 status = semanage.semanage_iface_modify_local(sh,key,iface)
782 if status < 0:
785 status = semanage.semanage_commit(sh)
786 if status < 0:
788 print "Commit status (transaction number): ", status
790 status = semanage.semanage_begin_transaction(sh)
791 if status < 0:
796 status = semanage.semanage_iface_del_local(sh, key)
797 if status < 0:
799 if self.verbose: print "Interface delete: ", status
802 status = semanage.semanage_iface_modify_local(sh, key, old_iface)
803 if status < 0:
805 if self.verbose: print "Interface modify: ", status
807 status = semanage.semanage_commit(sh)
808 if status < 0:
810 print "Commit status (transaction number): ", status
820 (status, pbool) = semanage.semanage_bool_create(sh)
821 if status < 0:
825 status = semanage.semanage_bool_set_name(sh, pbool, "allow_execmem")
826 if status < 0:
833 (status,key) = semanage.semanage_bool_key_extract(sh, pbool)
834 if status < 0:
838 (status,exists) = semanage.semanage_bool_exists_local(sh,key)
839 if status < 0:
841 if self.verbose: print "Exists status (commit number): ", status
844 (status, old_bool) = semanage.semanage_bool_query_local(sh, key)
845 if status < 0:
847 if self.verbose: print "Query status (commit number): ", status
850 status = semanage.semanage_begin_transaction(sh)
851 if status < 0:
854 status = semanage.semanage_bool_modify_local(sh, key, pbool)
856 if status < 0:
859 status = semanage.semanage_commit(sh)
860 if status < 0:
862 print "Commit status (transaction number): ", status
864 status = semanage.semanage_begin_transaction(sh)
865 if status < 0:
870 status = semanage.semanage_bool_del_local(sh, key)
871 if status < 0:
873 if self.verbose: print "Boolean delete: ", status
876 status = semanage.semanage_bool_modify_local(sh, key, old_bool)
877 if status < 0:
879 if self.verbose: print "Boolean modify: ", status
881 status = semanage.semanage_commit(sh)
882 if status < 0:
884 print "Commit status (transaction number): ", status
893 (status, key) = semanage.semanage_bool_key_create(sh, "allow_execmem")
894 if status < 0:
898 (status, old_bool) = semanage.semanage_bool_query_active(sh, key)
899 if status < 0:
901 if self.verbose: print "Query status (commit number): ", status
903 (status, abool) = semanage.semanage_bool_create(sh)
904 if status < 0:
908 status = semanage.semanage_bool_set_name(sh, abool, "allow_execmem")
909 if status < 0:
917 status = semanage.semanage_begin_transaction(sh)
918 if status < 0:
921 status = semanage.semanage_bool_set_active(sh,key,abool)
922 if status < 0:
925 status = semanage.semanage_commit(sh)
926 if status < 0:
928 print "Commit status (transaction number): ", status
931 status = semanage.semanage_begin_transaction(sh)
932 if status < 0:
935 status = semanage.semanage_bool_set_active(sh, key,old_bool)
936 if status < 0:
938 if self.verbose: print "SEBool active reset: ", status
940 status = semanage.semanage_commit(sh)
941 if status < 0:
943 print "Commit status (transaction number): ", status
953 (status, node) = semanage.semanage_node_create(sh)
954 if status < 0:
958 status = semanage.semanage_node_set_addr(sh, node, semanage.SEMANAGE_PROTO_IP6, "ffee:dddd::bbbb")
959 if status < 0:
962 …status = semanage.semanage_node_set_mask(sh, node, semanage.SEMANAGE_PROTO_IP6, "::ffff:ffff:abcd:…
963 if status < 0:
970 (status, con) = semanage.semanage_context_create(sh)
971 if status < 0:
975 status = semanage.semanage_context_set_user(sh, con, "system_u")
976 if status < 0:
980 status = semanage.semanage_context_set_role(sh, con, "object_r")
981 if status < 0:
985 status = semanage.semanage_context_set_type(sh, con, "lo_node_t")
986 if status < 0:
990 status = semanage.semanage_context_set_mls(sh, con, "s0:c0.c255")
991 if status < 0:
995 status = semanage.semanage_node_set_con(sh, node, con)
996 if status < 0:
1000 (status,key) = semanage.semanage_node_key_extract(sh, node)
1001 if status < 0:
1005 (status,exists) = semanage.semanage_node_exists_local(sh,key)
1006 if status < 0:
1008 if self.verbose: print "Exists status (commit number): ", status
1011 (status, old_node) = semanage.semanage_node_query_local(sh, key)
1012 if status < 0:
1014 if self.verbose: print "Query status (commit number): ", status
1017 status = semanage.semanage_begin_transaction(sh)
1018 if status < 0:
1021 status = semanage.semanage_node_modify_local(sh,key, node)
1022 if status < 0:
1025 status = semanage.semanage_commit(sh)
1026 if status < 0:
1028 print "Commit status (transaction number): ", status
1030 status = semanage.semanage_begin_transaction(sh)
1031 if status < 0:
1036 status = semanage.semanage_node_del_local(sh, key)
1037 if status < 0:
1039 if self.verbose: print "Network node delete: ", status
1042 status = semanage.semanage_node_modify_local(sh, key, old_node)
1043 if status < 0:
1045 if self.verbose: print "Network node modify: ", status
1047 status = semanage.semanage_commit(sh)
1048 if status < 0:
1050 print "Commit status (transaction number): ", status
1118 status = semanage.semanage_connect(sh)
1119 if status < 0:
1124 status = semanage.semanage_disconnect(sh)
1125 if status < 0: