]> git.infradead.org Git - users/dhowells/kafs-client.git/log
users/dhowells/kafs-client.git
4 years agoMove to version 0.5 master v0.5
David Howells [Thu, 18 Jun 2020 15:17:41 +0000 (16:17 +0100)]
Move to version 0.5

- kafs-dns: Fix the -V flag.
- kafs-dns: Fix srv[=N] callout option.
- Add manpages for kafs-dns and kafs-preload.
- kafs-preload: Fix the debugging output.
- kafs-dns: Use the right name in the help output and syslog logging.
- Rename the etc.conf source to client.conf as that's the installation name

Signed-off-by: David Howells <[email protected]>
4 years agoRename etc.conf to client.conf
Bill MacAllister [Tue, 9 Jun 2020 01:50:57 +0000 (01:50 +0000)]
Rename etc.conf to client.conf

This change makes debian packaging easier.

Signed-off-by: Bill MacAllister <[email protected]>
Signed-off-by: David Howells <[email protected]>
4 years agoUpdate CFLAGS usage in Makefile
Bill MacAllister [Tue, 9 Jun 2020 01:43:30 +0000 (01:43 +0000)]
Update CFLAGS usage in Makefile

Do not force CFLAGS in src/Makefile and allow the environment to
override.  This fixes discarding of hardening flags set by the Debian
build system.

Signed-off-by: Bill MacAllister <[email protected]>
Signed-off-by: David Howells <[email protected]>
4 years agoUpdate kafs-dns help and syslog output
David Howells [Tue, 9 Jun 2020 01:41:32 +0000 (01:41 +0000)]
Update kafs-dns help and syslog output

This patch modifies the help display and syslog output of the kafs-dns
binary to correctly identify the binary generating the output.

Reported-by: Bill MacAllister <[email protected]>
Signed-off-by: David Howells <[email protected]>
4 years agoman: Add kafs-preload(8)
David Howells [Tue, 9 Jun 2020 13:26:30 +0000 (14:26 +0100)]
man: Add kafs-preload(8)

Add a manual page for the kafs-preload internal helper program as Debian
doesn't put it in /usr/libexec/ but rather puts it in /usr/bin/.

Reported-by: Bill MacAllister <[email protected]>
Signed-off-by: David Howells <[email protected]>
4 years agoImprove the debug-mode output of kafs-preload
David Howells [Tue, 9 Jun 2020 13:41:50 +0000 (14:41 +0100)]
Improve the debug-mode output of kafs-preload

Make "kafs-preload -D" indicate which proc file it would writing cell
addition lines to so that it prints:

WRITE 'add example.org' TO /proc/fs/afs/cells

instead of:

add example.org

Signed-off-by: David Howells <[email protected]>
4 years agoman: Add kafs-dns(8)
David Howells [Tue, 9 Jun 2020 12:36:44 +0000 (13:36 +0100)]
man: Add kafs-dns(8)

Add a manual page for the kafs-dns internal helper program as Debian
doesn't put it in /usr/libexec/ but rather puts it in /usr/bin/.

Reported-by: Bill MacAllister <[email protected]>
Signed-off-by: David Howells <[email protected]>
4 years agoFix a couple of bugs in kafs-dns
David Howells [Tue, 9 Jun 2020 13:24:55 +0000 (14:24 +0100)]
Fix a couple of bugs in kafs-dns

Fix kafs-dns in the following ways:

 (1) The -V flag should not require an argument.

 (2) The srv=N callout info should check that N is supplied, else it will
     crash.

Signed-off-by: David Howells <[email protected]>
4 years agoDoc: Add a Developer's Certificate of Origin
David Howells [Tue, 9 Jun 2020 12:24:37 +0000 (13:24 +0100)]
Doc: Add a Developer's Certificate of Origin

Add a Developer's Certificate of Origin for the use of people submitting
patches.

Signed-off-by: David Howells <[email protected]>
4 years agoMove to version 0.4 v0.4
David Howells [Tue, 12 May 2020 00:40:26 +0000 (01:40 +0100)]
Move to version 0.4

- Use AF_ALG rather than OpenSSL's libcrypto.
- Move the aklog.1 manpage to the -compat rpm.

Signed-off-by: David Howells <[email protected]>
4 years agorpm: Move aklog.1 manpage synonym to the compat rpm
David Howells [Wed, 20 May 2020 15:07:19 +0000 (16:07 +0100)]
rpm: Move aklog.1 manpage synonym to the compat rpm

Move the aklog.1 manual page synonym to the kafs-client-compat rpm so as
not to collide with other AFS clients.

