Commit Graph

18 Commits

Author SHA1 Message Date
Karel Zak 3632ce21b7 build-sys: convert libuuid/ to module
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-26 17:37:37 +02:00
Karel Zak 1425948c8c uuidd: move from /var/run/uuidd to /run/uuidd
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-18 15:46:20 +02:00
Karel Zak 949b61c2b2 libuuid: move clock.txt path to header file
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-18 15:36:00 +02:00
Petr Uzel 96ce175801 libuuid: use max() from c.h
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-05-23 09:56:51 +02:00
Petr Uzel f80e9bc30a libuuid: move read_all to include/all-io.h
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-05-15 11:32:36 +02:00
Petr Uzel c544aa2c25 libuuid: avoid double open and leaking fd (reworked)
This reverts commit 6126f7a53c
and fixes the double open and leaking descriptor in a different way,
that is by using newly introduced function 'have_random_source()'
to check whether good random source is available while deciding
which uuid type to generate (random/time).

This is better than calling random_get_fd() twice, passing the file
descriptor down the stack and reusing it in next call to
random_get_fd().

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-05-10 11:43:49 +02:00
Petr Uzel 6126f7a53c libuuid: avoid double open and leaking descriptor
We are opening /dev/urandom twice in uuid_generate(): first to check if
the file is available and then later __uuid_generate_random() again to
actually get the random data. Moreover, descriptor from the first open
is leaking.

Fix by passign the descriptor down the stack and reusing it there.

References: http://marc.info/?l=util-linux-ng&m=133406051131131&w=2

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-05-04 15:14:24 +02:00
Petr Uzel ea4f8845f0 libuuid: don't exec uuidd
Executing the daemon from the shared library is not quite elegant
solution. Drop this functionality and require uuidd (should it be
needed) to be started from the initscript or by socket-activation.

References: http://www.spinics.net/lists/util-linux-ng/msg05967.html

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-05-04 15:14:18 +02:00
Petr Uzel 7ec85b5b71 libuuid: use EXIT_FAILURE
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-05-04 15:14:14 +02:00
Petr Uzel e584fa80d7 libuuid: fix typo in uuid_compare manpage
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-04-27 12:30:42 +02:00
Karel Zak 94988fc902 libuuid: use get_fd_tabsize()
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-23 14:00:18 +02:00
Davidlohr Bueso b2244df618 libuuid: use randutils
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2012-04-10 13:15:35 +02:00
Sami Kerola f06b43285d build-sys: enhance readability of the autotools files
Several horizontal lists are turned to vertical, and sorted to
alphabetical order. Additionally spaces are converted to tabs where
ever possible.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-02-28 13:29:35 +01:00
Karel Zak 8890b9138b libuuid: fix includes in man pages
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03 12:32:51 +01:00
maximilian attems 8f4bdfaced libuuid: add limits.h include for OPEN_MAX
Needed as definition for usage in close_all_fds().
Noticed on klibc build.

Signed-off-by: maximilian attems <max@stro.at>
2011-09-07 07:45:52 +02:00
Sami Kerola ce0efc40a1 docs: remove duplicated text
Duplicate text is dealt by referring to license files. The `pg'
command does not need separated license file because the source
file has same text at top of it.

http://www.spinics.net/lists/util-linux-ng/msg05069.html

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-08-30 19:50:34 +02:00
Sami Kerola f98d4f766e docs: Documentation directory added
Move readme, licence, change log, relese notes and other
supplementary files to a Documentation directory. This commit
does not change contents of any other but few Makefile.am files.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-08-12 20:19:52 +02:00
Karel Zak 83d20837dc build-sys: use top-level directory for libuuid rather than shlibs/uuid
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09 21:54:05 +02:00