1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00
Commit Graph

10859 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
3143987f93 initctl: fix return from unitialized memory in error path
src/initctl/initctl.c: In function 'server_init':
src/initctl/initctl.c:282:13: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
         int r;
             ^
2013-03-21 22:39:23 -04:00
Zbigniew Jędrzejewski-Szmek
7cb2086695 build-sys: use _FORTIFY_SOURCE with new gcc level -Og 2013-03-21 22:39:23 -04:00
Lennart Poettering
2571ead1a6 bus: implicitly collect ucred/label information 2013-03-22 03:37:10 +01:00
Lennart Poettering
20902f3ec8 bus: also finish connection before returning from sd_bus_get_unique_name() 2013-03-22 03:37:10 +01:00
Lennart Poettering
ed205a6bc5 bus: when parsing enforce maximum container depth 2013-03-22 02:32:34 +01:00
Lennart Poettering
2bf938c191 bus: fix uninitialized variable 2013-03-22 02:20:39 +01:00
Lennart Poettering
dafb75912a bus: validate the hello response properly 2013-03-22 02:20:21 +01:00
Lennart Poettering
813a4f9375 bus: properly verify recursion depth of signatures 2013-03-22 02:19:49 +01:00
Lennart Poettering
d728d708c3 bus: rework synchronization logic
Instead of allowing certain actions fail during authentication and
connection setup, implicitly synchronize on the connection to be set up
completely before returning.
2013-03-22 01:49:56 +01:00
Lennart Poettering
9f26c90cb5 bus: reuse more code 2013-03-22 01:49:13 +01:00
Lennart Poettering
6693860fab bus: validate the entire header more closely 2013-03-22 01:15:20 +01:00
Lennart Poettering
ac89bf1d53 bus: properly validate object path values 2013-03-22 00:42:53 +01:00
Lennart Poettering
b8beb27816 bus: generate a nice error when attempting to add a NULL string 2013-03-22 00:24:21 +01:00
Lennart Poettering
b9bf7e2be9 bus: implicitly handle peer commands Ping() and GetMachineId() 2013-03-22 00:12:37 +01:00
Lennart Poettering
2522023999 bus: enforce limits on all client influenced data objects 2013-03-22 00:12:37 +01:00
Lennart Poettering
29f6aadd53 bus: implicitly set no_reply flag on outgoing messages if the serial number is not kept
If nobody keeps the serial number of an outgoing message we know that
nobody expects an answer to it, so set the no_reply flag accordingly.
2013-03-22 00:12:37 +01:00
Kay Sievers
9a8ae49d91 udev: always set selinux label at "add" events
https://bugs.freedesktop.org/show_bug.cgi?id=62615
2013-03-21 23:13:17 +01:00
Lennart Poettering
e3017af973 bus: implement full method call timeout logic 2013-03-21 22:53:29 +01:00
Kay Sievers
43b4c9aaf5 hwdb: update 2013-03-21 22:17:13 +01:00
Kay Sievers
f5944e0fd6 MAkefile.am: whitespace cleanup 2013-03-21 22:16:55 +01:00
Kay Sievers
bff9cfcc5c doc: disable gtk-doc test again - you are a really annoying piece of software
make  check-TESTS
make[5]: Nothing to be done for `/usr/bin/gtkdoc-check.log'.
fatal: making test-suite.log: failed to create /usr/bin/gtkdoc-check.trs
fatal: making test-suite.log: failed to create /usr/bin/gtkdoc-check.log
make[4]: *** [test-suite.log] Error 1
make[3]: *** [check-TESTS] Error 2
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
2013-03-21 15:07:54 +01:00
Michael Biebl
b588b3c456 build-sys: include missing header in dist tarball 2013-03-21 11:05:43 +01:00
Lennart Poettering
30bdd69525 shared: add simple priority queue implementation 2013-03-21 02:54:47 +01:00
Dave Reisner
11ea5a4a7f bus: compare to negative errno 2013-03-20 19:25:37 -04:00
Zbigniew Jędrzejewski-Szmek
23ea3dab15 activate: avoid warning from -Wshadow
src/activate/activate.c:167:51: warning: declaration shadows a variable in the global scope [-Wshadow]
static int launch(char* name, char **argv, char **environ, int fds) {
                                                  ^
/usr/include/unistd.h:546:15: note: previous declaration is here
extern char **environ;
              ^
2013-03-20 19:16:01 -04:00
Zbigniew Jędrzejewski-Szmek
131c01dbe9 Make two functions static 2013-03-20 19:16:01 -04:00
Zbigniew Jędrzejewski-Szmek
4750fade13 Remove some unused variables 2013-03-20 19:16:01 -04:00
Zbigniew Jędrzejewski-Szmek
fd4a5ec6fa systemd-analyze: do not format timestamp when not printing it
../src/analyze/systemd-analyze.c:530:88: warning: data argument not used by format string [-Wformat-extra-args]
  ...svg_text(false, u->ixt, y, u->time? "%s (%s)" : "%s", u->name, format_timespan(ts, sizeof(ts), u->time));
                                                     ~~~~           ^
2013-03-20 19:16:01 -04:00
Zbigniew Jędrzejewski-Szmek
d5a3f0eac7 core: remove unnecessary goto in setup_namespace 2013-03-20 19:16:01 -04:00
Tom Gundersen
c66a2e0cf9 bus-message: fix typo 2013-03-21 00:01:14 +01:00
Lennart Poettering
09f727eebd update TODO 2013-03-20 23:00:29 +01:00
Lennart Poettering
89ffcd2ad5 bus: hook up client with socket communication 2013-03-20 23:00:10 +01:00
Lennart Poettering
fbfa72b0a1 bus: introduce bus_error_is_dirty() independently of sd_bus_error_is_set() 2013-03-20 23:00:10 +01:00
Lennart Poettering
80a46c7313 bus: demarshal header fields properly 2013-03-20 23:00:10 +01:00
Lennart Poettering
9a17484d98 bus: implement demarshaller 2013-03-20 23:00:09 +01:00
Lennart Poettering
5407f2dea3 bus: suppress reply messages to method calls with no_reply set 2013-03-20 23:00:09 +01:00
Lennart Poettering
de1c301ed1 bus: add basic implementation of a native bus client library 2013-03-20 23:00:09 +01:00
Lennart Poettering
76f0199f2c stdio-bridge: modernization 2013-03-20 23:00:09 +01:00
Lennart Poettering
66e35261ef util: add hexmem() and strextend() calls 2013-03-20 23:00:09 +01:00
Lennart Poettering
a9c55a882f macro: add CHAR_TO_STR macro to make a one character string from a char 2013-03-20 22:58:40 +01:00
Lennart Poettering
907809fc6a macro: don't redefine CLAMP if it is already defined by glib or some other library 2013-03-20 22:58:40 +01:00
Zbigniew Jędrzejewski-Szmek
d34cd37490 Make PrivateTmp dirs also inaccessible from the outside
Currently, PrivateTmp=yes means that the service cannot see the /tmp
shared by rest of the system and is isolated from other services using
PrivateTmp, but users can access and modify /tmp as seen by the
service.

Move the private /tmp and /var/tmp directories into a 0077-mode
directory. This way unpriviledged users on the system cannot see (or
modify) /tmp as seen by the service.
2013-03-20 14:08:41 -04:00
Jan Engelhardt
1f048a6b6b build-sys: fix typo in human-readable output 2013-03-20 16:21:34 +01:00
Jan Engelhardt
acd42fae59 libudev: avoid potential misaligned accesses
clang reports:
  src/libudev/libudev-util.c:665:35: warning: cast from
  "const unsigned char *" to "unsigned int *" increases required alignment
  from 1 to 4 [-Wcast-align]
2013-03-20 16:18:04 +01:00
Kay Sievers
53726349e1 libude: remove special handling of "device" link, it should not be used 2013-03-20 16:11:25 +01:00
Tom Gundersen
c4b5cf8763 zsh completion: udev - remove firmware builtin 2013-03-20 13:41:43 +01:00
Zbigniew Jędrzejewski-Szmek
4c42e8e161 man/service: document behaviour on failure
https://bugs.freedesktop.org/show_bug.cgi?id=38355
2013-03-19 22:15:01 -04:00
Zbigniew Jędrzejewski-Szmek
9d83ad481b catalog: remove broken links to wiki
https://bugs.freedesktop.org/show_bug.cgi?id=58359
2013-03-19 21:50:43 -04:00
Zbigniew Jędrzejewski-Szmek
54b7254c1f journalct: beef up entry listing
The ability to dump catalog entries in full and by id is added.
2013-03-19 21:50:43 -04:00
Zbigniew Jędrzejewski-Szmek
ab3a162c01 systemd-python: small cleanups
- separate methods with two empty lines for clarity
- avoid malloc(0) by specyfing private data size as -1
- add method name in error messages
2013-03-19 21:50:43 -04:00