chiark / gitweb /
Kay Sievers [Sat, 23 Mar 2013 12:34:13 +0000 (13:34 +0100)]
TODO: update
Auke Kok [Sat, 23 Mar 2013 04:43:31 +0000 (21:43 -0700)]
Update user session unit template.
While most folks will be using the derivative from user-session-units,
I'm updating this one to reflect some of the fixes and things to note
about user sessions:
- cgroup should be set with "%u" - username instead of %I
- set dbus path with %U explicitly too
- hint to folks that wish to use MEM_CG features in user sessions
- allow unit to be enabled for instances with systemctl enable
Lennart Poettering [Sat, 23 Mar 2013 03:32:43 +0000 (04:32 +0100)]
conf-parser: when we parse a string list, always fill in something
Some code really wants to know whether there was a string list parsed,
so don't take the shortcut here, and always allocate a string list, even
if it is an empty one.
https://bugs.freedesktop.org/show_bug.cgi?id=62558
Lennart Poettering [Sat, 23 Mar 2013 03:11:23 +0000 (04:11 +0100)]
journal: don't access j->files after use
https://bugs.freedesktop.org/show_bug.cgi?id=62605
Zbigniew Jędrzejewski-Szmek [Sat, 23 Mar 2013 02:55:05 +0000 (22:55 -0400)]
udevadm: place const in the right place
Otherwise clang at least thinks that both consts apply to char.
Zbigniew Jędrzejewski-Szmek [Sat, 23 Mar 2013 02:00:49 +0000 (22:00 -0400)]
bus: don't free an unallocated var
Also remove unused variable.
Zbigniew Jędrzejewski-Szmek [Sat, 23 Mar 2013 01:58:43 +0000 (21:58 -0400)]
bus: move attribute to end of structure, so it is not ignored
src/libsystemd-bus/bus-message.h:41:1: warning: attribute 'packed' is ignored, place it after
"struct" to apply attribute to type declaration [-Wignored-attributes]
Lennart Poettering [Sat, 23 Mar 2013 03:03:32 +0000 (04:03 +0100)]
update TODO
Lennart Poettering [Sat, 23 Mar 2013 02:19:50 +0000 (03:19 +0100)]
update TODO
Lennart Poettering [Sat, 23 Mar 2013 02:16:17 +0000 (03:16 +0100)]
unit: never retroactively start requisites
Requesites are not supposed to be auto-started afterall, they are just
checks, so don't try to be smarter here than appropriate.
Based on a patch from Michal Schmidt.
Lennart Poettering [Sat, 23 Mar 2013 02:10:41 +0000 (03:10 +0100)]
Revert "units: ignore systemd-sysctl on shutdown"
This reverts commit
faeffa73a81ab5b59acfadeb571431fb0e42af70.
There isn't really much point in dropping the Conflicts= since shutting
down this service is basically free as it doesn't have anything running.
Also, the patch was incomplete, because shutdown.target was still listed
in Before=.
Cristian Rodríguez [Sat, 23 Mar 2013 00:04:53 +0000 (21:04 -0300)]
add --with-telinit=PATH configure option
Distributions that never shipped upstart do not have
"telinit" in /lib/upstart/..
Defaults to /lib/upstart/telinit so there is no change
for systems existing installs.
Lennart Poettering [Sat, 23 Mar 2013 00:12:22 +0000 (01:12 +0100)]
journalctl: various fixes to the access check logic
- Reword messages a bit
- Correct check whether EACCES is in the set of errors
- Don't complain if no journal files are found
- allocate Set object for errors lazily since in the best case we don't
need it at all.
- don't consider it an error if /run/log/journal doesn't exist (because
that's the usual case actually, if storage is enabled)
Colin Walters [Fri, 22 Mar 2013 13:36:22 +0000 (09:36 -0400)]
dbus: Do send out "replies" to signals
Some parts of systemd (at least the DBus activation codepath) "reply"
to signals, which of course have the no-reply flag set. We will be
defensive here and still send out a reply if we're passed a signal.
Regression introduced by:
c6a818c82035da91e
Reported-by: Mantas Mikulėnas <grawity@gmail.com>
Tested-by: Mantas Mikulėnas <grawity@gmail.com>
Lennart Poettering [Fri, 22 Mar 2013 22:28:36 +0000 (23:28 +0100)]
update TODO
Lennart Poettering [Fri, 22 Mar 2013 22:25:54 +0000 (23:25 +0100)]
exec: Assigning the empty string to CapabilityBoundSet= should drop all caps
Previously, it would set all caps, but it should drop them all, anything
else makes little sense.
Also, document that this works as it does, and what to do in order to
assign all caps to the bounding set.
https://bugzilla.redhat.com/show_bug.cgi?id=914705
Tollef Fog Heen [Fri, 22 Mar 2013 21:51:52 +0000 (22:51 +0100)]
Drop trailing whitespace
Lennart Poettering [Fri, 22 Mar 2013 20:35:53 +0000 (21:35 +0100)]
timedated: extra overflow safety check when doing relative time changes
Ensure clients don't overflow usec_t when doing relative time changes.
This is mostly just paranoia and protection against accidents, after all
clients are already authenticated, and they can se the time to any
value they wish anyway, but better be safe than sorry.
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/
1152187/comments/14
Lennart Poettering [Fri, 22 Mar 2013 20:17:53 +0000 (21:17 +0100)]
update TODO
Lennart Poettering [Fri, 22 Mar 2013 20:17:45 +0000 (21:17 +0100)]
timedatectl: show CanNTP field
Lennart Poettering [Fri, 22 Mar 2013 20:05:42 +0000 (21:05 +0100)]
udev: no need to output OOM, if we call log_oom() anyway
Lennart Poettering [Fri, 22 Mar 2013 14:05:51 +0000 (15:05 +0100)]
main: minor simplification
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 00:05:42 +0000 (20:05 -0400)]
udev/collect: avoid initalizing memory twice
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 03:24:30 +0000 (23:24 -0400)]
util: workaround two gcc warnings
gcc does not know that errno cannot be negative, and warns
about unitialized variables later on. Kill the warnings by
returning -errno only after checking that errno is positive.
Zbigniew Jędrzejewski-Szmek [Mon, 11 Mar 2013 22:03:13 +0000 (18:03 -0400)]
journalctl: be smarter about journal error checks
There are many ways in which we can get those checks wrong, so it is
better to warn and then error out on a real access failure.
The error messages are wrapped to <80 lines, because their primary
use is to be displayed in the terminal, and it is easier to read them
this way. Reading them in the journal can be a bit trickier, but
this is a bug in logs-show.c.
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 14:35:26 +0000 (14:35 +0000)]
build-sys: move acl searching code into libsystemd-acl
This loop over acls is a bit too much to keep inside
of another loop.
Lennart Poettering [Fri, 22 Mar 2013 17:01:26 +0000 (18:01 +0100)]
hostnamed: pretty_string_is_safe() already exists in string_has_cc(), so use that
Lennart Poettering [Fri, 22 Mar 2013 16:59:49 +0000 (17:59 +0100)]
util: be more picky when validating hostnames
No longer allow dots at the beginning or end of host names, Or double
dots.
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/
1152187/comments/14
Lennart Poettering [Fri, 22 Mar 2013 16:44:15 +0000 (17:44 +0100)]
journalctl: give a nice hint about group membership based on ACLs of /var/log/journal
If we notice that we unprivileged and not in any of the groups which
have access to /var/log/journal, print a nice message about which groups
do.
This checks and prints all groups that are in the default ACL for
/var/log/journal, which is not necessarily correct for all journal
files, but pretty close.
Lennart Poettering [Fri, 22 Mar 2013 05:01:04 +0000 (06:01 +0100)]
cgroup: minor optimization
Lennart Poettering [Fri, 22 Mar 2013 04:58:47 +0000 (05:58 +0100)]
bus: implement object handler registry
Lennart Poettering [Fri, 22 Mar 2013 03:42:48 +0000 (04:42 +0100)]
mount: mount all cgroup controllers in containers, too
Lennart Poettering [Fri, 22 Mar 2013 03:42:26 +0000 (04:42 +0100)]
main: use strv_find() where we can
Lennart Poettering [Fri, 22 Mar 2013 03:40:05 +0000 (04:40 +0100)]
main: don't mount cgroup controller unless PID == 1
This completes
c1dae1b3c9729fb8ab749dd4e2dad07e0fad7ed8 in a way.
Jan Alexander Steffens (heftig) [Wed, 20 Mar 2013 20:32:05 +0000 (21:32 +0100)]
Fix vacuum logic error
The vacuum code used to stop vacuuming after one deletion, even
when max_use was still exceeded.
Also make usage a uint64_t, as the code already pretends it is one.
Signed-off-by: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 02:47:32 +0000 (22:47 -0400)]
man/shutdown: /etc/nologin is called /run/nologin now
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 03:01:32 +0000 (23:01 -0400)]
systemd-python: allow retrieval of single fields
This can give huge efficiency gains, e.g. if only MESSAGE
is required and all other fields can be ignored.
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 23:12:27 +0000 (19:12 -0400)]
systemd-python: split out realtime and monotonic into separate functions
This matches the C API more closely, and also enables the
user to get just partial information, should she desire to
do so.
Functions names in error messages are modified to not include
the class name, because Python uses just the function name
into functions declared as METH_NOARGS, and error messages
were inconsistent.
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 23:00:37 +0000 (19:00 -0400)]
systemd-python: implement _Reader.test_cursor
Getting the cursor is split out from .get_next() into
.get_cursor(). This mirrors the C API more closely, and
also makes things a bit faster if the cursor is not needed.
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:40:05 +0000 (18:40 -0400)]
systemd-python: cleanup up usec_t handling
The behaviour wrt. seconds vs. microseconds was inconsistent.
Now _Reader always uses native units (us), while Reader always
uses seconds and accepts both floats and ints. This way the
conversion is always done in the Python layer, and the lower
level API allows access to the journal API without the potentially
lossy conversion between double and uint64_t.
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:30:10 +0000 (18:30 -0400)]
systemd-python: export sd_journal_get_usage
Zbigniew Jędrzejewski-Szmek [Fri, 22 Mar 2013 00:55:17 +0000 (20:55 -0400)]
efivars: fix return code
Was returning 1 on read error.
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 23:20:41 +0000 (19:20 -0400)]
shutdownd: shut up bogus gcc warning
This one is fake. But let's kill it, avoiding two condition checks
in the process.
src/shutdownd/shutdownd.c: In function 'when_wall':
src/shutdownd/shutdownd.c:182:44: warning: 'sub' may be used uninitialized in this function [-Wmaybe-uninitialized]
return elapse > sub ? elapse - sub : 1;
^
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 23:10:50 +0000 (19:10 -0400)]
bootchart: fix two unitialized memory frees
The new gcc isn't bad!
In file included from src/bootchart/svg.c:36:0:
src/bootchart/svg.c: In function 'svg_ps_bars':
./src/shared/util.h:524:13: warning: 'enc_name' may be used uninitialized in this function [-Wmaybe-uninitialized]
free(*(void**) p);
^
src/bootchart/svg.c:821:37: note: 'enc_name' was declared here
char _cleanup_free_*enc_name;
^
CC src/udev/mtd_probe/mtd_probe-probe_smartmedia.o
XSLT man/systemd.unit.5
In file included from src/bootchart/svg.c:36:0:
src/bootchart/svg.c: In function 'svg_pss_graph':
./src/shared/util.h:524:13: warning: 'enc_name' may be used uninitialized in this function [-Wmaybe-uninitialized]
free(*(void**) p);
^
src/bootchart/svg.c:395:37: note: 'enc_name' was declared here
char _cleanup_free_*enc_name;
^
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 23:06:55 +0000 (19:06 -0400)]
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;
^
Zbigniew Jędrzejewski-Szmek [Thu, 21 Mar 2013 18:53:12 +0000 (18:53 +0000)]
build-sys: use _FORTIFY_SOURCE with new gcc level -Og
Lennart Poettering [Fri, 22 Mar 2013 02:36:58 +0000 (03:36 +0100)]
bus: implicitly collect ucred/label information
Lennart Poettering [Fri, 22 Mar 2013 02:34:29 +0000 (03:34 +0100)]
bus: also finish connection before returning from sd_bus_get_unique_name()
Lennart Poettering [Fri, 22 Mar 2013 01:32:34 +0000 (02:32 +0100)]
bus: when parsing enforce maximum container depth
Lennart Poettering [Fri, 22 Mar 2013 01:20:39 +0000 (02:20 +0100)]
bus: fix uninitialized variable
Lennart Poettering [Fri, 22 Mar 2013 01:20:21 +0000 (02:20 +0100)]
bus: validate the hello response properly
Lennart Poettering [Fri, 22 Mar 2013 01:19:49 +0000 (02:19 +0100)]
bus: properly verify recursion depth of signatures
Lennart Poettering [Fri, 22 Mar 2013 00:49:56 +0000 (01:49 +0100)]
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.
Lennart Poettering [Fri, 22 Mar 2013 00:49:13 +0000 (01:49 +0100)]
bus: reuse more code
Lennart Poettering [Fri, 22 Mar 2013 00:15:20 +0000 (01:15 +0100)]
bus: validate the entire header more closely
Lennart Poettering [Thu, 21 Mar 2013 23:42:53 +0000 (00:42 +0100)]
bus: properly validate object path values
Lennart Poettering [Thu, 21 Mar 2013 23:24:21 +0000 (00:24 +0100)]
bus: generate a nice error when attempting to add a NULL string
Lennart Poettering [Thu, 21 Mar 2013 23:08:58 +0000 (00:08 +0100)]
bus: implicitly handle peer commands Ping() and GetMachineId()
Lennart Poettering [Thu, 21 Mar 2013 22:20:25 +0000 (23:20 +0100)]
bus: enforce limits on all client influenced data objects
Lennart Poettering [Thu, 21 Mar 2013 22:01:59 +0000 (23:01 +0100)]
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.
Kay Sievers [Thu, 21 Mar 2013 22:11:51 +0000 (23:11 +0100)]
udev: always set selinux label at "add" events
https://bugs.freedesktop.org/show_bug.cgi?id=62615
Lennart Poettering [Thu, 21 Mar 2013 21:50:25 +0000 (22:50 +0100)]
bus: implement full method call timeout logic
Kay Sievers [Thu, 21 Mar 2013 21:17:13 +0000 (22:17 +0100)]
hwdb: update
Kay Sievers [Thu, 21 Mar 2013 21:16:55 +0000 (22:16 +0100)]
MAkefile.am: whitespace cleanup
Kay Sievers [Thu, 21 Mar 2013 14:07:54 +0000 (15:07 +0100)]
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
Michael Biebl [Thu, 21 Mar 2013 10:05:43 +0000 (11:05 +0100)]
build-sys: include missing header in dist tarball
Lennart Poettering [Thu, 21 Mar 2013 01:42:28 +0000 (02:42 +0100)]
shared: add simple priority queue implementation
Dave Reisner [Wed, 20 Mar 2013 23:25:37 +0000 (19:25 -0400)]
bus: compare to negative errno
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:30:31 +0000 (18:30 -0400)]
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;
^
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:27:49 +0000 (18:27 -0400)]
Make two functions static
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:25:35 +0000 (18:25 -0400)]
Remove some unused variables
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:22:20 +0000 (18:22 -0400)]
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));
~~~~ ^
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 22:12:37 +0000 (18:12 -0400)]
core: remove unnecessary goto in setup_namespace
Tom Gundersen [Wed, 20 Mar 2013 23:01:14 +0000 (00:01 +0100)]
bus-message: fix typo
Lennart Poettering [Wed, 20 Mar 2013 21:57:55 +0000 (22:57 +0100)]
update TODO
Lennart Poettering [Wed, 20 Mar 2013 21:56:25 +0000 (22:56 +0100)]
bus: hook up client with socket communication
Lennart Poettering [Wed, 20 Mar 2013 12:10:12 +0000 (13:10 +0100)]
bus: introduce bus_error_is_dirty() independently of sd_bus_error_is_set()
Lennart Poettering [Wed, 20 Mar 2013 04:29:20 +0000 (05:29 +0100)]
bus: demarshal header fields properly
Lennart Poettering [Wed, 20 Mar 2013 02:15:03 +0000 (03:15 +0100)]
bus: implement demarshaller
Lennart Poettering [Tue, 19 Mar 2013 19:16:27 +0000 (20:16 +0100)]
bus: suppress reply messages to method calls with no_reply set
Lennart Poettering [Tue, 19 Mar 2013 19:03:16 +0000 (20:03 +0100)]
bus: add basic implementation of a native bus client library
Lennart Poettering [Tue, 19 Mar 2013 19:01:35 +0000 (20:01 +0100)]
stdio-bridge: modernization
Lennart Poettering [Tue, 19 Mar 2013 19:01:18 +0000 (20:01 +0100)]
util: add hexmem() and strextend() calls
Lennart Poettering [Tue, 19 Mar 2013 19:00:55 +0000 (20:00 +0100)]
macro: add CHAR_TO_STR macro to make a one character string from a char
Lennart Poettering [Tue, 19 Mar 2013 19:00:29 +0000 (20:00 +0100)]
macro: don't redefine CLAMP if it is already defined by glib or some other library
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 05:38:28 +0000 (01:38 -0400)]
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.
Jan Engelhardt [Wed, 20 Mar 2013 14:23:30 +0000 (15:23 +0100)]
build-sys: fix typo in human-readable output
Jan Engelhardt [Wed, 20 Mar 2013 14:23:32 +0000 (15:23 +0100)]
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]
Kay Sievers [Wed, 20 Mar 2013 14:57:13 +0000 (15:57 +0100)]
libude: remove special handling of "device" link, it should not be used
Tom Gundersen [Wed, 20 Mar 2013 12:09:58 +0000 (13:09 +0100)]
zsh completion: udev - remove firmware builtin
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 02:13:48 +0000 (22:13 -0400)]
man/service: document behaviour on failure
https://bugs.freedesktop.org/show_bug.cgi?id=38355
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 00:57:25 +0000 (20:57 -0400)]
catalog: remove broken links to wiki
https://bugs.freedesktop.org/show_bug.cgi?id=58359
Zbigniew Jędrzejewski-Szmek [Wed, 20 Mar 2013 00:54:04 +0000 (20:54 -0400)]
journalct: beef up entry listing
The ability to dump catalog entries in full and by id is added.
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2013 22:10:51 +0000 (18:10 -0400)]
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
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2013 22:10:51 +0000 (18:10 -0400)]
systemd-python: add journal.get_catalog()
This one wraps sd_journal_get_catalog_from_message_id.
Thanks to Python namespacing, we can stick to a shorter name.
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2013 22:10:51 +0000 (18:10 -0400)]
systemd-python: add _Reader.get_catalog()
This one wraps sd_journaal_get_catalog.
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2013 22:10:51 +0000 (18:10 -0400)]
man/catalog: fix synopsis and remind to free
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2013 22:10:51 +0000 (18:10 -0400)]
systemd-python: add _Reader.closed attribute
This should make the file interface of _Reader complete.
Zbigniew Jędrzejewski-Szmek [Fri, 15 Mar 2013 22:00:57 +0000 (18:00 -0400)]
journalctl: use _cleanup_ in one function
Kay Sievers [Wed, 20 Mar 2013 00:26:17 +0000 (01:26 +0100)]
rules: move builtin calls before the permissions section
<heftig> kay: systemd commit
22582bb broke cups usb printing for me
<heftig> because the "lp" group isn't applied anymore
<heftig> SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
<heftig> moving this line to the end of 50-udev-default.rules restores correct behavior, as it's after usb_id