Reported-by: Marc Dionne <[email protected]>
Signed-off-by: David Howells <[email protected]>
4 years agoMakefile: Mark rpmlint, rpm and tarball targets as always needing doing
David Howells [Wed, 20 May 2020 15:23:00 +0000 (16:23 +0100)]
Makefile: Mark rpmlint, rpm and tarball targets as always needing doing

Mark the rpmlint, rpm, tarball and $(ZTARBALL) targets as always needing
doing in the main makefile so that they don't get blocked by existing stuff
of the same pathname.

Signed-off-by: David Howells <[email protected]>
4 years agoaklog: Use AF_ALG and own DES functions for crypto instead of OpenSSL
David Howells [Tue, 7 Apr 2020 15:05:16 +0000 (16:05 +0100)]
aklog: Use AF_ALG and own DES functions for crypto instead of OpenSSL

Use AF_ALG to access the HMAC(MD5) function needed for key derivation and
provide the missing DES functions which mean that OpenSSL is no longer
required.

Signed-off-by: David Howells <[email protected]>
4 years agoMakefile: Use rpmspec to calculate package name
David Howells [Tue, 12 May 2020 00:16:17 +0000 (01:16 +0100)]
Makefile: Use rpmspec to calculate package name

Use the rpmspec program to calculate the package name rather than trying to
substitute macros that keep changing.

Signed-off-by: David Howells <[email protected]>
5 years agoAddress Fedora review comments v0.3
David Howells [Fri, 5 Jul 2019 22:35:44 +0000 (23:35 +0100)]
Address Fedora review comments

Address the following Fedora review comments:

 - spec: Make the -libs rpm own the /etc/kafs/ directory.
 - spec: Use %make_build and %make_install to bring in %{?_smp_mflags}
 - spec: Use %global instead of %define

These are from:

https://bugzilla.redhat.com/show_bug.cgi?id=1724281

Signed-off-by: David Howells <[email protected]>
5 years agoMove to version 0.2
David Howells [Tue, 16 Apr 2019 20:06:32 +0000 (21:06 +0100)]
Move to version 0.2

Signed-off-by: David Howells <[email protected]>
5 years agomakefile: Build the tarball and then build the rpm from that
David Howells [Tue, 25 Jun 2019 19:32:28 +0000 (20:32 +0100)]
makefile: Build the tarball and then build the rpm from that

Build the tarball and then build the rpm from that as separate steps.

Signed-off-by: David Howells <[email protected]>
5 years agoUse the filesystem-afs package to provide /afs on Fedora
David Howells [Fri, 7 Jun 2019 15:11:30 +0000 (16:11 +0100)]
Use the filesystem-afs package to provide /afs on Fedora

Use the filesystem-afs subpackage to provide and maintain the /afs
directory on Fedora rather than doing it here as it will cause the upgrade
to fail if the newer package also provides /afs.

Signed-off-by: David Howells <[email protected]>
5 years agoFix default source
David Howells [Thu, 2 May 2019 15:11:32 +0000 (16:11 +0100)]
Fix default source

Set the default source for a vl server list extracted from the
configuration to kafs_record_from_config.

Signed-off-by: David Howells <[email protected]>
5 years agoman: Add some missing manpages
David Howells [Tue, 16 Apr 2019 20:22:13 +0000 (21:22 +0100)]
man: Add some missing manpages

Signed-off-by: David Howells <[email protected]>
5 years agoaklog: Make cell argument optional
David Howells [Tue, 16 Apr 2019 15:48:35 +0000 (16:48 +0100)]
aklog: Make cell argument optional

Make cell argument to aklog-kafs optional, reading the cell from
/proc/net/afs/rootcell if not given.

Also support --help.

Signed-off-by: David Howells <[email protected]>
5 years agokafs-client.spec: Add gcc as a BuildRequires
Jonathan Billings [Wed, 20 Feb 2019 13:43:34 +0000 (08:43 -0500)]
kafs-client.spec: Add gcc as a BuildRequires

Fedora requires gcc to be listed as an explicit build requirement.  See:

https://docs.fedoraproject.org/en-US/packaging-guidelines/C_and_C++/

Signed-off-by: Jonathan Billings <[email protected]>
Signed-off-by: David Howells <[email protected]>
5 years agoHonour 'sysname' setting in preload
David Howells [Tue, 22 Jan 2019 17:47:31 +0000 (17:47 +0000)]
Honour 'sysname' setting in preload

If a defaults section exists in the configuration and this contains a
setting for the workstation's @sys substitution list, e.g.:

        [defaults]
        sysname = fedora28_x86 amd64_linux

then load this into kernel after the cell list has been preloaded.

