-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fourth batch of FreeBSD changes for the compliance test suite (#915)
- Loading branch information
Showing
30 changed files
with
51 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...amework/sudo-compliance-tests/src/sudo/flag_list/long_format/snapshots/command_alias.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
--- | ||
source: sudo-compliance-tests/src/sudo/flag_list/long_format/mod.rs | ||
assertion_line: 131 | ||
expression: stdout | ||
--- | ||
User root may run the following commands on container: | ||
|
||
Sudoers entry: | ||
RunAsUsers: root | ||
Commands: | ||
/usr/bin/ls | ||
<BIN_LS> | ||
/usr/bin/true | ||
/usr/bin/false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...sudo-compliance-tests/src/sudo/flag_list/long_format/snapshots/negated_command_alias.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
--- | ||
source: sudo-compliance-tests/src/sudo/flag_list/long_format/mod.rs | ||
assertion_line: 141 | ||
expression: stdout | ||
--- | ||
User root may run the following commands on container: | ||
|
||
Sudoers entry: | ||
RunAsUsers: root | ||
Commands: | ||
/usr/bin/ls | ||
<BIN_LS> | ||
!/usr/bin/true | ||
/usr/bin/false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...mework/sudo-compliance-tests/src/sudo/flag_list/short_format/snapshots/command_alias.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
source: sudo-compliance-tests/src/sudo/flag_list/short_format/mod.rs | ||
assertion_line: 128 | ||
expression: stdout | ||
--- | ||
User root may run the following commands on container: | ||
(root) /usr/bin/ls, /usr/bin/true, /usr/bin/false | ||
(root) <BIN_LS>, /usr/bin/true, /usr/bin/false |
3 changes: 1 addition & 2 deletions
3
...nce-tests/src/sudo/flag_list/short_format/snapshots/cwd_override_across_runas_groups.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
--- | ||
source: sudo-compliance-tests/src/sudo/flag_list/short_format/mod.rs | ||
assertion_line: 169 | ||
expression: stdout | ||
--- | ||
User root may run the following commands on container: | ||
(root) CWD=* /usr/bin/true | ||
(ferris) CWD=* /usr/bin/false, CWD=/home /usr/bin/ls | ||
(ferris) CWD=* /usr/bin/false, CWD=/home <BIN_LS> |
3 changes: 1 addition & 2 deletions
3
...ework/sudo-compliance-tests/src/sudo/flag_list/short_format/snapshots/multiple_lines.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
--- | ||
source: sudo-compliance-tests/src/sudo/flag_list/short_format/mod.rs | ||
assertion_line: 245 | ||
expression: stdout | ||
--- | ||
User root may run the following commands on container: | ||
(root) /usr/bin/true, /usr/bin/false | ||
(root) /usr/bin/ls | ||
(root) <BIN_LS> |
3 changes: 1 addition & 2 deletions
3
...udo-compliance-tests/src/sudo/flag_list/short_format/snapshots/negated_command_alias.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
--- | ||
source: sudo-compliance-tests/src/sudo/flag_list/short_format/mod.rs | ||
assertion_line: 138 | ||
expression: stdout | ||
--- | ||
User root may run the following commands on container: | ||
(root) /usr/bin/ls, !/usr/bin/true, /usr/bin/false | ||
(root) <BIN_LS>, !/usr/bin/true, /usr/bin/false |
3 changes: 1 addition & 2 deletions
3
...c/sudo/flag_list/short_format/snapshots/nopasswd_passwd_override_across_runas_groups.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
--- | ||
source: sudo-compliance-tests/src/sudo/flag_list/short_format/mod.rs | ||
assertion_line: 212 | ||
expression: stdout | ||
--- | ||
User root may run the following commands on container: | ||
(root) NOPASSWD: /usr/bin/true | ||
(ferris) NOPASSWD: /usr/bin/false, PASSWD: /usr/bin/ls | ||
(ferris) NOPASSWD: /usr/bin/false, PASSWD: <BIN_LS> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM dougrabson/freebsd14.1-small:latest | ||
RUN IGNORE_OSVERSION=yes pkg install -y sudo pidof sshpass rsyslog bash vim dash FreeBSD-libbsm && \ | ||
rm /usr/local/etc/sudoers | ||
# Ensure we use the same shell across OSes | ||
RUN chsh -s /bin/sh | ||
# just to match `ours.Dockerfile` | ||
WORKDIR /tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters