summaryrefslogtreecommitdiffstats
path: root/libuuid/src
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: add CFLAGS and LDFLAGS for daemons and shared libsKarel Zak2013-08-271-1/+6
| | | | | | | | This is necessary for paranoid security guys who believe that things like "-Wl,-z,relro" or "-Wl,-z,bind_now" is a way how to make the world a safer place... Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: use O_CLOEXECKarel Zak2013-04-031-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move tests to check_PROGRAMSKarel Zak2012-07-301-1/+1
| | | | | | Thanks to Mike Frysinger. Signed-off-by: Karel Zak <kzak@redhat.com>
* uuidd: use run configured state directorySami Kerola2012-07-101-1/+1
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert libuuid/ to moduleKarel Zak2012-06-264-145/+56Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* uuidd: move from /var/run/uuidd to /run/uuiddKarel Zak2012-06-181-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: move clock.txt path to header fileKarel Zak2012-06-182-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: use max() from c.hPetr Uzel2012-05-231-3/+1Star
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: move read_all to include/all-io.hPetr Uzel2012-05-151-25/+1Star
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: avoid double open and leaking fd (reworked)Petr Uzel2012-05-102-11/+19
| | | | | | | | | | | | | | This reverts commit 6126f7a53c57485a9a29ddd772765695f23c92e6 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>
* libuuid: avoid double open and leaking descriptorPetr Uzel2012-05-042-8/+11
| | | | | | | | | | | | | 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>
* libuuid: don't exec uuiddPetr Uzel2012-05-042-46/+3Star
| | | | | | | | | | 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>
* libuuid: use EXIT_FAILUREPetr Uzel2012-05-041-1/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: use get_fd_tabsize()Karel Zak2012-04-232-14/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: use randutilsDavidlohr Bueso2012-04-102-95/+7Star
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* build-sys: enhance readability of the autotools filesSami Kerola2012-02-281-5/+17
| | | | | | | | 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>
* libuuid: add limits.h include for OPEN_MAXmaximilian attems2011-09-071-0/+1
| | | | | | | Needed as definition for usage in close_all_fds(). Noticed on klibc build. Signed-off-by: maximilian attems <max@stro.at>
* build-sys: use top-level directory for libuuid rather than shlibs/uuidKarel Zak2011-06-0917-0/+1933
Signed-off-by: Karel Zak <kzak@redhat.com>