b26fa1a2fbcfee7d03b0c8fd15ec3aa64ae70b9f |
|
10-Feb-2016 |
Daniel Mack <daniel@zonque.org> |
tree-wide: remove Emacs lines from all files
This should be handled fine now by .dir-locals.el, so need to carry that
stuff in every file. |
3f65d73149cd0f64eb3fdb0c71f55f6c1133fefe |
|
07-Dec-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udev: add emacs header line
Otherwise emacs wants to use 2-space indentation and other
attrocities. |
cf0fbc49e67b55f8d346fc94de28c90113505297 |
|
16-Nov-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
tree-wide: sort includes
Sort the includes accoding to the new coding style. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
3ffd4af22052963e7a29431721ee204e634bea75 |
|
25-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out fd-related operations into fd-util.[ch]
There are more than enough to deserve their own .c file, hence move them
over. |
ece174c5439021e32ebcc858842de9586072c006 |
|
09-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: drop {} from one-line if blocks
Patch via coccinelle. |
76ef789d264f9eb7d7624b994aa6eead1dacfac4 |
|
09-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
tree-wide: make use of log_error_errno() return value
Turns this:
r = -errno;
log_error_errno(errno, "foo");
into this:
r = log_error_errno(errno, "foo");
and this:
r = log_error_errno(errno, "foo");
return r;
into this:
return log_error_errno(errno, "foo"); |
25568304d2cbe95720a336acfee2c7bc0e945a35 |
|
27-Aug-2015 |
Kay Sievers <kay@vrfy.org> |
udev: control - add FIXME comment to remove work-around |
93b1da852547c7f6adfaf1b3ff529927202a496d |
|
06-Aug-2015 |
Karel Zak <kzak@redhat.com> |
udev: variable dereferenced before check 'cmsg' |
35927d13dfb8e313bf653f244fdb3fdb6089c982 |
|
15-May-2015 |
Tom Gundersen <teg@jklm.no> |
udev-ctrl: make _unref() always return NULL
Bring this in line with the rest of the codebase. |
6482f6269c87d2249e52e889a63adbdd50f2d691 |
|
10-Apr-2015 |
Ronny Chevalier <chevalier.ronny@gmail.com> |
shared: add formats-util.h |
6421348d5263ee1a36037c3e119a01351f0f83e9 |
|
14-Mar-2015 |
Shawn Landden <shawn@churchofgit.com> |
udev-ctrl: fix strict aliasing issues
it is ironic that
"The only purpose of this structure is to cast the structure pointer
passed in addr in order to avoid compiler warnings. See EXAMPLE below."
from bind(2) |
2eec67acbb00593e414549a7e5b35eb7dd776b1b |
|
23-Feb-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
remove unused includes
This patch removes includes that are not used. The removals were found with
include-what-you-use which checks if any of the symbols from a header is
in use. |
1c8da044469acabcfc479ba3276954da53210830 |
|
18-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
shared: introduce cmsg_close_all() call
The call iterates through cmsg list and closes all fds passed via
SCM_RIGHTS.
This patch also ensures the call is used wherever appropriate, where we
might get spurious fds sent and we should better close them, then leave
them lying around. |
0a6f50c0afdfc434b492493bd9efab20cbee8623 |
|
12-Feb-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
include <poll.h> instead of <sys/poll.h>
include-what-you-use automatically does this and it makes finding
unnecessary harder to spot. The only content of poll.h is a include
of sys/poll.h so should be harmless. |
a38d99451f2bf8026ec51aee91662292e823c6a8 |
|
12-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
Revert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC"
This reverts commit d6d810fbf8071f8510450dbacd1d083f37603656.
It's apparently not OK to pass MSG_CMSG_CLOEXEC to recvmsg() of raw
sockets. |
d6d810fbf8071f8510450dbacd1d083f37603656 |
|
10-Feb-2015 |
Cristian RodrÃguez <crrodriguez@opensuse.org> |
tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC |
1fa2f38f0f011010bf57522b42fcc168856a7003 |
|
22-Jan-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Assorted format fixes
Types used for pids and uids in various interfaces are unpredictable.
Too bad. |
56f64d95763a799ba4475daf44d8e9f72a1bd474 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: use log_*_errno whenever %m is in the format string
If the format string contains %m, clearly errno must have a meaningful
value, so we might as well use log_*_errno to have ERRNO= logged.
Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/'
Plus some whitespace, linewrap, and indent adjustments. |
da927ba997d68401563b927f92e6e40e021a8e5c |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values. |
0a1beeb64207eaa88ab9236787b1cbc2f704ae14 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: auto-convert the simple cases to log_*_errno()
As a followup to 086891e5c1 "log: add an "error" parameter to all
low-level logging calls and intrdouce log_error_errno() as log calls
that take error numbers", use sed to convert the simple cases to use
the new macros:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/'
Multi-line log_*() invocations are not covered.
And we also should add log_unit_*_errno(). |
65fea570f03df51dadc06a3e0d261a71fe62aa01 |
|
18-Sep-2014 |
Tom Gundersen <teg@jklm.no> |
udev: fix typos
Spotted by Andreas Henriksson. |
4bbdff757ed4e718a3348b93439a03055cc5e3bc |
|
18-Sep-2014 |
Tom Gundersen <teg@jklm.no> |
udev: ctrl - log if setting SO_PASSCRED fails
No functional change.
Found by Coverity. Fixes CID #1237533. |
9ec6e95b046de71c0198cb9d17acc5462dc76c74 |
|
29-Jul-2014 |
Kay Sievers <kay@vrfy.org> |
udev: place opening { at the same line as the function declaration |
9ea28c55a2488e6cd4a44ac5786f12b71ad5bc9f |
|
14-Apr-2014 |
Kay Sievers <kay@vrfy.org> |
udev: remove seqnum API and all assumptions about seqnums
The way the kernel namespaces have been implemented breaks assumptions
udev made regarding uevent sequence numbers. Creating devices in a
namespace "steals" uevents and its sequence numbers from the host. It
confuses the "udevadmin settle" logic, which might block until util a
timeout is reached, even when no uevent is pending.
Remove any assumptions about sequence numbers and deprecate libudev's
API exposing these numbers; none of that can reliably be used anymore
when namespaces are involved. |
39883f622f392d8579f4428fc5a789a102efbb10 |
|
19-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
make gcc shut up
If -flto is used then gcc will generate a lot more warnings than before,
among them a number of use-without-initialization warnings. Most of them
without are false positives, but let's make them go away, because it
doesn't really matter. |
955d98c9c1104d469c2989dbfb58f58ee6fe9bdc |
|
13-Feb-2014 |
Lennart Poettering <lennart@poettering.net> |
everywhere: make use of new0() and macro() macros, and stop using perror() |
29804cc1e0f37ee34301530fd7f1eb8550be464e |
|
31-Jan-2014 |
Greg KH <gregkh@linuxfoundation.org> |
use memzero(foo, length); for all memset(foo, 0, length); calls
In trying to track down a stupid linker bug, I noticed a bunch of
memset() calls that should be using memzero() to make it more "obvious"
that the options are correct (i.e. 0 is not the length, but the data to
set). So fix up all current calls to memset(foo, 0, length) to
memzero(foo, length). |
9f6445e34a57c270f013c9416c123e56261553dd |
|
24-Dec-2013 |
Lennart Poettering <lennart@poettering.net> |
log: log_error() and friends add a newline after each line anyway, so avoid including it in the log strings |
eff05270986a13e7de93ae16311f654d3f7c166f |
|
24-Dec-2013 |
Lennart Poettering <lennart@poettering.net> |
util: unify SO_PEERCRED/SO_PEERSEC invocations
Introduce new call getpeercred() which internally just uses SO_PEERCRED
but checks if the returned data is actually useful due to namespace
quirks. |
f168c27313e4d7b0aabee037dc9c78a5799f0597 |
|
03-Dec-2013 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
trivial coding style clean ups
- Add space between if/for and the opening parentheses
- Place the opening brace on same line as the function (not for udev)
From the CODING_STYLE
Try to use this:
void foo() {
}
instead of this:
void foo()
{
} |
b26618399ecc9a773dcb384dd1ad66309921e8e0 |
|
13-Nov-2013 |
Kay Sievers <kay@vrfy.org> |
udev: declare some symbols static |
97fec53e5e91222f43fc89d0ad45fa197742a363 |
|
13-Oct-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
udev: use initialization instead of zeroing in one place |
b97caef538ae37bd2dc04fc15b448c12a2c9422b |
|
08-Apr-2013 |
Harald Hoyer <harald@redhat.com> |
udev/udev-ctrl.c:udev_ctrl_new_from_fd() enable SO_PASSCRED
Avoid "sender uid=65534, message ignored" case, where no credentials can
be read on the sender side.
Seems, the server socket does not enable credential receiving fast
enough, and the message from the client (without credential) sometimes
is queued before the credential passing was active. |
d5a89d7dc17a5ba5cf4fc71f82963c5c94a31c3d |
|
09-Jan-2013 |
Kay Sievers <kay@vrfy.org> |
udev: move string copy functions to shared/ |
1298001ec5e320f9f9b6a9b925c8939b2579396d |
|
12-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
use the same email address everywhere |
6ada823a9a0979ea145fd70add1007c21caa45c0 |
|
16-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
udev: remove configuration options for /dev, /sys, /run directories |
04a9d3a00a9290cbf254d0b0ba2ce4521be632ae |
|
10-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
udev: fix gcc warnings showing up after adding $(AM_CFLAGS) |
baa30fbc2c04b23209d0b8fb3c86cd15ef9ea81a |
|
08-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
udev: switch to systemd logging functions |
3e2147858f21943d5f4a781c60f33ac22c6096ed |
|
04-Apr-2012 |
Kay Sievers <kay.sievers@vrfy.org> |
move imported udev into place |