mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-22 04:08:31 +00:00
Slight refactor
This commit is contained in:
parent
957e319649
commit
9ebcefee00
@ -24,8 +24,19 @@
|
|||||||
#include <sepol/policydb/constraint.h>
|
#include <sepol/policydb/constraint.h>
|
||||||
|
|
||||||
void usage(char *arg0) {
|
void usage(char *arg0) {
|
||||||
fprintf(stderr, "%s -s <source type> -t <target type> -c <class> -p <perm> -P <policy file> -o <output file>\n", arg0);
|
fprintf(stderr, "%s -s <source type> -t <target type> -c <class> -p <perm_list> -P <policy file>\n", arg0);
|
||||||
fprintf(stderr, "%s -Z permissive_type -P <policy file> -o <output file>\n", arg0);
|
fprintf(stderr, "\tInject a rule\n\n");
|
||||||
|
fprintf(stderr, "%s -s <source type> -a <type_attribute> -P <policy file>\n", arg0);
|
||||||
|
fprintf(stderr, "\tAdd a type_attribute to a domain\n\n");
|
||||||
|
fprintf(stderr, "%s -Z <source type> -P <policy file>\n", arg0);
|
||||||
|
fprintf(stderr, "\tInject a permissive domain\n\n");
|
||||||
|
fprintf(stderr, "%s -z <source type> -P <policy file>\n", arg0);
|
||||||
|
fprintf(stderr, "\tInject a non-permissive domain\n\n");
|
||||||
|
fprintf(stderr, "%s -e -s <source type> -P <policy file>\n", arg0);
|
||||||
|
fprintf(stderr, "\tCheck if a SELinux type exists\n\n");
|
||||||
|
fprintf(stderr, "%s -e -c <class> -P <policy file>\n", arg0);
|
||||||
|
fprintf(stderr, "\tCheck if a SELinux class exists\n\n");
|
||||||
|
fprintf(stderr, "All options can add -o <output file> to output to another file\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user