mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Add trivial sudoedit parsing tests.
This commit is contained in:
parent
3c5353c2be
commit
2e3fbaa2c5
6
MANIFEST
6
MANIFEST
@ -332,6 +332,12 @@ plugins/sudoers/regress/sudoers/test13.toke.ok
|
|||||||
plugins/sudoers/regress/sudoers/test14.in
|
plugins/sudoers/regress/sudoers/test14.in
|
||||||
plugins/sudoers/regress/sudoers/test14.out.ok
|
plugins/sudoers/regress/sudoers/test14.out.ok
|
||||||
plugins/sudoers/regress/sudoers/test14.toke.ok
|
plugins/sudoers/regress/sudoers/test14.toke.ok
|
||||||
|
plugins/sudoers/regress/sudoers/test15.in
|
||||||
|
plugins/sudoers/regress/sudoers/test15.out.ok
|
||||||
|
plugins/sudoers/regress/sudoers/test15.toke.ok
|
||||||
|
plugins/sudoers/regress/sudoers/test16.in
|
||||||
|
plugins/sudoers/regress/sudoers/test16.out.ok
|
||||||
|
plugins/sudoers/regress/sudoers/test16.toke.ok
|
||||||
plugins/sudoers/regress/sudoers/test2.in
|
plugins/sudoers/regress/sudoers/test2.in
|
||||||
plugins/sudoers/regress/sudoers/test2.out.ok
|
plugins/sudoers/regress/sudoers/test2.out.ok
|
||||||
plugins/sudoers/regress/sudoers/test2.toke.ok
|
plugins/sudoers/regress/sudoers/test2.toke.ok
|
||||||
|
2
plugins/sudoers/regress/sudoers/test15.in
Normal file
2
plugins/sudoers/regress/sudoers/test15.in
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Test parsing of sudoedit rule
|
||||||
|
user ALL = sudoedit /etc/motd
|
5
plugins/sudoers/regress/sudoers/test15.out.ok
Normal file
5
plugins/sudoers/regress/sudoers/test15.out.ok
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Parses OK.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
user ALL = sudoedit /etc/motd
|
2
plugins/sudoers/regress/sudoers/test15.toke.ok
Normal file
2
plugins/sudoers/regress/sudoers/test15.toke.ok
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#
|
||||||
|
WORD(5) ALL = COMMAND ARG
|
3
plugins/sudoers/regress/sudoers/test16.in
Normal file
3
plugins/sudoers/regress/sudoers/test16.in
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Test parsing of sudoedit rule in a Cmnd_Alias
|
||||||
|
Cmnd_Alias EDIT = sudoedit /etc/motd
|
||||||
|
user ALL = EDIT
|
6
plugins/sudoers/regress/sudoers/test16.out.ok
Normal file
6
plugins/sudoers/regress/sudoers/test16.out.ok
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Parses OK.
|
||||||
|
|
||||||
|
|
||||||
|
Cmnd_Alias EDIT = sudoedit /etc/motd
|
||||||
|
|
||||||
|
user ALL = EDIT
|
3
plugins/sudoers/regress/sudoers/test16.toke.ok
Normal file
3
plugins/sudoers/regress/sudoers/test16.toke.ok
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#
|
||||||
|
CMNDALIAS ALIAS = COMMAND ARG
|
||||||
|
WORD(5) ALL = ALIAS
|
Loading…
x
Reference in New Issue
Block a user