Commit Graph

63 Commits

Author SHA1 Message Date
Mike Steinert
d9b3ff918f Merge pull request #10 from msteinert/ci-matrix
Update CI configuration
2023-09-20 19:25:24 -05:00
Michael Steinert
736c9ebebe Update CI configuration 2023-09-20 19:22:43 -05:00
Mike Steinert
e0a2c7ba60 Merge pull request #8 from 3v1n0/simpler-callbacks
transaction: Use cgo.Handle to pass callback data to PAM
2023-09-20 08:54:38 -05:00
Mike Steinert
718a0b9deb Merge pull request #7 from 3v1n0/rootless-tests
tests: Add more tests on PAM conversations that can run as user
2023-09-20 08:46:09 -05:00
Marco Trevisan (Treviño)
78ffef4acd transaction: Use cgo.Handle to pass callback data to PAM
Go provides a nicer way to handle Go structs lifetime when they
are passed to C now, so use this instead of a custom
implementation that requires to store them in a map
2023-09-19 20:06:38 +02:00
Marco Trevisan (Treviño)
a22a1abf3f transaction_test: Add root-less tests to check pam conversation
Use pam_succeed_if to make it implicitly ask for the user name and
verify that the provided one is correct.

This can safely run as user.
2023-09-19 18:46:25 +02:00
Marco Trevisan (Treviño)
1cab6e699c transaction_test: Add more authentication tests to run as user
So that it's possible also to verify an info text conversation
2023-09-19 18:46:25 +02:00
Marco Trevisan (Treviño)
ca3e79e605 transaction_test: Enable conf-dir tests without root
They don't require the `test` user nor being ran as root
2023-09-19 18:18:56 +02:00
Marco Trevisan (Treviño)
d0c0c8bf18 tests: Move services to a subdirectory
It makes it cleaner to handle, plus it allows adding more.

Also rename the `my-service` to something more self-explanatory.
2023-09-19 18:17:54 +02:00
Mike Steinert
5253f659f3 Merge pull request #6 from msteinert/deps
Update dependencies
2023-04-04 15:44:11 -05:00
Michael Steinert
2c8b026146 Update dependencies 2023-04-04 15:44:38 -05:00
Mike Steinert
313ea6f3ba Merge pull request #5 from didrocks/start_confdir
Allow to define confdir
2022-09-17 16:16:24 -05:00
Didier Roche
376af17c46 Integration test for confdir handling.
Add tests to cover StartConfDir with custom services path.
2022-09-16 08:50:03 +02:00
Didier Roche
bc958bdbd7 Allow to define confdir
PAM has a pam_start_confdir() which allows to define the configuration
directory where all services are located.
This is useful to define your own service on tests in particular, so
that you can control your stack and be independant of the host when
running them.
Allow defining this configuration directory, with a new StartConfDir
function.
Also, allow pre-checking for the API availability with
CheckPamHasStartConfdir().
2022-09-16 08:09:26 +02:00
Michael Steinert
f401703daf Update CI build matrix 2022-08-03 16:07:21 -05:00
Michael Steinert
39406aafe4 Attempt to modernize the repo 2021-12-03 12:05:27 -06:00
Michael Steinert
e613721261 Update CI build matrix 2020-11-30 11:06:57 -06:00
Mike Steinert
913b8f8cdf Merge pull request #3 from andy-js/solaris-fix
Fix build on Solaris
2020-08-10 15:48:41 -05:00
Andrew Stormont
b29ac23417 Fix build on Solaris 2020-08-10 21:32:58 +01:00
Michael Steinert
f29b9f28d6 Update CI build matrix & fix some lint 2019-02-15 12:06:59 -06:00
Michael Steinert
f4cd9f5e29 Update CI build matrix 2017-08-30 10:59:15 -05:00
Mike Steinert
2c288b3ef8 Merge pull request #2 from msteinert/skip-coverage
Skip coverage report for pull requests
2017-07-05 09:26:45 -05:00
Michael Steinert
1a9eb8fe8b Skip coverage report for pull requests 2017-07-05 09:18:20 -05:00
Michael Steinert
db23a9ef3f Update CI build matrix 2017-06-12 11:01:45 -05:00
Michael Steinert
02ccfbfaf0 [ci skip] Update documentation 2015-12-04 10:05:44 -06:00
Michael Steinert
1d0c8bc60c Fix lint 2015-12-04 09:46:42 -06:00
Michael Steinert
7f5fc62ba4 Remove dead code 2015-12-04 09:21:38 -06:00
Michael Steinert
4314ed7dcc Update example code 2015-12-04 09:21:17 -06:00
Michael Steinert
a245f1098c Fix a memory leak 2015-12-04 09:03:39 -06:00
Michael Steinert
8ec1202046 Stop passing Go pointers to C 2015-12-03 14:59:51 -06:00
Michael Steinert
6534f23b39 [ci skip] Update link to official documentation 2015-09-03 15:12:29 -05:00
Michael Steinert
9a42d39dbf Update example 2015-04-11 13:27:31 -05:00
Michael Steinert
8b3b6781b0 Test some failure conditions 2015-04-10 15:28:23 -05:00
Michael Steinert
d5d607bc17 Add Go Report Card badge 2015-04-10 15:11:06 -05:00
Michael Steinert
61a0e177d2 Fix golint warnings 2015-04-10 15:04:52 -05:00
Michael Steinert
b60415a968 Another stab at goveralls 2015-04-09 14:21:10 -05:00
Michael Steinert
7ad21d5bbc Add Coveralls.io 2015-04-09 13:44:52 -05:00
Michael Steinert
9d2ea3b16d Install cover before running tests 2015-04-09 13:16:32 -05:00
Michael Steinert
b4414b73f0 Improve test coverage 2015-04-09 11:37:39 -05:00
Michael Steinert
c88b34e980 Add 2-clause BSD license 2015-04-01 21:53:50 -05:00
Michael Steinert
df889e55a6 Security fixes for conversation handler 2015-03-31 12:19:55 -05:00
Michael Steinert
767cadc80c Small documentation updates 2015-03-30 19:16:13 -05:00
Michael Steinert
8fad614175 Test coverage for SetItem/GetItem 2015-03-30 18:26:47 -05:00
Michael Steinert
3215d873b9 This looks a bit better 2015-03-30 18:20:09 -05:00
Michael Steinert
77471e65f1 Fix a silly bug and add test coverage 2015-03-30 18:13:10 -05:00
Michael Steinert
a0cde3fe01 Rework pam_getenvlist so it doesn't leak 2015-03-30 14:53:16 -05:00
Michael Steinert
b129ae324b Another attempt at Travis-CI configuration 2015-03-29 12:10:31 -05:00
Michael Steinert
1e6184d4c3 Root needs full path to go 2015-03-29 11:34:36 -05:00
Michael Steinert
9c771166c9 Add a test suite 2015-03-29 11:25:00 -05:00
Michael Steinert
b380319c58 Update README 2015-03-28 19:44:51 -05:00