summaryrefslogtreecommitdiff
path: root/pam-ck-connector
AgeCommit message (Collapse)AuthorFilesLines
2017-05-21chore: simplify configure.acEric Koegel1-1/+0
Pull in the m4 macros from the xfce4-dev-tools so we have ways to simplify and shorten the configure.ac file.
2017-05-04Handle runtimedir not being created/setEric Koegel1-7/+11
For: https://github.com/ConsoleKit2/ConsoleKit2/issues/74
2016-10-14Fix pam-ck-connector on muslLaine Gholson1-1/+2
2016-03-14pam-ck allow VTNR to be double-digitEric Koegel1-1/+1
2016-01-23Add XDG_RUNTIME_DIR support to the PAM ck connectorEric Koegel1-0/+12
This way console logins also get the env variable
2015-10-21XDG_VTNR supportFabrice Ménard1-0/+11
XDG_VTNR is another way to obtain the X11 display device. As SDDM sets this environment variable, it is now much simpler to use it with pam_ck_connector. Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2015-07-12Add an --enable-tests configure optionEric Koegel1-2/+4
And document the --enable-debug option better. The enable-tests option defaults to off so that normal release builds don't have to waste time compiling tests that won't be installed or used.
2015-02-17Check for Linux-PAM features rather than just Linux.Andrew Aldridge1-1/+1
Some Linux distros use OpenPAM.
2014-10-10Argument cannot be negativeEric Koegel1-1/+4
1) sysconf returns a long so make bufsize one. 2) sysconf call can fail and return -1, handle that condition. 3) if sysconf does fail a negative value would be sent to calloc which expects a positive value.
2014-10-05Undefine _FORTIFY_SOURCE before redefining itEric Koegel1-0/+1
Otherwise GCC nags us with warnings.
2014-10-04Update makefiles and remove unused codeEric Koegel1-1/+1
2012-03-19Fix unconditional PATH_MAX usagePino Toscano1-3/+11
Fix the unconditional PATH_MAX usage in pam-ck-connector/pam-ck-connector.c by using a variable-length malloc'ed buffer. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=552393 https://bugs.freedesktop.org/show_bug.cgi?id=24738
2009-07-20Fix connector build on SolarisHalton Huo1-7/+0
Solaris now builds with flags to give getpwnam_r more standard semantics. bug 22361
2009-02-11fix building with Solaris PAMHalton Huo2-1/+19
This patch is a little different with Brian's. Let's me explain the whole patch one by one. 1. pam-ck-connector/Makefile.am (same with Brian's) Solaris does not have libpam_misc, so only build test_pam under linux 2. +#include <limits.h> This is to get macro PATH_MAX from system. I think it is better than +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif On ubuntu, PATH_MAX=4096, on Solaris, PATH_MAX=1024 3. +#include <security/pam_appl.h> This is to include declaration of pam_handle_t, to resolve error like: "/usr/include/security/pam_modules.h", line 38: syntax error before or at: * "/usr/include/security/pam_modules.h", line 45: syntax error before or at: * 4.-#include <security/_pam_macros.h> Solaris does not have this file, I remove it, no more error, seems no use here. 5. +#ifndef PAM_EXTERN ... part Solaris PAM_EXTERN marco in pam_modules.h, while Ubuntu has, I just copy the logic from Ubuntu. 6. getpwnam_r part (same with Brian's) getpwnam_r() have difference behavior between Solaris and Ubuntu. https://bugs.freedesktop.org/show_bug.cgi?id=18173
2009-02-11add "nox11" option to the PAM moduleMartin Pitt2-0/+11
Ignores PAM sessions where PAM_TTY is an X11 display. This allows adding pam_ck_connector to PAM's "common-session" without interfering with the already existing ConsoleKit operations in gdm, the Xsession script, etc. https://bugs.freedesktop.org/show_bug.cgi?id=16746
2008-02-05set a global flag so that D-Bus does not change the SIGPIPE handler in the ↵William Jon McCann1-2/+7
PAM module
2008-01-28fix typo in man pageWilliam Jon McCann1-1/+1
2007-09-18use unix-user instead of userWilliam Jon McCann1-1/+1
2007-04-04fix typosWilliam Jon McCann1-2/+2
2007-04-04add support for CKCON_X11_DISPLAY_DEVICE environment variableWilliam Jon McCann2-9/+23
In order to set the x11-display-device parameter on the new session.
2007-04-03make sure no values are NULLWilliam Jon McCann1-0/+8
2007-04-03check for empty string as well as null valuesWilliam Jon McCann1-6/+11
2007-04-02autoconf fixes, separate pamlibdir variable, path expansion at make timeMichael Biebl1-2/+1
The attached patch does the following: - Use a separate $pam-module-dir variable for the pam module - Instead of defining a custom $slibdir variable, just use the standard $libdir variable specified by autoconf - Use the standard autoconf $docdir variable (Add AC_PREREQ(2.59) for that). - Drop AS_AC_EXPAND macro and remove AC_DEFINE_UNQUOTED for dir variables. + Build the init script at make time using sed + Use defines in src/Makefile.am to pass the variables to gcc at make time - Consistently use AC_HELP_STRING everywhere - Remove/Replace deprecated macros: + AM_INIT_AUTOMAKE takes the package name and version number from AC_INIT + AM_CONFIG_HEADER -> AC_CONFIG_HEADERS + AC_OUTPUT -> AC_CONFIG_FILES Patch is tested and make distcheck works.
2007-03-30make pam module install into $slibdirDoug Goldstein1-1/+1
Basically the path for the pam module is hardcoded to /lib/security which isn't right. Attached is a patch that uses the value of slibdir for /lib/.
2007-03-15fix missed pam_syslog changeWilliam Jon McCann1-3/+3
Also make the configure checks simpler.
2007-03-15fix building pam module on debian systemsWilliam Jon McCann1-14/+87
Only include what is available. Use a alternative to pam_syslog if it isn't available.
2007-03-08update all .gitignore filesWilliam Jon McCann1-0/+8
2007-03-06use paths.h if availableWilliam Jon McCann2-3/+19
2007-03-06add is-local back to the pam moduleWilliam Jon McCann1-0/+4
2007-03-05try to parse the real meaning of PAM_TTYWilliam Jon McCann1-0/+10
2007-03-05use with_parameters and add remote-host-name if availableWilliam Jon McCann1-10/+39
2007-03-01dist the manual page for the PAM moduleDavid Zeuthen1-0/+4
2007-03-01add a test program for the PAM moduleWilliam Jon McCann3-5/+170
Basically this is a mini login. It authenticates, opens a session, sleeps 20 seconds, and then closes the session.
2007-03-01fix some typosWilliam Jon McCann1-4/+3
2007-02-28change the connector API a bit + misc analityWilliam Jon McCann1-128/+159
I modified the API of the new connector a bit. * include errors * make names a bit more consistent with what they do * have symmetry between open and close * use refcounting * do parameter checking on inputs I also made some changes to whitespace and style. And converted descriptions to gtkdoc style comments.
2007-02-28add a connector library and (reluctantly) a PAM moduleDavid Zeuthen3-0/+325
Here are some patches to add one library and one PAM module so other programs (apart from gdm) can easily interact with ConsoleKit. It's mainly going to be used, I think, by login(1) and xinit(1). I'm not super happy about doing a PAM module but the Fedora util-linux package maintainer seems to be insist on this instead of just patching login(1). The PAM module isn't built by default. Both pieces of code are licensed under the MIT license as god knows what might want to use them. Sounds good to you?