Lines Matching refs:args
102 args = parser.parse_args() variable
104 if not args.tertypes and not args.mlsrtypes and not args.rbacrtypes:
107 if args.debug:
110 elif args.verbose:
116 p = setools.SELinuxPolicy(args.policy)
118 if args.tertypes:
120 ruletype=args.tertypes,
121 source=args.source,
122 source_indirect=args.source_indirect,
123 source_regex=args.source_regex,
124 target=args.target,
125 target_indirect=args.target_indirect,
126 target_regex=args.target_regex,
127 tclass_regex=args.tclass_regex,
128 perms_equal=args.perms_equal,
129 default=args.default,
130 default_regex=args.default_regex,
131 boolean_regex=args.boolean_regex,
132 boolean_equal=args.boolean_equal)
136 if args.tclass:
137 if args.tclass_regex:
138 q.tclass = args.tclass
140 q.tclass = args.tclass.split(",")
142 if args.perms:
143 q.perms = args.perms.split(",")
145 if args.boolean:
146 if args.boolean_regex:
147 q.boolean = args.boolean
149 q.boolean = args.boolean.split(",")
154 if args.rbacrtypes:
156 ruletype=args.rbacrtypes,
157 source=args.source,
158 source_indirect=args.source_indirect,
159 source_regex=args.source_regex,
160 target=args.target,
161 target_indirect=args.target_indirect,
162 target_regex=args.target_regex,
163 default=args.default,
164 default_regex=args.default_regex,
165 tclass_regex=args.tclass_regex)
169 if args.tclass:
170 if args.tclass_regex:
171 q.tclass = args.tclass
173 q.tclass = args.tclass.split(",")
178 if args.mlsrtypes:
180 ruletype=args.mlsrtypes,
181 source=args.source,
182 source_regex=args.source_regex,
183 target=args.target,
184 target_regex=args.target_regex,
185 tclass_regex=args.tclass_regex,
186 default=args.default)
190 if args.tclass:
191 if args.tclass_regex:
192 q.tclass = args.tclass
194 q.tclass = args.tclass.split(",")
200 if args.debug: