openafs/tests/TESTS

31 lines
362 B
Plaintext
Raw Permalink Normal View History

util/ktime
util/exec-alt
util/volutil
auth/keys
2010-09-15 11:17:14 +01:00
auth/superuser
auth/authcon
auth/realms
tests: Modernize writekeyfile.c tests/auth/writekeyfile.c contains some code used to generate tests/auth/KeyFile, which is used to test code interpreting the old-style KeyFile format. This code currently has a few problems: - We don't check the results of afstest_mkdtemp, which could allow symlink attacks from other users on the system. - We duplicate some logic from afstest_BuildTestConfig, in order to build a temporary config dir. - writekeyfile isn't built or run by default (it only exists to generate KeyFile, so it's almost never run), so eventual bitrot is quite likely, and the existing code already generates warnings. To avoid this, change writekeyfile.c to use the existing afstest_BuildTestConfig to generate a local config dir. To ensure we avoid bitrot, build writekeyfile by default, and create a test to run it, to make sure it can generate a KeyFile as expected. Note that the KeyFile.short we test against is different than the KeyFile currently in the tree. The existing KeyFile was generated from an older OpenAFS release, which always generated 100-byte KeyFiles, even if we only have a few keys. The current codebase only writes out as much key data as needed, so the generated KeyFiles are shorter (but still understandable by older OpenAFS releases). Keep the old 100-byte KeyFile around, since that's what older OpenAFS would generate, and create a new KeyFile.short to test against, to make sure our code for generating KeyFiles doesn't change any further. Change-Id: Ibe9246c6dd808ed2b2225dd7be2b27bbdee072fd Reviewed-on: https://gerrit.openafs.org/14246 Reviewed-by: Cheyenne Wills <cwills@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Tested-by: BuildBot <buildbot@rampaginggeek.com>
2020-06-17 18:23:46 +01:00
auth/writeoldkey
cmd/command
opr/cache
opr/dict
opr/fmt
opr/jhash
opr/queues
opr/rbtree
opr/softsig
opr/time
opr/uuid
ptserver/pt_util
ptserver/pts-man
rx/atomic
rx/event
rx/perf
rx/simple
volser/vos-man
volser/vos
bucoord/backup-man
kauth/kas-man
bozo/bos-man
venus/fs-man