Commit Graph

46 Commits

Author SHA1 Message Date
c32743808d Revert "Update su tests"
This reverts commit cf8101aaae.
2020-08-28 15:15:47 -05:00
cf8101aaae Update su tests
Some of these tests seem wrong.  The assume that

    su -- -c command

should work, whereas -- should mean pass all remaining arguments
along to the command.

Add some new tests based on examples in Issue 253

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
2020-08-27 23:59:07 -05:00
0a7888b1fa Create a new libsubid
Closes #154

Currently this has three functions: one which returns the
list of subuid ranges for a user, one returning the subgids,
and one which frees the ranges lists.

I might be mistaken about what -disable-man means;  some of
the code suggests it means just don't re-generate them, but
not totally ignore them.  But that doesn't seem to really work,
so let's just ignore man/ when -disable-man.

Remove --disable-shared.  I'm not sure why it was there, but it stems
from long, long ago, and I suspect it comes from some ancient
toolchain bug.

Create a tests/run_some, a shorter version of run_all.  I'll
slowly add tests to this as I verify they work, then I can
work on fixing the once which don't.

Also, don't touch man/ if not -enable-man.

Changelog:
	Apr 22: change the subid list api as recomended by Dan Walsh.
	Apr 23: implement get_subid_owner
	Apr 24: implement range add/release
	Apr 25: finish tests and rebase
	May 10: make @owner const

Signed-off-by: Serge Hallyn <serge@hallyn.com>
2020-06-07 12:11:58 -05:00
089cf55e2c drop svn complications from test runner
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
2020-06-07 12:07:14 -05:00
316a153abb tests: use git to determine top_dir
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
2020-06-07 12:07:09 -05:00
5070132ee6 spelling: with-an 2020-03-17 17:09:26 -04:00
a063580dbb spelling: within 2017-10-22 21:37:53 +00:00
08248f0859 spelling: typical 2017-10-22 21:28:58 +00:00
2c930b19ba spelling: succeeded 2017-10-22 21:23:22 +00:00
4e0ac33eae spelling: password 2017-10-22 21:03:28 +00:00
146a0da7b3 spelling: overridden 2017-10-22 21:01:25 +00:00
008be2848e spelling: nonexistent 2017-10-22 20:54:42 +00:00
63261593c8 spelling: negative 2017-10-22 20:48:57 +00:00
4724e503b0 spelling: multiple 2017-10-22 20:41:18 +00:00
5136659a59 spelling: maximum 2017-10-22 20:33:55 +00:00
0556fea593 spelling: locally 2017-10-22 20:28:46 +00:00
74fcf6f28d spelling: interactive 2017-10-22 20:24:32 +00:00
70eb03ec29 spelling: inserted 2017-10-22 20:22:44 +00:00
1adf386345 spelling: if the 2017-10-22 19:47:52 +00:00
3025b9ebac spelling: groupmod 2017-10-22 19:33:50 +00:00
831ff281d0 spelling: equivalent 2017-10-22 19:11:20 +00:00
742868dc2d spelling: display its 2017-10-22 18:44:58 +00:00
f7abcfb39a spelling: devices 2017-10-22 18:40:47 +00:00
016bc8b813 spelling: default 2017-10-22 18:34:35 +00:00
eb9db854d7 spelling: constraints 2017-10-22 21:07:23 +00:00
60d2888605 spelling: comment 2017-10-22 18:25:35 +00:00
2db724bc50 spelling: change 2017-10-22 08:24:59 +00:00
483de7d614 spelling: beginning 2017-10-22 08:04:51 +00:00
bd6f2760a3 spelling: at the 2017-10-22 08:00:59 +00:00
1e98b3b559 Make language less binary 2017-09-20 17:00:29 +01:00
c8508fabd0 Replace user´s -> user's to make login.def files valid ASCII instead of UTF-8
The Unicode character caused issues in LANG=C environment.
See Debian bug #850338 for details.
2017-01-18 16:54:51 +01:00
6b65c6aeae Test userdel/usermod when homedir is a symlink 2014-09-21 00:36:24 +02:00
3fb292f3c7 Extend checks for changing U/GID in home directory
Add files with user or group owner different from the user.
2014-09-21 00:36:23 +02:00
a8bf8af5aa Extend checks for moving home directory
Add hard link to files inside or outside the home directory)
Add files with user or group owner different from the user.
2014-09-21 00:36:16 +02:00
d8c8e8b4b6 subids options added to usermod's usage 2014-09-21 00:17:30 +02:00
930e76ad0d Provides coverage with traceability to test cases 2014-09-21 00:17:29 +02:00
83b5a746d9 Add missing configuration files 2014-09-21 00:17:27 +02:00
a7f8176be6 useradd now uses link rather than rename 2014-09-21 00:17:26 +02:00
1b4db814ea Add support for syscall failure tests 2014-09-21 00:17:25 +02:00
9ae9ca833a Add cleanup script 2014-09-21 00:17:24 +02:00
66f87b8caf Add config to disable execution of failure tests 2014-09-21 00:17:23 +02:00
bba85fcae3 Add tests for subids handling 2014-09-21 00:16:57 +02:00
a0104a9ed8 Use build_path from common/config.sh 2014-09-20 15:46:14 +02:00
112e015f05 Force removal of files when restoring system config 2014-09-20 15:40:46 +02:00
e6246599eb Update list of files in login and passwd packages 2014-09-20 15:39:32 +02:00
b999d48941 Add tests from the old svn tree
We're losing the svn history (which we could probably keep if we tried
hard enough) but don't consider that worthwhile.

Note these tests are destructive, so run them only in a throwaway
environment like a chroot, container, or vm.

The tests/run.all script should be the one which launches all the tests.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2014-09-17 14:42:55 -05:00