-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create directories after checking for binaries
In case the binaries needed for certificate autoenrollment are not present on the system, avoid creating the needed directories. Also add a test to illustrate that we will not fail if the directory structure is wonky, if certmonger is not present.
- Loading branch information
1 parent
29e4d76
commit ab81b95
Showing
31 changed files
with
86 additions
and
20 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
1 change: 1 addition & 0 deletions
1
...or_when_certmonger_or_cepces_is_not_available/apparmor.d/adsys/machine/nested/usr.bin.baz
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/bin/baz {} |
1 change: 1 addition & 0 deletions
1
...not_error_when_certmonger_or_cepces_is_not_available/apparmor.d/adsys/machine/usr.bin.bar
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/bin/bar {} |
1 change: 1 addition & 0 deletions
1
...not_error_when_certmonger_or_cepces_is_not_available/apparmor.d/adsys/machine/usr.bin.foo
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/bin/foo {} |
6 changes: 6 additions & 0 deletions
6
...en_certmonger_or_cepces_is_not_available/apparmor.d/adsys/users/adsystestuser@example.com
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
^adsystestuser@example.com { | ||
/etc/environment r, | ||
@{HOMEDIRS}/.xauth* w, | ||
/usr/bin/{,b,d,rb}ash Ux, | ||
/usr/bin/{c,k,tc}sh Ux, | ||
} |
4 changes: 4 additions & 0 deletions
4
...ate/golden/does_not_error_when_certmonger_or_cepces_is_not_available/dconf/db/gdm.d/adsys
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[org/gnome/desktop/interface] | ||
clock-format='24h' | ||
clock-show-date=false | ||
clock-show-weekday=true |
3 changes: 3 additions & 0 deletions
3
...lden/does_not_error_when_certmonger_or_cepces_is_not_available/dconf/db/gdm.d/locks/adsys
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/org/gnome/desktop/interface/clock-format | ||
/org/gnome/desktop/interface/clock-show-date | ||
/org/gnome/desktop/interface/clock-show-weekday |
1 change: 1 addition & 0 deletions
1
...golden/does_not_error_when_certmonger_or_cepces_is_not_available/dconf/db/machine.d/adsys
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
.../does_not_error_when_certmonger_or_cepces_is_not_available/dconf/db/machine.d/locks/adsys
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
|
3 changes: 3 additions & 0 deletions
3
...Update/golden/does_not_error_when_certmonger_or_cepces_is_not_available/dconf/profile/gdm
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
user-db:user | ||
system-db:gdm | ||
system-db:machine |
1 change: 1 addition & 0 deletions
1
...PolicyUpdate/golden/does_not_error_when_certmonger_or_cepces_is_not_available/lib/private
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
new content |
1 change: 1 addition & 0 deletions
1
...es_not_error_when_certmonger_or_cepces_is_not_available/lib/samba/cert_gpo_state_HOST.tdb
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
TDB file |
6 changes: 6 additions & 0 deletions
6
...epces_is_not_available/polkit-1/localauthority.conf.d/99-adsys-privilege-enforcement.conf
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
[Configuration] | ||
AdminIdentities=unix-user:bob@example.com;unix-group:mygroup@example2.com |
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
...certmonger_or_cepces_is_not_available/run/machine/scripts/scripts/final-machine-script.sh
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
final machine script |
1 change: 1 addition & 0 deletions
1
...certmonger_or_cepces_is_not_available/run/machine/scripts/scripts/other-script-user-logon
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
script user logon |
1 change: 1 addition & 0 deletions
1
...ger_or_cepces_is_not_available/run/machine/scripts/scripts/otherfolder/script-user-logoff
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
script user logoff |
1 change: 1 addition & 0 deletions
1
...certmonger_or_cepces_is_not_available/run/machine/scripts/scripts/script-machine-shutdown
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
script machine shutdown |
1 change: 1 addition & 0 deletions
1
..._certmonger_or_cepces_is_not_available/run/machine/scripts/scripts/script-machine-startup
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
script machine startup |
1 change: 1 addition & 0 deletions
1
..._when_certmonger_or_cepces_is_not_available/run/machine/scripts/scripts/script-user-logon
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
script user logon |
1 change: 1 addition & 0 deletions
1
..._certmonger_or_cepces_is_not_available/run/machine/scripts/scripts/subfolder/other-script
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
subfolder other script |
1 change: 1 addition & 0 deletions
1
..._when_certmonger_or_cepces_is_not_available/run/machine/scripts/scripts/unreferenced-data
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
unreferenced data |
1 change: 1 addition & 0 deletions
1
...hen_certmonger_or_cepces_is_not_available/run/machine/scripts/scripts/unreferenced-script
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
unreferenced script |
2 changes: 2 additions & 0 deletions
2
...den/does_not_error_when_certmonger_or_cepces_is_not_available/run/machine/scripts/startup
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
scripts/script-machine-startup | ||
scripts/subfolder/other-script |
Empty file.
10 changes: 10 additions & 0 deletions
10
...error_when_certmonger_or_cepces_is_not_available/sudoers.d/99-adsys-privilege-enforcement
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
%admin ALL=(ALL) !ALL | ||
%sudo ALL=(ALL:ALL) !ALL | ||
|
||
"bob@example.com" ALL=(ALL:ALL) ALL | ||
"%mygroup@example2.com" ALL=(ALL:ALL) ALL | ||
|
Empty file.
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