summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-02-08shared: conf-files - add root parameterKay Sievers
2013-02-07systemd: fix uninitialized memory access in selinuxZbigniew Jędrzejewski-Szmek
==6129== Syscall param socketcall.getsockopt(optlen) points to uninitialised byte(s) ==6129== at 0x312D0F325A: getsockopt (syscall-template.S:81) ==6129== by 0x4615E6: get_audit_data (selinux-access.c:268) ==6129== by 0x461A81: selinux_access_check (selinux-access.c:394) ==6129== by 0x453B23: bus_manager_message_handler (dbus-manager.c:1395) ==6129== by 0x313581D9C4: _dbus_object_tree_dispatch_and_unlock (dbus-object-tree.c:862) ==6129== by 0x313580FC1F: dbus_connection_dispatch (dbus-connection.c:4672) ==6129== by 0x44CD4C: bus_dispatch (dbus.c:528) ==6129== by 0x41292F: manager_loop (manager.c:1573) ==6129== by 0x40CD8E: main (main.c:1735) ==6129== Address 0x7fefff2c0 is on thread 1's stack
2013-02-08tests: add more testsThomas Hindoe Paaboel Andersen
Adds tests of: strv_env_delete strv_env_unset strv_env_set
2013-02-07build-sys: fix build without -Wl,--gc-sectionsZbigniew Jędrzejewski-Szmek
In 8d81eb8e the new library was added for libudev, use it for libsystemd-journal too.
2013-02-07udev: remove HWDB_BINKay Sievers
2013-02-07test-env-replace: assert results instead of printing themThomas Hindoe Paaboel Andersen
Also code cleanup and split into functions in preparation for more tests to come.
2013-02-07build-sys: at least for now, never link libudev against systemd's shared ↵Kay Sievers
libraries
2013-02-07build-sys: add libsystemd-id128 as libudev dependencyDavid Strauss
After d848b9cbfa0 'Move generic specifier functions to shared' libudev depends (through) libsystemd-shared.la on libsystemd-id128.so. The problem only appears when the linker does not support --gc-sections and manifests itself as the inability to resolve sd_id128_get_machine and other libsystemd-id128 functions, which aren't really used.
2013-02-07build-sys: restore man/index.html as link to systemd.index.htmlZbigniew Jędrzejewski-Szmek
It got lost in the transformation to XML generation.
2013-02-07man: fix return value for sd_journal_flush_matchesZbigniew Jędrzejewski-Szmek
https://bugs.freedesktop.org/show_bug.cgi?id=60133
2013-02-07man: document COREDUMP_UNIT and COREDUMP_USER_UNITZbigniew Jędrzejewski-Szmek
Also fix formatting for kernel related fields, enabling them to show up in the directives index.
2013-02-07coredump: make use of the cleanup macrosMirco Tischler
2013-02-07logs-show: show messages for all unit types in systemctl statusMirco Tischler
I can't find a reason why we shouldn't try to output messages for other unit types than .service, .socket, .mount and .swap as well. It's probably a leftover from before we started logging UNIT= from inside PID 1.
2013-02-07journal: log user units for coredumps and show them in systemctl statusMirco Tischler
2013-02-07nss-myhostname: copy first result to preallocated bufferEelco Dolstra
Fixes a segfault in nscd when using nss-myhostname. Nscd expects that an NSS module's gethostbyname4_r function returns its first result in the pre-allocated gaih_addrtuple denoted by **pat. (See nscd/aicache.c in the Glibc sources.) However, nss-myhostname doesn't fill in **pat but allocates the first result in ‘buffer’, then sets *pat. So nscd crashes (e.g. when running ‘getent ahosts my-machine’). Hard to tell if this is a bug in nscd, since there doesn't seem to be a proper API spec for gethostbyname4_r. But in any case, this patch fixes the crash by copying the first result to **pat.
2013-02-07man: describe unit load path in systemd.unit(5)Zbigniew Jędrzejewski-Szmek
In other cases where multiple directories are searched for unit files, the list of directories is described in the man page describing the format. I think this makes sense too in case of systemd directories, since the systemd(1) manpage already has an overview of many different topics.
2013-02-06build-sys: substitute strings in systemd.unit(5)Zbigniew Jędrzejewski-Szmek
Makefile.am is updated to deal with .xml.in sources. Nothing in the output is really changed yet, this is just preparation.
2013-02-06systemd: raise level of message about lookup pathsZbigniew Jędrzejewski-Szmek
This can be pretty important for the user, and is not trivial to figure out in all cases. Also show failing path in error messages.
2013-02-06shared: remove now unused functionZbigniew Jędrzejewski-Szmek
2013-02-06systemd: do not remove empty paths from unit lookup pathZbigniew Jędrzejewski-Szmek
The ability to start a new unit with 'systemctl start ...' should not depend on whether there are other units in the directory. Previously, an additional 'systemctl daemon-reload' would be necessary to tell systemd to update the list of unit lookup paths.
2013-02-06build-sys: create Makefile-man.am automaticallyZbigniew Jędrzejewski-Szmek
man rules were repeating the same information in too many places, which was error prone. Those rules can be easily generated from .xml files. For efficiency and because python is not a required dependency, Makefile-man.am is only regenerated when requested with make update-man-list If no metadata in man/*.xml changed, this file should not change. So only when a new man page or a new alias is added, this file should show up in 'git diff'. The change should then be committed. If the support for building from git without python was dropped, we could drop Makefile-man.am from version control. This would also increase the partial build time (since more stuff would be rebuild whenever sources in man/*.xml would be modified), so it would probably wouldn't be worth it.
2013-02-06build-sys: split man alias rules into separate fileZbigniew Jędrzejewski-Szmek
There shouldn't be any functional change. This is an 'automake include', so the generated Makefile is the same (apart from ordering).
2013-02-06build-sys: replace one last mkdir hook with list itemZbigniew Jędrzejewski-Szmek
Previously, errors would be ignored. Now they are not. But I don't see how we could fail to create the directory, so I don't think that it matters.
2013-02-06man: see also dracut(7) in bootup(7)Zbigniew Jędrzejewski-Szmek
2013-02-06tests: skip tests if manager cannot be createdZbigniew Jędrzejewski-Szmek
When running without a user session, tests fail.
2013-02-07tests: move strv_parse_nulstr to test-strv, and actually test itThomas Hindoe Paaboel Andersen
The test was originally added with this commit message: "ask-password: supported plymouth cached passwords"
2013-02-07strv: add strv_printThomas Hindoe Paaboel Andersen
Clearer, and spares the temp variable.
2013-02-06tests: run manager in session modeZbigniew Jędrzejewski-Szmek
False positives pop up otherwise. FAIL: test-unit-name (exit: 134) ================================ Failed to open /dev/tty0: Permission denied Failed to create root cgroup hierarchy: Permission denied Assertion 'manager_new(SYSTEMD_SYSTEM, &m) == 0' failed at src/test/test-unit-name.c:125, function test_unit_printf(). Aborting.
2013-02-06test: add a few tests and tidy upThomas Hindoe Paaboel Andersen
adds test of: strv_find strv_find_prefix strv_overlap strv_sort streq_ptr first_word Splits tests of util.c into own file to avoid clutter as we add more. Removed a few prints and uses _cleanup_free_ to make the tests more focused.
2013-02-04man: remove boot up runlevel supportUmut Tezduyar
As of 3cdebc217c42c8529086f2965319b6a48eaaeabe support for distro specific boot up runlevels has been dropped.
2013-02-04update TODOLennart Poettering
2013-02-04update TODOLennart Poettering
2013-02-04hwdb: updateKay Sievers
2013-02-04TODO: updateKay Sievers
2013-01-31cryptsetup: accept both "read-only" and "readonly" spellingsMichal Schmidt
Mukund Sivaraman pointed out that cryptsetup(5) mentions the "read-only" option, while the code understands "readonly". We could just fix the manpage, but for consistency in naming of multi-word options it would be prettier to have "read-only". So let's accept both spellings. BZ: https://bugzilla.redhat.com/show_bug.cgi?id=903463
2013-01-30test-strv.c: test strv_join addedDaniel Buch
2013-01-30test-strv.c: Split tests into seperate functionsDaniel Buch
test-strv.c: Leaves main clean for additional tests
2013-01-30systemctl: Fix wrong assertion testMauro Dreissig
2013-01-30build-sys: fix empty linesKay Sievers
2013-01-30build-sys: move HAVE_MICROHTTPD HAVE_MYHOSTNAME to their own sectionsKay Sievers
2013-01-30build-sys: move most of HAVE_KMOD into one sectionKay Sievers
2013-01-30build-sys: add intermediate files to CLEANFILES to fix distcheckKay Sievers
2013-01-30man: time - exchange some 'colons' with 'commas'Tom Gundersen
2013-01-29build-sys: add rules for sd_journal_{get,set}_data_threshold(3)Zbigniew Jędrzejewski-Szmek
Fixup for 350b6a65.
2013-01-29Add a few entries to .mailmapZbigniew Jędrzejewski-Szmek
2013-01-29build-sys: inline two definitions which were only used in one placeZbigniew Jędrzejewski-Szmek
2013-01-29build-sys: keep intermediate filesZbigniew Jędrzejewski-Szmek
Sometimes it is useful to look at them, and they don't take up any significant amount of space. Keeping them also avoids the message about files being removed at the end of make run.
2013-01-29test: some trivial fixes to test scriptsZbigniew Jędrzejewski-Szmek
- fix typo - use compiled systemd-nspawn - drop --capability=... from systemd-nspawn invocation, is is the default now - simplify sudo make invocations
2013-01-29tests: add test for unit name printingZbigniew Jędrzejewski-Szmek
2013-01-29tests: compress unit name tests and add more assertsZbigniew Jędrzejewski-Szmek