Signed-off-by: David Howells <[email protected]>
5 years agoHonour 'thiscell' setting in preload
David Howells [Tue, 22 Jan 2019 13:58:46 +0000 (13:58 +0000)]
Honour 'thiscell' setting in preload

If a defaults section exists in the configuration and this contains a
setting for the workstation's cell, e.g.:

[defaults]
thiscell = example.com

then load this into kernel after the cell list has been preloaded.

Signed-off-by: David Howells <[email protected]>
5 years agoFix verbose() func in kafs-preload
David Howells [Tue, 22 Jan 2019 10:39:02 +0000 (10:39 +0000)]
Fix verbose() func in kafs-preload

When kafs-preload's verbose() function was made to support syslog, the
original vprintf was left in and thus duplicated.  However, the va pointer
has been advanced and so this SEGV's.

Fixes: f058d9bb7b22 ("Use syslog in kafs-preload program")
Signed-off-by: David Howells <[email protected]>
5 years agoChange config to /etc/kafs/client.{conf,d}
David Howells [Mon, 10 Dec 2018 22:04:32 +0000 (22:04 +0000)]
Change config to /etc/kafs/client.{conf,d}

Change the name of the config file and dir to /etc/kafs/client.{conf,d} rather
than /etc/kafs/cellservdb.*.

Note that the default cellservdb.conf is unrenamed and is included by
client.conf.

Signed-off-by: David Howells <[email protected]>
5 years agoUse syslog in kafs-preload program
David Howells [Tue, 11 Dec 2018 00:23:00 +0000 (00:23 +0000)]
Use syslog in kafs-preload program

Write verbose messages to the syslog in the kafs-preload programme and also
set the name of the facility.

Signed-off-by: David Howells <[email protected]>
5 years agoDepend on keyutils-1.6
David Howells [Wed, 14 Nov 2018 18:20:09 +0000 (18:20 +0000)]
Depend on keyutils-1.6

Set a dependency on keyutils-1.6 so that the DNS record lookup can be
overridden specifically for AFSDB record requests (including AFS SRV
lookups).

Signed-off-by: David Howells <[email protected]>
6 years agoAdd a utility library and number of utility programs
David Howells [Thu, 20 Sep 2018 11:33:51 +0000 (12:33 +0100)]
Add a utility library and number of utility programs

Add a utility library to do parsing of cellserv database and DNS lookups
for server details.  This will be of use to the kafs-utils package as well.
Parts of it may also be generally useful, so it may get moved into
keyutils.

Add a number of utility programs:

 (1) kafs-check-config: Sysadmin tool.  Check the cellserv database and
     allow it to be dumped.

 (2) kafs-preload: Systemd auxiliary program.  Preload the in-kernel cell
     database from the configuration.

 (3) dns_afsdb: Request-key upcall program.  Fetch the VL server list and
     addresses lists for a cell on behalf of the kernel.

Add a systemd service to configure the kafs dynamic root by preloading cell
names into the cell database.

Signed-off-by: David Howells <[email protected]>
6 years agoUpdate the package, drawing on Jonathan S. Billings's package
David Howells [Mon, 10 Sep 2018 10:39:44 +0000 (11:39 +0100)]
Update the package, drawing on Jonathan S. Billings's package

Signed-off-by: David Howells <[email protected]>
6 years agoDifferentiate kafs stuff by name
David Howells [Thu, 1 Mar 2018 11:39:38 +0000 (11:39 +0000)]
Differentiate kafs stuff by name

Differentiate kafs and kafs toolage from other AFS tools by name so that
they can be installed and used in parallel.  To this end, use /kafs instead
of /afs as the mountpoint and rename aklog to aklog-kafs.

Signed-off-by: David Howells <[email protected]>
6 years agoAdd /afs directory
David Howells [Fri, 9 Feb 2018 10:52:24 +0000 (10:52 +0000)]
Add /afs directory

6 years agoFix Makefile
David Howells [Fri, 9 Feb 2018 10:44:34 +0000 (10:44 +0000)]
Fix Makefile

6 years agoAdd README
David Howells [Fri, 9 Feb 2018 10:42:42 +0000 (10:42 +0000)]
Add README

6 years agoFix Makefile and spec
David Howells [Fri, 9 Feb 2018 10:36:43 +0000 (10:36 +0000)]
Fix Makefile and spec

6 years agoFix Makefile
David Howells [Fri, 9 Feb 2018 10:33:40 +0000 (10:33 +0000)]
Fix Makefile

6 years agoAdd Makefile
David Howells [Fri, 9 Feb 2018 10:32:55 +0000 (10:32 +0000)]
Add Makefile

6 years agoInitial commit
David Howells [Fri, 9 Feb 2018 10:32:08 +0000 (10:32 +0000)]
Initial commit