History log of /freebsd/lib/libpam/modules/pam_login_access/pam_login_access.c (Results 1 – 25 of 37)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/14.0.0
# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0
# abaad9d7 18-Feb-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r358049 through r358074.


# e8c4b9d4 18-Feb-2020 Cy Schubert <cy@FreeBSD.org>

This commit makes significant changes to pam_login_access(8) to bring it
up to par with the Linux pam_access(8).

Like the Linux pam_access(8) our pam_login_access(8) is a service module
for pam(3) t

This commit makes significant changes to pam_login_access(8) to bring it
up to par with the Linux pam_access(8).

Like the Linux pam_access(8) our pam_login_access(8) is a service module
for pam(3) that allows a administrator to limit access from specified
remote hosts or terminals. Unlike the Linux pam_access, pam_login_access
is missing some features which are added by this commit:

Access file can now be specified. The default remains /etc/access.conf.
The syntax is consistent with Linux pam_access.

By default usernames are matched. If the username fails to match a match
against a group name is attempted. The new nodefgroup module option will
only match a username and no attempt to match a group name is made.
Group names must be specified in brackets, "()" when nodefgroup is
specified. Otherwise the old backward compatible behavior is used.
This is consistent with Linux pam_access.

A new field separator module option allows the replacement of the default
colon (:) with any other character. This facilitates potential future
specification of X displays. This is also consistent with Linux pam_access.

A new list separator module option to replace the default space/comma/tab
with another character. This too is consistent with Linux pam_access.

Linux pam_access options not implemented in this commit are the debug
and audit options. These will be implemented at a later date.

Reviewed by: bjk, bcr (for manpages)
Approved by: des (blanket, implicit)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D23198

show more ...


Revision tags: release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0
# 5e53a4f9 26-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

lib: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
pr

lib: further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

show more ...


Revision tags: release/10.4.0, release/11.1.0, release/11.0.1, release/11.0.0, release/10.3.0, release/10.2.0
# 9268022b 19-Nov-2014 Simon J. Gerraty <sjg@FreeBSD.org>

Merge from head@274682


Revision tags: release/10.1.0
# c81ab40b 11-Oct-2014 Alexander V. Chernikov <melifaro@FreeBSD.org>

Merge HEAD@r272944.


# 107af8f2 05-Oct-2014 Neel Natu <neel@FreeBSD.org>

IFC @r272481


# 1ce4b357 04-Oct-2014 Alexander V. Chernikov <melifaro@FreeBSD.org>

Sync to HEAD@r272516.


# 698271d8 02-Oct-2014 Glen Barber <gjb@FreeBSD.org>

Reintegrate head@r272414

Sponsored by: The FreeBSD Foundation


# 1628e293 01-Oct-2014 Dag-Erling Smørgrav <des@FreeBSD.org>

Consistently cast tty and user to const char * in printf()-like contexts.


# 5e24ef87 29-Sep-2014 Bjoern A. Zeeb <bz@FreeBSD.org>

Hopefully fix build breakage with gcc passing void * instead of char *
to "%s" format string after r272280.

PR: 83099 193927
MFC after: 3 days
X-MFC with: r272280


# 4c37ae30 29-Sep-2014 Dag-Erling Smørgrav <des@FreeBSD.org>

Instead of failing when neither PAM_TTY nor PAM_RHOST are available, call
login_access() with "**unknown**" as the second argument. This will allow
"ALL" rules to match.

Reported by: Tim Daneliuk <

Instead of failing when neither PAM_TTY nor PAM_RHOST are available, call
login_access() with "**unknown**" as the second argument. This will allow
"ALL" rules to match.

Reported by: Tim Daneliuk <tundra@tundraware.com>
Tested by: dim@
PR: 83099 193927
MFC after: 3 days

show more ...


# 4e27d36d 17-Sep-2014 Neel Natu <neel@FreeBSD.org>

IFC @r271694


# 4c1d902b 15-Sep-2014 Dag-Erling Smørgrav <des@FreeBSD.org>

r271256 fixed one segfault condition but introduced another due to the
wrong operator being used in the tty check.

Reported by: avg@
MFH: 3 days


# 067268ed 08-Sep-2014 Dag-Erling Smørgrav <des@FreeBSD.org>

Fail rather than segfault if neither PAM_TTY nor PAM_RHOST is set.

PR: 83099
MFC after: 3 days


Revision tags: release/9.3.0, release/10.0.0, release/9.2.0, release/8.4.0, release/9.1.0, release/8.3.0_cvs, release/8.3.0, release/9.0.0, release/7.4.0_cvs, release/8.2.0_cvs, release/7.4.0, release/8.2.0, release/8.1.0_cvs, release/8.1.0, release/7.3.0_cvs, release/7.3.0, release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0, release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1
# af9b4074 10-Feb-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix numerous constness and aliasing issues.


Revision tags: release/5.2.0_cvs, release/5.2.0
# 91e93869 11-Dec-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix strict aliasing breakage in PAM modules (except pam_krb5, which needs
more work than the others). This should make most modules build with -O2.


Revision tags: release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0
# ccd703cf 30-Apr-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Treat an empty PAM_RHOST the same as a NULL one.

PR: bin/51508


Revision tags: release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# 24fe7ba0 13-Apr-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Major cleanup:

- add __unused where appropriate
- PAM_RETURN -> return since OpenPAM already logs the return value.
- make PAM_LOG use openpam_log()
- make PAM_VERBOSE_ERROR use openpam_get_

Major cleanup:

- add __unused where appropriate
- PAM_RETURN -> return since OpenPAM already logs the return value.
- make PAM_LOG use openpam_log()
- make PAM_VERBOSE_ERROR use openpam_get_option() and check flags
for PAM_SILENT
- remove dummy functions since OpenPAM handles missing service
functions
- fix various warnings

Sponsored by: DARPA, NAI Labs

show more ...


# f03a4b81 15-Mar-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

NAI DBA update.


# 8c66575d 05-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

#include cleanup.

Sponsored by: DARPA, NAI Labs


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# ac569969 03-Feb-2002 Mark Murray <markm@FreeBSD.org>

WARNS=n fixes (and some stylistic issues).


# c2065008 24-Jan-2002 Mark Murray <markm@FreeBSD.org>

WARNS=4 fixes. Protect with NO_WERROR for the modules that have
warnings that are hard to fix or that I've been asked to leave alone.


# d233082f 24-Jan-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Correctly interpret PAM_RHOST being unset as an indicator of a local
login.


# c2d5249e 24-Jan-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix some pastos. Rather shoddy of me...

Sponsored by: DARPA, NAI Labs


12