forked from neutrinolabs/xrdp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick utmpfix_bp..utmpfix_mp aka 28f175b9..2ff3edd0 See: * PR#2745 "Add utmp/wtmp support" neutrinolabs#2745 * Discussion#2744 "utmp/wtmp/btmp/lastlog" neutrinolabs#2744
- Loading branch information
1 parent
1c33f3d
commit 951b5ab
Showing
18 changed files
with
390 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#%PAM-1.0 | ||
auth include password-auth | ||
account include password-auth | ||
|
||
# Set the loginuid process attribute. | ||
session required pam_loginuid.so | ||
# Update wtmp/lastlog | ||
session optional pam_lastlog.so quiet | ||
|
||
session include password-auth | ||
password include password-auth |
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,11 @@ | ||
#%PAM-1.0 | ||
auth include common-auth | ||
account include common-account | ||
|
||
# Set the loginuid process attribute. | ||
session required pam_loginuid.so | ||
# Update lastlog database | ||
session optional pam_lastlog2.so silent | ||
|
||
session include common-session | ||
password include common-password |
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,43 @@ | ||
# SYNOPSIS | ||
# | ||
# AXRDP_CHECK_UTMPX_MEMBER_EXISTS(MEMBER, COMPILE-DEFINE) | ||
# | ||
# EXAMPLE | ||
# | ||
# AXRDP_CHECK_UTMPX_MEMBER_EXISTS([ut_exit], [HAVE_UTMPX_UT_EXIT]) | ||
# | ||
# DESCRIPTION | ||
# | ||
# If the member MEMBER exists in the utmpx struct, the COMPILE-DEFINE | ||
# is set for the C compiler. | ||
# | ||
# The shell variable 'ac_cv_utmpx_has_$MEMBER' is set to 'yes' or 'no' | ||
# and cached | ||
# | ||
AC_DEFUN([AXRDP_CHECK_UTMPX_MEMBER_EXISTS], | ||
[ | ||
AS_VAR_PUSHDEF([x_var], [ac_cv_utmpx_has_$1]) | ||
AS_VAR_PUSHDEF([x_define], [$2]) | ||
AC_CACHE_CHECK( | ||
[for $1 in struct utmpx], | ||
[x_var], | ||
[AC_COMPILE_IFELSE( | ||
[AC_LANG_SOURCE([[ | ||
# include <utmpx.h> | ||
# include <stddef.h> | ||
int main() | ||
{ | ||
return offsetof(struct utmpx,$1); | ||
}]])], | ||
[AS_VAR_SET([x_var], [yes])], | ||
[AS_VAR_SET([x_var], [no])])] | ||
) | ||
AS_VAR_IF( | ||
[x_var], | ||
[yes], | ||
[AC_DEFINE([x_define], [1], [Define if '$1' is in struct utmpx.])]) | ||
AS_VAR_POPDEF([x_var]) | ||
AS_VAR_POPDEF([x_define]) | ||
]) | ||
|
||
|
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
Oops, something went wrong.