This commit was manufactured by cvs2svn to create branch
[linux-2.6.git] / kernel / ckrm / rbce / info.h
1 static char *info =
2     "1. Magic files\n"
3     "\t|--rbce_info - read only file detailing how to setup and use RBCE.\n\n"
4     "\t|--rbce_state - determines whether RBCE is currently active"
5         " or inactive.\n"
6     "\tWriting 1 (0) activates (deactivates) the CE. Reading the file\n"
7     "\treturns the current state.\n\n"
8     "\t|--rbce_tag - set tag of the given pid, syntax - \"pid tag\"\n\n"
9     "2. Rules subdirectory: Each rule of the RBCE is represented by a file in\n"
10     "/rcfs/ce/rules.\n\n"
11     "Following are the different attr/value pairs that can be specified.\n\n"
12     "Note: attr/value pairs must be separated by commas(,) with no space"
13     "between them\n\n"
14     "\t<*id> <OP> number      where   <OP>={>,<,=,!}\n"
15     "\t<*id>={uid,euid,gid,egid}\n\n"
16     "\tcmd=\"string\" // basename of the command\n\n"
17     "\tpath=\"/path/to/string\" // full pathname of the command\n\n"
18     "\targs=\"string\" // argv[1] - argv[argc] of command\n\n"
19     "\ttag=\"string\" // application tag of the task\n\n"
20     "\t[+,-]depend=rule_filename\n"
21     "\t\t\t// used to chain a rule's terms with existing rules\n"
22     "\t\t\t// to avoid respecifying the latter's rule terms.\n"
23     "\t\t\t// A rule's dependent rules are evaluated before \n"
24     "\t\t\t// its rule terms get evaluated.\n"
25     "\t\t\t//\n"
26     "\t\t\t// An optional + or - can precede the depend keyword.\n"
27     "\t\t\t// +depend adds a dependent rule to the tail of the\n"
28     "\t\t\t// current chain, -depend removes an existing \n"
29     "\t\t\t// dependent rule\n\n"
30     "\torder=number // order in which this rule is executed relative to\n"
31     "\t\t\t// other independent rules.\n"
32     "\t\t\t// rule with order 1 is checked first and so on.\n"
33     "\t\t\t// As soon as a rule matches, the class of that rule\n"
34     "\t\t\t// is returned to Core. So, order really matters.\n"
35     "\t\t\t// If no order is specified by the user, the next\n"
36     "\t\t\t// highest available order number is assigned to\n"
37     "\t\t\t// the rule.\n\n"
38     "\tclass=\"/rcfs/.../classname\" // target class of this rule.\n"
39     "\t\t\t// /rcfs all by itself indicates the\n"
40     "\t\t\t// systemwide default class\n\n"
41     "\tstate=number // 1 or 0, provides the ability to deactivate a\n"
42     "\t\t\t// specific rule, if needed.\n\n"
43     "\tipv4=\"string\"  // ipv4 address in dotted decimal and port\n"
44     "\t\t\t// e.g. \"127.0.0.1\\80\"\n"
45     "\t\t\t// e.g. \"*\\80\" for CE to match any address\n"
46     "\t\t\t// used in socket accept queue classes\n\n"
47     "\tipv6=\"string\" // ipv6 address in hex and port\n"
48     "\t\t\t// e.g. \"fe80::4567\\80\"\n"
49     "\t\t\t// e.g. \"*\\80\" for CE to match any address \n"
50     "\t\t\t// used in socket accept queue classes\n\n"
51     "\texample:\n"
52     "\techo \"uid=100,euid<200,class=/rcfs\" > /rcfs/ce/rules/rule1\n";