-
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.
Add integration tests and refresh golden files
- Loading branch information
1 parent
1b06084
commit 89d54ad
Showing
170 changed files
with
408 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,8 +215,11 @@ func TestPolicyUpdate(t *testing.T) { | |
addPaths []string | ||
readOnlyDirs []string | ||
winbindMockBehavior string | ||
krb5MockBehavior string | ||
purge bool | ||
missingCertmonger bool | ||
noExportKrb5cc bool | ||
detectCachedTicket bool | ||
|
||
wantErr bool | ||
}{ | ||
|
@@ -228,6 +231,33 @@ func TestPolicyUpdate(t *testing.T) { | |
backend: "winbind", | ||
initState: "localhost-uptodate", | ||
}, | ||
"Current user, KRB5CCNAME is not exported but present": { | ||
initState: "localhost-uptodate", | ||
noExportKrb5cc: true, | ||
detectCachedTicket: true, | ||
krb5MockBehavior: "return_ccache:%s", | ||
}, | ||
"Current user, libkrb5 not used if KRB5CCNAME is present": { | ||
initState: "localhost-uptodate", | ||
detectCachedTicket: true, | ||
krb5MockBehavior: "return_ccache:%s/maybebadvalue", | ||
}, | ||
"Current user, libkrb5 not used if setting not enabled": { | ||
initState: "localhost-uptodate", | ||
krb5MockBehavior: "return_ccache:%s/maybebadvalue", | ||
}, | ||
"Current user, librkb5 returns error but symlink is present": { | ||
initState: "localhost-uptodate", | ||
detectCachedTicket: true, | ||
noExportKrb5cc: true, | ||
krb5MockBehavior: "return_empty_ccache", | ||
krb5ccNamesState: []krb5ccNamesWithState{ | ||
{ | ||
src: currentUser + ".krb5", | ||
adsysSymlink: currentUser, | ||
}, | ||
}, | ||
}, | ||
"Other user, first time": { | ||
args: []string{"[email protected]", "[email protected]"}, | ||
initState: "localhost-uptodate", | ||
|
@@ -871,6 +901,27 @@ func TestPolicyUpdate(t *testing.T) { | |
}, | ||
wantErr: true, | ||
}, | ||
// Krb5 library error cases | ||
"Error when libkrb5 ccache not present on disk": { | ||
initState: "localhost-uptodate", | ||
noExportKrb5cc: true, | ||
detectCachedTicket: true, | ||
krb5MockBehavior: "return_ccache:%s/not_present", | ||
wantErr: true, | ||
}, | ||
"Error when libkrb5 returns null value": { | ||
initState: "localhost-uptodate", | ||
noExportKrb5cc: true, | ||
detectCachedTicket: true, | ||
krb5MockBehavior: "return_null_ccache", | ||
wantErr: true, | ||
}, | ||
"Error when cached ticket setting not enabled": { | ||
initState: "localhost-uptodate", | ||
noExportKrb5cc: true, | ||
krb5MockBehavior: "return_ccache:%s", | ||
wantErr: true, | ||
}, | ||
// Incompatible options | ||
"Error on all and specific user requested": { | ||
args: []string{"--all", "[email protected]", "[email protected]"}, | ||
|
@@ -1078,10 +1129,19 @@ func TestPolicyUpdate(t *testing.T) { | |
} else { | ||
tc.krb5ccname = fmt.Sprintf("FILE:%s/%s", krb5dir, tc.krb5ccname) | ||
} | ||
t.Setenv("KRB5CCNAME", tc.krb5ccname) | ||
if !tc.noExportKrb5cc { | ||
t.Setenv("KRB5CCNAME", tc.krb5ccname) | ||
} | ||
} | ||
|
||
if tc.krb5MockBehavior != "" { | ||
if strings.Contains(tc.krb5MockBehavior, "return_ccache") { | ||
tc.krb5MockBehavior = fmt.Sprintf(tc.krb5MockBehavior, tc.krb5ccname) | ||
} | ||
t.Setenv("ADSYS_KRB5_BEHAVIOR", tc.krb5MockBehavior) | ||
} | ||
|
||
conf := createConf(t, confWithAdsysDir(adsysDir), confWithBackend(tc.backend)) | ||
conf := createConf(t, confWithAdsysDir(adsysDir), confWithBackend(tc.backend), confDetectCachedTicket(tc.detectCachedTicket)) | ||
if tc.sssdConf != "" { | ||
content, err := os.ReadFile(conf) | ||
require.NoError(t, err, "Setup: can’t read configuration file") | ||
|
@@ -1243,6 +1303,7 @@ func setupSubprocessForTest(t *testing.T, currentUser string, otherUsers ...stri | |
require.NoError(t, err, "libnss-wrapper is not installed on disk, either skip integration tests or install it") | ||
|
||
mockWinbindLibPath := testutils.BuildWinbindMock(t, filepath.Join(rootProjectDir, "internal/ad/backends/winbind")) | ||
mockKrb5LibPath := testutils.BuildKrb5Mock(t, filepath.Join(rootProjectDir, "internal/ad")) | ||
|
||
var subArgs []string | ||
// We are going to only reexec ourself: only take options (without -run) | ||
|
@@ -1288,7 +1349,7 @@ func setupSubprocessForTest(t *testing.T, currentUser string, otherUsers ...stri | |
fmt.Sprintf("PYTHONPATH=%s", admock), | ||
|
||
// override user and host database | ||
fmt.Sprintf("LD_PRELOAD=libnss_wrapper.so:%s", mockWinbindLibPath), | ||
fmt.Sprintf("LD_PRELOAD=libnss_wrapper.so:%s:%s", mockWinbindLibPath, mockKrb5LibPath), | ||
fmt.Sprintf("NSS_WRAPPER_PASSWD=%s", passwd), | ||
"NSS_WRAPPER_GROUP=/etc/group", | ||
) | ||
|
1 change: 1 addition & 0 deletions
1
..._user,_krb5ccname_is_not_exported_but_present/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
...current_user,_krb5ccname_is_not_exported_but_present/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
...current_user,_krb5ccname_is_not_exported_but_present/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
...,_krb5ccname_is_not_exported_but_present/apparmor.d/adsys/users/[email protected]
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 @@ | ||
^[email protected] { | ||
/etc/environment r, | ||
@{HOMEDIRS}/.xauth* w, | ||
/usr/bin/{,b,d,rb}ash Ux, | ||
/usr/bin/{c,k,tc}sh Ux, | ||
} |
5 changes: 5 additions & 0 deletions
5
...t_user,_krb5ccname_is_not_exported_but_present/dconf/db/[email protected]/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,5 @@ | ||
[org/gnome/desktop/background] | ||
picture-options='stretched' | ||
picture-uri='file:///usr/share/backgrounds/canonical.png' | ||
[org/gnome/shell] | ||
favorite-apps=['\'libreoffice-writer.desktop\'', '\'snap-store_ubuntu-software.desktop\'', '\'yelp.desktop'] |
4 changes: 4 additions & 0 deletions
4
...,_krb5ccname_is_not_exported_but_present/dconf/db/[email protected]/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,4 @@ | ||
/org/gnome/desktop/background/picture-options | ||
/org/gnome/desktop/background/picture-uri | ||
/org/gnome/desktop/media-handling/automount | ||
/org/gnome/shell/favorite-apps |
4 changes: 4 additions & 0 deletions
4
...cyUpdate/golden/current_user,_krb5ccname_is_not_exported_but_present/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
...te/golden/current_user,_krb5ccname_is_not_exported_but_present/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
...date/golden/current_user,_krb5ccname_is_not_exported_but_present/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
...olden/current_user,_krb5ccname_is_not_exported_but_present/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
...rent_user,_krb5ccname_is_not_exported_but_present/dconf/profile/[email protected]
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:[email protected] | ||
system-db:machine |
3 changes: 3 additions & 0 deletions
3
...olicyUpdate/golden/current_user,_krb5ccname_is_not_exported_but_present/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
...en/current_user,_krb5ccname_is_not_exported_but_present/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 |
10 changes: 10 additions & 0 deletions
10
...t_exported_but_present/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,10 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
[Configuration] | ||
AdminIdentities=unix-group:sudo;unix-group:admin | ||
|
||
[Configuration] | ||
AdminIdentities=unix-user:[email protected];unix-group:[email protected] | ||
|
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
...rb5ccname_is_not_exported_but_present/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
...me_is_not_exported_but_present/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
...rb5ccname_is_not_exported_but_present/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
...krb5ccname_is_not_exported_but_present/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
...ser,_krb5ccname_is_not_exported_but_present/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
...krb5ccname_is_not_exported_but_present/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
...ser,_krb5ccname_is_not_exported_but_present/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
...r,_krb5ccname_is_not_exported_but_present/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
...e/golden/current_user,_krb5ccname_is_not_exported_but_present/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.
4 changes: 4 additions & 0 deletions
4
.../golden/current_user,_krb5ccname_is_not_exported_but_present/run/users/CURRENT_UID/mounts
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 @@ | ||
protocol://example.com/it/mount/path | ||
protocol://example.com/all/other/mount/path | ||
protocol://example.com/all/another/path | ||
protocol://example.com/rnd/mount/path |
Empty file.
2 changes: 2 additions & 0 deletions
2
...current_user,_krb5ccname_is_not_exported_but_present/run/users/CURRENT_UID/scripts/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,2 @@ | ||
scripts/otherfolder/script-user-logoff | ||
scripts/subfolder/other-script |
4 changes: 4 additions & 0 deletions
4
.../current_user,_krb5ccname_is_not_exported_but_present/run/users/CURRENT_UID/scripts/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,4 @@ | ||
scripts/script-user-logon | ||
scripts/other-script-user-logon | ||
scripts/script-user-logon | ||
scripts/subfolder/other-script |
Empty file.
1 change: 1 addition & 0 deletions
1
...is_not_exported_but_present/run/users/CURRENT_UID/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
...is_not_exported_but_present/run/users/CURRENT_UID/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
...exported_but_present/run/users/CURRENT_UID/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
...is_not_exported_but_present/run/users/CURRENT_UID/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
..._is_not_exported_but_present/run/users/CURRENT_UID/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
...cname_is_not_exported_but_present/run/users/CURRENT_UID/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
..._is_not_exported_but_present/run/users/CURRENT_UID/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
...cname_is_not_exported_but_present/run/users/CURRENT_UID/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
...ame_is_not_exported_but_present/run/users/CURRENT_UID/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 |
10 changes: 10 additions & 0 deletions
10
...ent_user,_krb5ccname_is_not_exported_but_present/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 | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"%[email protected]" ALL=(ALL:ALL) ALL | ||
|
Empty file.
1 change: 1 addition & 0 deletions
1
...er,_libkrb5_not_used_if_krb5ccname_is_present/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
...rent_user,_libkrb5_not_used_if_krb5ccname_is_present/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
...rent_user,_libkrb5_not_used_if_krb5ccname_is_present/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
...ibkrb5_not_used_if_krb5ccname_is_present/apparmor.d/adsys/users/[email protected]
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 @@ | ||
^[email protected] { | ||
/etc/environment r, | ||
@{HOMEDIRS}/.xauth* w, | ||
/usr/bin/{,b,d,rb}ash Ux, | ||
/usr/bin/{c,k,tc}sh Ux, | ||
} |
5 changes: 5 additions & 0 deletions
5
...ser,_libkrb5_not_used_if_krb5ccname_is_present/dconf/db/[email protected]/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,5 @@ | ||
[org/gnome/desktop/background] | ||
picture-options='stretched' | ||
picture-uri='file:///usr/share/backgrounds/canonical.png' | ||
[org/gnome/shell] | ||
favorite-apps=['\'libreoffice-writer.desktop\'', '\'snap-store_ubuntu-software.desktop\'', '\'yelp.desktop'] |
4 changes: 4 additions & 0 deletions
4
...ibkrb5_not_used_if_krb5ccname_is_present/dconf/db/[email protected]/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,4 @@ | ||
/org/gnome/desktop/background/picture-options | ||
/org/gnome/desktop/background/picture-uri | ||
/org/gnome/desktop/media-handling/automount | ||
/org/gnome/shell/favorite-apps |
4 changes: 4 additions & 0 deletions
4
...pdate/golden/current_user,_libkrb5_not_used_if_krb5ccname_is_present/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
...golden/current_user,_libkrb5_not_used_if_krb5ccname_is_present/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
...e/golden/current_user,_libkrb5_not_used_if_krb5ccname_is_present/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
...en/current_user,_libkrb5_not_used_if_krb5ccname_is_present/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
...t_user,_libkrb5_not_used_if_krb5ccname_is_present/dconf/profile/[email protected]
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:[email protected] | ||
system-db:machine |
3 changes: 3 additions & 0 deletions
3
...cyUpdate/golden/current_user,_libkrb5_not_used_if_krb5ccname_is_present/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
...current_user,_libkrb5_not_used_if_krb5ccname_is_present/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 |
10 changes: 10 additions & 0 deletions
10
..._krb5ccname_is_present/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,10 @@ | ||
# This file is managed by adsys. | ||
# Do not edit this file manually. | ||
# Any changes will be overwritten. | ||
|
||
[Configuration] | ||
AdminIdentities=unix-group:sudo;unix-group:admin | ||
|
||
[Configuration] | ||
AdminIdentities=unix-user:[email protected];unix-group:[email protected] | ||
|
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
...rb5_not_used_if_krb5ccname_is_present/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
..._used_if_krb5ccname_is_present/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
...rb5_not_used_if_krb5ccname_is_present/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
...krb5_not_used_if_krb5ccname_is_present/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
...,_libkrb5_not_used_if_krb5ccname_is_present/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
...krb5_not_used_if_krb5ccname_is_present/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
...,_libkrb5_not_used_if_krb5ccname_is_present/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
...libkrb5_not_used_if_krb5ccname_is_present/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
...olden/current_user,_libkrb5_not_used_if_krb5ccname_is_present/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.
4 changes: 4 additions & 0 deletions
4
...lden/current_user,_libkrb5_not_used_if_krb5ccname_is_present/run/users/CURRENT_UID/mounts
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 @@ | ||
protocol://example.com/it/mount/path | ||
protocol://example.com/all/other/mount/path | ||
protocol://example.com/all/another/path | ||
protocol://example.com/rnd/mount/path |
Empty file.
2 changes: 2 additions & 0 deletions
2
...rent_user,_libkrb5_not_used_if_krb5ccname_is_present/run/users/CURRENT_UID/scripts/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,2 @@ | ||
scripts/otherfolder/script-user-logoff | ||
scripts/subfolder/other-script |
4 changes: 4 additions & 0 deletions
4
...rrent_user,_libkrb5_not_used_if_krb5ccname_is_present/run/users/CURRENT_UID/scripts/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,4 @@ | ||
scripts/script-user-logon | ||
scripts/other-script-user-logon | ||
scripts/script-user-logon | ||
scripts/subfolder/other-script |
Empty file.
1 change: 1 addition & 0 deletions
1
...ed_if_krb5ccname_is_present/run/users/CURRENT_UID/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
...ed_if_krb5ccname_is_present/run/users/CURRENT_UID/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
...rb5ccname_is_present/run/users/CURRENT_UID/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
...ed_if_krb5ccname_is_present/run/users/CURRENT_UID/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
...sed_if_krb5ccname_is_present/run/users/CURRENT_UID/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
...not_used_if_krb5ccname_is_present/run/users/CURRENT_UID/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
...sed_if_krb5ccname_is_present/run/users/CURRENT_UID/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
...not_used_if_krb5ccname_is_present/run/users/CURRENT_UID/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
...t_used_if_krb5ccname_is_present/run/users/CURRENT_UID/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 |
10 changes: 10 additions & 0 deletions
10
..._user,_libkrb5_not_used_if_krb5ccname_is_present/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 | ||
|
||
"[email protected]" ALL=(ALL:ALL) ALL | ||
"%[email protected]" ALL=(ALL:ALL) ALL | ||
|
Empty file.
1 change: 1 addition & 0 deletions
1
...user,_libkrb5_not_used_if_setting_not_enabled/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
...urrent_user,_libkrb5_not_used_if_setting_not_enabled/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
...urrent_user,_libkrb5_not_used_if_setting_not_enabled/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 {} |
Oops, something went wrong.