Jan Friesse
77fb16e4f6
spec: add exlicit docdir
...
OpenSUSE does not ship docs in the normal dir and their rpm macro
does not appear to set it for us.
Based on corosync 30c7f3319f003efa1abeb2173eef9e5c7943ae5b.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-21 17:15:01 +02:00
Jan Friesse
5e029a4188
spec: Use different BuildRequires for SUSE
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-21 16:42:06 +02:00
Jan Friesse
91e31375b5
init: disable stderr output in systemd unit file
...
Usually both syslog and stderr are enabled so log entries are duplicated
in journal. Solution is to use similar patch as corosync
c34208ad402b45f52b5d3ee8d2a08df0779ec9aa and disable stderr.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-21 15:07:36 +02:00
Jan Friesse
1d80bc21b0
tests: Enlarge timeout for process-list test
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-21 09:18:58 +02:00
Jan Friesse
e5e1575611
spec: Add explicit gcc build dependency
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-09 15:52:51 +02:00
Jan Friesse
ed1610a3c6
config: Remove unneeded qb includes
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-09 15:35:24 +02:00
Jan Friesse
4cd74c8096
qnetd-certutil: Add -G option
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-09 15:05:05 +02:00
Jan Friesse
cb9ea58e00
man: Document NSS database conversion
...
This is not needed at least for cert8 -> cert9, but it's still nice to
have it documented. Also document NSS_IGNORE_SYSTEM_POLICY=1 workaround.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-09 13:59:44 +02:00
Jan Friesse
a6b587c1ef
qdevice-net-certutil: Implement scp wrapper
...
Standard scp doesn't handle copy of file from remote machine to remote
machine very well when agent forwarding is used and no key exists
between the machines.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-09 13:59:44 +02:00
Jan Friesse
b561a902f7
certutil: Add support for new NSS database format
...
New NSS database uses files cert9.db, key4.db and pkcs11.txt. Add
support for these files into cert utilities.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-09 13:59:44 +02:00
Jan Friesse
2c3d881b9c
gitignore: Add testsuite results
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-09 13:59:43 +02:00
Jan Friesse
37fda20a2f
qdevice-cmap: Fix compiler warning on Sparc/ARM
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-08 12:41:20 +02:00
Jan Friesse
d71bfdb3fd
tests: Notify process-list after trap was created
...
Previously there was no waiting for establish of bash trap.
This may result in situation when sigint/term was send before trap
making test fail.
Solution is to catch the sigusr1 and sigusr2 signals in tests and wait
till these signals are sent by bash after trap is established.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-08 08:10:49 +02:00
Jan Friesse
466ab62f10
unix-socket: Fix snprintf warning
...
Base N on sizeof sun_path instead of strlen of input path.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-05-02 15:19:23 +02:00
Jan Friesse
b27e907cbd
tests: enlarge process-list timeouts
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-04-27 15:36:10 +02:00
Jan Friesse
2c963e4cc7
tests: process-list add stdlib include
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-04-27 11:10:46 +02:00
Jan Friesse
7defde9414
tests: Fix process-list test to work on FreeBSD
...
FreeBSD true and false commands are installed in the /usr/bin prefix
instead of Linux /bin.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-04-27 11:03:20 +02:00
Ferenc Wágner
fdbbe724e8
Fix typo: sucesfully -> successfully
...
Signed-off-by: Ferenc Wágner <wferi@debian.org>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2018-04-20 12:11:22 +02:00
Bin Liu
5aaabea8f5
qdevice: optarg should be str in init_from_cmap
...
Signed-off-by: Bin Liu <bliu@suse.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2018-04-19 10:58:26 +02:00
Jan Friesse
a87af76b32
spec: Remove unused clean section
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-04-12 16:10:41 +02:00
Jan Friesse
9e98bf449d
msgio: Remove unused code
...
Blocking version of send was used in the very early phases of qdevice
development and it's not used any longer, so it make sense to delete
it.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-04-03 09:01:26 +02:00
Jan Friesse
347b9405f0
msgio: Fix reading of msg longer than PR_INT32_MAX
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-23 17:23:50 +01:00
Jan Friesse
3b21d7584c
qnetd: Replace strtol by strtonum
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:34:00 +01:00
Jan Friesse
c508183698
qdevice: Replace strtol by strtonum
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:33:59 +01:00
Jan Friesse
b0c1ef3ade
Add safer wrapper of strtoll
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:33:59 +01:00
Jan Friesse
d5d7b26bff
Check if user_data can be dereferenced
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:33:59 +01:00
Jan Friesse
7d150ecb65
Nodelist is set into string not array
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:33:59 +01:00
Jan Friesse
4f3763b0f0
Fix NULL pointer dereference
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:33:59 +01:00
Jan Friesse
164de0a8c0
Quote certutils scripts properly
...
Also remove unused variables.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:33:59 +01:00
Jan Friesse
158811557b
init: Quote subshell result properly
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:33:59 +01:00
Jan Friesse
debef989fd
spec: Modernize spec file a bit
...
Thanks to Robert-André Mauchin <zebob.m@gmail.com> for spec file review
and comments.
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-01-25 10:33:17 +01:00
Jan Friesse
9a1955a7d6
Initial import from corosync codebase
...
Used the code from corosync master
(31ddba64a2726bcedf81eb84df2e2da4846832f7)
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-01-23 14:24:36 +01:00