mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
You can now specifiy a host list instead of just a host or alias.
Ie: user = host1,host2,ALIAS,!host3 my_command now works.
This commit is contained in:
120
sudo.tab.c
120
sudo.tab.c
@@ -213,11 +213,11 @@ typedef union {
|
||||
#define YYERRCODE 256
|
||||
short yylhs[] = { -1,
|
||||
0, 0, 3, 3, 5, 3, 3, 3, 3, 3,
|
||||
6, 6, 11, 14, 15, 14, 12, 12, 12, 12,
|
||||
12, 12, 13, 13, 16, 2, 19, 2, 17, 17,
|
||||
20, 20, 21, 23, 21, 22, 22, 22, 22, 22,
|
||||
18, 18, 18, 1, 1, 1, 8, 8, 25, 24,
|
||||
26, 26, 9, 9, 28, 27, 29, 29, 10, 10,
|
||||
6, 6, 11, 14, 16, 14, 15, 15, 15, 15,
|
||||
15, 15, 13, 13, 17, 2, 20, 2, 18, 18,
|
||||
21, 21, 22, 24, 22, 23, 23, 23, 23, 23,
|
||||
19, 19, 19, 1, 1, 1, 8, 8, 26, 25,
|
||||
12, 12, 9, 9, 28, 27, 29, 29, 10, 10,
|
||||
31, 30, 7, 7, 33, 32, 34, 34, 35, 36,
|
||||
35, 4, 4, 4, 4, 4,
|
||||
};
|
||||
@@ -236,62 +236,62 @@ short yydefred[] = { 0,
|
||||
49, 0, 47, 55, 0, 53, 65, 0, 63, 61,
|
||||
0, 59, 2, 75, 74, 73, 72, 76, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 22, 18, 21,
|
||||
19, 20, 17, 0, 11, 0, 0, 48, 0, 54,
|
||||
0, 64, 0, 60, 0, 0, 15, 14, 51, 0,
|
||||
45, 46, 44, 27, 26, 57, 0, 70, 69, 0,
|
||||
67, 39, 38, 37, 36, 40, 34, 0, 31, 33,
|
||||
12, 0, 0, 23, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 42, 43, 0, 16, 52,
|
||||
19, 20, 17, 15, 0, 11, 0, 51, 14, 0,
|
||||
48, 0, 54, 0, 64, 0, 60, 0, 0, 0,
|
||||
0, 0, 45, 46, 44, 27, 26, 57, 0, 70,
|
||||
69, 0, 67, 39, 38, 37, 36, 40, 34, 0,
|
||||
31, 33, 16, 12, 0, 0, 23, 0, 52, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 42, 43, 0,
|
||||
28, 58, 71, 68, 35, 32, 24, 25,
|
||||
};
|
||||
short yydgoto[] = { 7,
|
||||
65, 66, 8, 69, 9, 44, 18, 12, 15, 21,
|
||||
45, 58, 83, 59, 86, 84, 85, 98, 88, 78,
|
||||
79, 80, 92, 13, 30, 60, 16, 32, 67, 22,
|
||||
36, 19, 34, 70, 71, 90,
|
||||
67, 68, 8, 71, 9, 45, 18, 12, 15, 21,
|
||||
46, 47, 86, 48, 49, 58, 87, 88, 100, 90,
|
||||
80, 81, 82, 94, 13, 30, 16, 32, 69, 22,
|
||||
36, 19, 34, 72, 73, 92,
|
||||
};
|
||||
short yysindex[] = { -250,
|
||||
-264, 0, -246, -234, -230, -215, -250, 0, -252, 0,
|
||||
0, -51, 0, 0, -12, 0, 0, -8, 0, 0,
|
||||
-5, 0, 0, 0, 0, 0, 0, 0, -221, -7,
|
||||
-246, -6, -234, -4, -230, -3, -215, 0, 0, 0,
|
||||
0, 0, 0, 2, 0, 3, -33, 0, -2, 0,
|
||||
-29, 0, -20, 0, -221, -207, 0, 0, 0, 17,
|
||||
0, 0, 0, 0, 0, 0, 19, 0, 0, 21,
|
||||
0, 0, 0, 0, 0, 0, 0, 22, 0, 0,
|
||||
0, -20, 23, 0, -239, -33, -33, -2, -2, -29,
|
||||
-29, -20, -20, 22, -207, 0, 0, -2, 0, 0,
|
||||
short yysindex[] = { -247,
|
||||
-262, 0, -242, -223, -216, -215, -247, 0, -254, 0,
|
||||
0, -37, 0, 0, -15, 0, 0, -13, 0, 0,
|
||||
-12, 0, 0, 0, 0, 0, 0, 0, -33, -14,
|
||||
-242, -11, -223, -10, -216, -8, -215, 0, 0, 0,
|
||||
0, 0, 0, 0, -9, 0, -42, 0, 0, -33,
|
||||
0, -2, 0, -29, 0, -20, 0, -33, -33, -209,
|
||||
-33, 4, 0, 0, 0, 0, 0, 0, 11, 0,
|
||||
0, 12, 0, 0, 0, 0, 0, 0, 0, 13,
|
||||
0, 0, 0, 0, -20, 14, 0, -236, 0, -2,
|
||||
-2, -29, -29, -20, -20, 13, -209, 0, 0, -2,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
short yyrindex[] = { -217,
|
||||
0, 0, 0, 0, 0, 0, -217, 0, 0, 0,
|
||||
short yyrindex[] = { -224,
|
||||
0, 0, 0, 0, 0, 0, -224, 0, 0, 0,
|
||||
0, 86, 0, 0, 103, 0, 0, 120, 0, 0,
|
||||
137, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 154, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, -21, 0, 0, 0, 1,
|
||||
0, 0, 0, 0, 0, 0, 18, 0, 0, 35,
|
||||
0, 0, 0, 0, 0, 0, 0, 52, 0, 0,
|
||||
0, 0, 69, 0, -1, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 163, -21, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 154, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, -21,
|
||||
0, 1, 0, 0, 0, 0, 0, 0, 18, 0,
|
||||
0, 35, 0, 0, 0, 0, 0, 0, 0, 52,
|
||||
0, 0, 0, 0, 0, 69, 0, -1, 0, 0,
|
||||
0, 0, 0, 0, 0, 163, -21, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
short yygindex[] = { 0,
|
||||
0, -74, 55, 59, 0, 0, 0, 0, 0, 0,
|
||||
15, -27, 0, -57, 0, -24, 0, 0, 0, -10,
|
||||
-59, 0, 0, 42, 0, 0, 41, 0, 0, 38,
|
||||
0, 43, 0, 0, -42, 0,
|
||||
0, -74, 53, 54, 0, 0, 0, 0, 0, 0,
|
||||
2, 15, 0, -31, 0, 0, -35, 0, 0, 0,
|
||||
-19, -84, 0, 0, 33, 0, 34, 0, 0, 31,
|
||||
0, 36, 0, 0, -53, 0,
|
||||
};
|
||||
#define YYTABLESIZE 431
|
||||
short yytable[] = { 57,
|
||||
50, 46, 10, 68, 24, 1, 31, 25, 26, 27,
|
||||
11, 29, 77, 101, 102, 28, 2, 56, 3, 4,
|
||||
5, 6, 14, 108, 96, 97, 17, 46, 99, 100,
|
||||
64, 41, 105, 106, 66, 38, 39, 40, 41, 5,
|
||||
42, 20, 5, 5, 5, 33, 43, 103, 104, 35,
|
||||
5, 62, 37, 47, 49, 82, 51, 53, 50, 55,
|
||||
87, 23, 89, 56, 91, 93, 95, 29, 13, 81,
|
||||
107, 94, 48, 50, 54, 56, 0, 52, 0, 0,
|
||||
short yytable[] = { 44,
|
||||
50, 61, 24, 70, 10, 25, 26, 27, 1, 105,
|
||||
106, 29, 79, 28, 11, 101, 102, 56, 60, 2,
|
||||
31, 3, 4, 5, 6, 108, 83, 98, 99, 89,
|
||||
66, 41, 5, 14, 66, 5, 5, 5, 103, 104,
|
||||
17, 20, 33, 5, 35, 37, 50, 61, 59, 52,
|
||||
54, 62, 56, 85, 91, 93, 95, 97, 50, 23,
|
||||
84, 107, 29, 51, 62, 96, 53, 57, 13, 0,
|
||||
55, 0, 0, 0, 0, 56, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 8, 0, 0, 0, 0,
|
||||
0, 0, 66, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 9, 0, 0, 0, 0, 0, 0, 62,
|
||||
@@ -307,10 +307,10 @@ short yytable[] = { 57,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 38, 39, 40, 41, 24, 42, 0,
|
||||
25, 26, 27, 0, 43, 29, 72, 0, 28, 73,
|
||||
74, 75, 29, 29, 29, 0, 29, 76, 0, 0,
|
||||
0, 0, 0, 0, 61, 41, 50, 50, 0, 0,
|
||||
50, 50, 50, 62, 41, 63, 41, 50, 50, 50,
|
||||
25, 26, 27, 0, 43, 29, 74, 0, 28, 75,
|
||||
76, 77, 29, 29, 29, 0, 29, 78, 0, 0,
|
||||
0, 0, 0, 0, 63, 41, 50, 50, 0, 0,
|
||||
50, 50, 50, 64, 41, 65, 41, 50, 50, 50,
|
||||
50, 50, 50, 56, 56, 0, 0, 56, 56, 56,
|
||||
0, 0, 0, 0, 56, 56, 56, 56, 56, 56,
|
||||
66, 66, 0, 0, 66, 66, 66, 0, 0, 0,
|
||||
@@ -330,14 +330,14 @@ short yytable[] = { 57,
|
||||
30,
|
||||
};
|
||||
short yycheck[] = { 33,
|
||||
0, 29, 267, 33, 257, 256, 58, 260, 261, 262,
|
||||
257, 33, 33, 88, 89, 268, 267, 0, 269, 270,
|
||||
271, 272, 257, 98, 264, 265, 257, 55, 86, 87,
|
||||
33, 33, 92, 93, 0, 257, 258, 259, 260, 257,
|
||||
262, 257, 260, 261, 262, 58, 268, 90, 91, 58,
|
||||
268, 0, 58, 61, 61, 263, 61, 61, 58, 58,
|
||||
44, 7, 44, 61, 44, 44, 44, 9, 0, 55,
|
||||
95, 82, 31, 33, 37, 58, -1, 35, -1, -1,
|
||||
0, 44, 257, 33, 267, 260, 261, 262, 256, 94,
|
||||
95, 33, 33, 268, 257, 90, 91, 0, 61, 267,
|
||||
58, 269, 270, 271, 272, 100, 58, 264, 265, 61,
|
||||
33, 33, 257, 257, 0, 260, 261, 262, 92, 93,
|
||||
257, 257, 58, 268, 58, 58, 61, 44, 58, 61,
|
||||
61, 0, 61, 263, 44, 44, 44, 44, 58, 7,
|
||||
59, 97, 9, 31, 50, 85, 33, 37, 0, -1,
|
||||
35, -1, -1, -1, -1, 58, -1, -1, -1, -1,
|
||||
-1, -1, -1, -1, -1, 0, -1, -1, -1, -1,
|
||||
-1, -1, 58, -1, -1, -1, -1, -1, -1, -1,
|
||||
-1, -1, 0, -1, -1, -1, -1, -1, -1, 58,
|
||||
@@ -407,7 +407,7 @@ char *yyrule[] = {
|
||||
"entry : RUNASALIAS runasaliases",
|
||||
"privileges : privilege",
|
||||
"privileges : privileges ':' privilege",
|
||||
"privilege : hostspec '=' cmndspeclist",
|
||||
"privilege : hostlist '=' cmndspeclist",
|
||||
"ophostspec : hostspec",
|
||||
"$$2 :",
|
||||
"ophostspec : '!' $$2 ophostspec",
|
||||
|
Reference in New Issue
Block a user