-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for users who have their home directory changed by PAM
- Loading branch information
1 parent
2e1d7eb
commit 7367300
Showing
5 changed files
with
63 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# | ||
# Check home directory is set correctly in session after having been changed by PAM | ||
# | ||
|
||
[Seat:*] | ||
autologin-user=change-home-dir | ||
user-session=default | ||
|
||
#?*START-DAEMON | ||
#?RUNNER DAEMON-START | ||
|
||
# X server starts | ||
#?XSERVER-0 START VT=7 SEAT=seat0 | ||
|
||
# Daemon connects when X server is ready | ||
#?*XSERVER-0 INDICATE-READY | ||
#?XSERVER-0 INDICATE-READY | ||
#?XSERVER-0 ACCEPT-CONNECT | ||
|
||
# Session starts | ||
#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/change-home-dir XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=change-home-dir | ||
#?LOGIN1 ACTIVATE-SESSION SESSION=c0 | ||
#?XSERVER-0 ACCEPT-CONNECT | ||
#?SESSION-X-0 CONNECT-XSERVER | ||
|
||
# Check environment variables | ||
#?*SESSION-X-0 READ-ENV NAME=HOME | ||
#?SESSION-X-0 READ-ENV NAME=HOME VALUE=.*/users/change-home-dir | ||
|
||
# Cleanup | ||
#?*STOP-DAEMON | ||
#?SESSION-X-0 TERMINATE SIGNAL=15 | ||
#?XSERVER-0 TERMINATE SIGNAL=15 | ||
#?RUNNER DAEMON-EXIT STATUS=0 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
./src/dbus-env ./src/test-runner change-home-dir-on-session test-gobject-greeter |