]> www.infradead.org Git - users/dhowells/kafs-client.git/log
users/dhowells/kafs-client.git
6 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 <dhowells@redhat.com>
6 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 <dhowells@redhat.com>
6 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 <dhowells@redhat.com>
6 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 <dhowells@redhat.com>
6 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 <dhowells@redhat.com>
6 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 <dhowells@redhat.com>
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 <dhowells@redhat.com>
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 <dhowells@redhat.com>
7 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 <dhowells@redhat.com>
7 years agoAdd /afs directory
David Howells [Fri, 9 Feb 2018 10:52:24 +0000 (10:52 +0000)]
Add /afs directory

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

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

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

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

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

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