Commit graph

312 commits

Author SHA1 Message Date
Dag-Erling Smørgrav
620f3bf045 Constify the msg field of struct pam_message, and realign.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@263 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 14:15:45 +00:00
Dag-Erling Smørgrav
922d9cb144 Avoid side effects in macro arguments (don't I ever learn?); also
address some related style issues.

Submitted by:	Dmitry V. Levin <ldv@altlinux.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@262 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:41:27 +00:00
Dag-Erling Smørgrav
108a953440 Staticize the default prompts.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@261 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:41:15 +00:00
Dag-Erling Smørgrav
5c411be234 Change '-type f' to '-not -type d' to make sure we also get symlinks
and whatnot.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@260 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:32:54 +00:00
Dag-Erling Smørgrav
f8982aa271 Joe Marcus Clarke is a FreeBSD committer, so list his freebsd.org
address.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@259 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:16:42 +00:00
Dag-Erling Smørgrav
ba03913cf0 Checking the return value from pam_get_item(3) isn't enough, we also
have to check that the item isn't NULL.

Submitted by:	marcus


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@258 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:14:58 +00:00
Dag-Erling Smørgrav
ff7d10eaa1 A script for removing files P4 doesn't know about.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@257 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-13 10:23:28 +00:00
Dag-Erling Smørgrav
8ef4fd3218 Streamline the distribution process.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@256 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-13 10:22:25 +00:00
Dag-Erling Smørgrav
a3c9744349 Have dist.sh automatically set the release date.
Touch all files in the distribution directory before rolling the
release to avoid false negative dependency checks later.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@255 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:52:07 +00:00
Dag-Erling Smørgrav
2f755d1e37 Nits.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@254 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:35:37 +00:00
Dag-Erling Smørgrav
2061441423 Update the distribution script to use configure and GNU make.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@253 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:30:40 +00:00
Dag-Erling Smørgrav
1ae60f36ce Document the installation procedure.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@252 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:30:10 +00:00
Dag-Erling Smørgrav
5de0bf6bae Autoconfuse.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@251 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:29:37 +00:00
Dag-Erling Smørgrav
1c16675283 Paranoia: clear buffers before returning.
Submitted by:	Dmitry V. Levin <ldv@altlinux.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@250 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 00:47:28 +00:00
Dag-Erling Smørgrav
0bca19fe3b Fix some markup issues pointed out by ru@.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@249 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-02 21:41:24 +00:00
Dag-Erling Smørgrav
c25cf2c668 Remove debugging output.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@248 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-02 17:03:15 +00:00
Dag-Erling Smørgrav
f0f2b56813 Include openpam_readline.3 in the tarball.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@247 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:49:20 +00:00
Dag-Erling Smørgrav
d228372583 Release documentation for OpenPAM Digitalis.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@246 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:46:10 +00:00
Dag-Erling Smørgrav
049385996b Give up trying to keep track of what has changed and what hasn't;
just slap a 2003 copyright on everything.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@245 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:34:11 +00:00
Dag-Erling Smørgrav
202b021ebb The next release will be Digitalis.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@244 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:28:03 +00:00
Dag-Erling Smørgrav
044448812b Incorporate patches from Dmitry V. Levin which improve the policy
loader, reducing the number of times each file is read.  Also fix
a few minor nits (such as making facility names and control flags
case insensitive like they are in Solaris).


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@243 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:23:25 +00:00
Dag-Erling Smørgrav
3326a91846 Cross-reference openpam_{get,set}_option(3).
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@242 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:05:15 +00:00
Dag-Erling Smørgrav
6c68711fe1 Continue improving the new configuration parser, particularly error
reporting: error messages relating to policy files now include line
numbers, and the parser will warn about invalid facility names.

Also fix an off-by-one bug in the option handling code.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@241 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-26 15:31:28 +00:00
Dag-Erling Smørgrav
0fe6f41f7c Overhaul the configuration parser. This adds support for continuation
lines and policy inclusion.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@240 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 18:34:31 +00:00
Dag-Erling Smørgrav
f8a8bd8714 Don't include DESTDIR in BINDIR and LIBDIR; OTOH, provide a default
DESTDIR of /usr.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@239 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 18:31:54 +00:00
Dag-Erling Smørgrav
49189d9bbc Use RTLD_NOW where available, and define it to RTLD_LAZY otherwise.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@238 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 13:41:46 +00:00
Dag-Erling Smørgrav
9a08cc3e52 Note that OpenPAM now builds on most glibc-based Linux platforms.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@237 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 12:58:55 +00:00
Dag-Erling Smørgrav
592df31db1 Remove trailing semicolons from macros.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@236 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 12:53:36 +00:00
Dag-Erling Smørgrav
84ba876926 No need to explicitly clear pointers now that we use FREE().
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@235 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 12:52:31 +00:00
Dag-Erling Smørgrav
df0aac6712 Return code paranoia: compare against 0 instead of -1.
Suggested by:	Dmitry V. Levin <ldv@altlinux.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@234 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:52:28 +00:00
Dag-Erling Smørgrav
7f62c5701c Two more cases of asprintf(3) replacing malloc(3) + sprintf(3).
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@233 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:47:00 +00:00
Dag-Erling Smørgrav
570d0c7751 With one single exception (where the pointer is obviously being
immediately overwritten), replace all use of free(3) with a macro
that clears the pointer after freeing the memory it pointed to.

Suggested by:	Dmitry V. Levin <ldv@altlinux.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@232 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:44:29 +00:00
Dag-Erling Smørgrav
bd68953705 Whitespace cleanup.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@231 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:34:16 +00:00
Dag-Erling Smørgrav
24e145dd10 Revert part of previous commit; openpam_log(3) doesn't really need
this hack.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@230 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:33:56 +00:00
Dag-Erling Smørgrav
4ec4c17dcd Reorganize. Document. Replace malloc() + sprintf() with asprintf().
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@229 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:32:38 +00:00
Dag-Erling Smørgrav
af75375820 Tweak the function-locating regexp to handle the slightly special
case of openpam_log(3) better.  Also work around a mysterious Perl
bug by using a loop to emulate the 'g' regexp flag.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@228 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:24:23 +00:00
Dag-Erling Smørgrav
151085d688 NOLIST doesn't actually do anything, and hasn't for quite a while.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@227 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 18:53:26 +00:00
Dag-Erling Smørgrav
3eeb089306 Allow libpam to build on Linux.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@226 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 18:51:33 +00:00
Dag-Erling Smørgrav
82eec0110d Make this build on glibc systems.
Submitted by:	Dmitry V. Levin <ldv@altlinux.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@225 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 18:33:26 +00:00
Dag-Erling Smørgrav
64d0536448 Add #include <grp.h> which I missed due to namespace pollution.
Submitted by:	Dmitry V. Levin <ldv@altlinux.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@224 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 18:32:33 +00:00
Dag-Erling Smørgrav
100e6e3f0e Add Dmitry Levin (patches and fruitful conversation)
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@223 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-23 23:48:51 +00:00
Dag-Erling Smørgrav
f013f77bff Correct old paste-o.
Submitted by:	Dmitry V. Levin <ldv@altlinux.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@222 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-23 23:47:31 +00:00
Dag-Erling Smørgrav
a59c768d3e Update copyright dates for files that have changed this year. Also
change the copyright date on generated man pages from 2002 to 2001-2003
since work on this part of OpenPAM started in late 2001.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@221 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:54:04 +00:00
Dag-Erling Smørgrav
9c7438a4b1 Update portability status.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@220 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:48:56 +00:00
Dag-Erling Smørgrav
e9a7e1640f OpenBSD doesn't create libpam.so at build time, and FreeBSD ignores the
minor number, so the only file we can safely depend on is libpam.a.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@219 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:48:36 +00:00
Dag-Erling Smørgrav
2b0eb75262 Build everything (rather than just the man pages) so the release
will fail if the code won't build.  Finish the release by showing
the MD5 checksum of the tarball.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@218 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:45:45 +00:00
Dag-Erling Smørgrav
9faa960d34 Credit Mike Petullo <mike@flyn.org> for his OpenBSD patches.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@217 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:42:26 +00:00
Dag-Erling Smørgrav
98f9303b57 Use RTLD_LAZY rather than RTLD_NOW (which apparently isn't supported
on all platforms, notably OpenBSD).

Submitted by:	Mike Petullo <mike@flyn.org>


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@216 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:42:04 +00:00
Dag-Erling Smørgrav
d9906b5db1 Support su'ing to another user with arguments. Drop privs in the
child rather than in the parent so that pam_close_session(3) will be
called with privs.  Simplify some of the error handling.

Based on patches received from Mike Petullo <mike@flyn.org>.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@215 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:40:18 +00:00
Dag-Erling Smørgrav
5ad9bf2e77 Propagate version numbers and installation directories throughout
the tree using Makefile.inc.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@214 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-13 14:37:12 +00:00