diff options
author | Tomas Mraz <tm@t8m.info> | 2005-09-21 10:00:58 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2005-09-21 10:00:58 +0000 |
commit | be09d6354efcb2571731bdffc47da86f22621ac8 (patch) | |
tree | 82117bfbaadb46495a545ba4f567dc9bddd97c33 /modules/pam_umask | |
parent | 627a0401899af257f0fb711ad54194e14a75c530 (diff) | |
download | pam-be09d6354efcb2571731bdffc47da86f22621ac8.tar.gz pam-be09d6354efcb2571731bdffc47da86f22621ac8.tar.bz2 pam-be09d6354efcb2571731bdffc47da86f22621ac8.zip |
Relevant BUGIDs:
Purpose of commit: new feature
Commit summary:
---------------
Moved functions from pammodutil to libpam.
Diffstat (limited to 'modules/pam_umask')
-rw-r--r-- | modules/pam_umask/Makefile.am | 4 | ||||
-rw-r--r-- | modules/pam_umask/pam_umask.c | 6 |
2 files changed, 4 insertions, 6 deletions
diff --git a/modules/pam_umask/Makefile.am b/modules/pam_umask/Makefile.am index c887cd47..abc1cd68 100644 --- a/modules/pam_umask/Makefile.am +++ b/modules/pam_umask/Makefile.am @@ -9,10 +9,8 @@ EXTRA_DIST = README securelibdir = $(SECUREDIR) secureconfdir = $(SCONFIGDIR) -AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include \ - -I$(top_srcdir)/modules/pammodutil/include/ +AM_CFLAGS = -I$(top_srcdir)/libpam/include -I$(top_srcdir)/libpamc/include AM_LDFLAGS = -no-undefined -avoid-version -module \ - $(top_builddir)/modules/pammodutil/libpammodutil.la \ -L$(top_builddir)/libpam -lpam if HAVE_VERSIONING AM_LDFLAGS += -Wl,--version-script=../modules.map diff --git a/modules/pam_umask/pam_umask.c b/modules/pam_umask/pam_umask.c index ff705567..e93efc01 100644 --- a/modules/pam_umask/pam_umask.c +++ b/modules/pam_umask/pam_umask.c @@ -51,7 +51,7 @@ #define PAM_SM_SESSION #include <security/pam_modules.h> -#include <security/_pam_modutil.h> +#include <security/pam_modutil.h> #include <security/pam_ext.h> struct options_t { @@ -192,7 +192,7 @@ setup_limits_from_gecos (pam_handle_t *pamh, options_t *options, owner bits (examples: 022 -> 002, 077 -> 007). */ if (pw->pw_uid != 0 && pw->pw_uid == pw->pw_gid) { - struct group *grp = _pammodutil_getgrgid (pamh, pw->pw_gid); + struct group *grp = pam_modutil_getgrgid (pamh, pw->pw_gid); if (grp && (strcmp (pw->pw_name, grp->gr_name) == 0)) { mode_t oldmask = umask (0777); @@ -250,7 +250,7 @@ pam_sm_open_session (pam_handle_t *pamh, int flags UNUSED, return PAM_SERVICE_ERR; } - pw = _pammodutil_getpwnam (pamh, name); + pw = pam_modutil_getpwnam (pamh, name); if (pw == NULL) { pam_syslog (pamh, LOG_ERR, "account for %s not found", name); |