Daniel Mack
2d0fd6e1c5
Merge pull request #1253 from victorenator/master
...
po: update Belarusian translation
2015-09-13 19:44:50 +02:00
Viktar Vauchkevich
47130da825
po: update Belarusian translation
2015-09-12 16:47:18 +03:00
Lennart Poettering
5738311653
TODO
2015-09-11 18:28:03 +02:00
Lennart Poettering
85bc8c64e9
Merge pull request #1248 from lnykryn/loginctl-show-v2
...
loginctl: print nontrivial properties in logictl show-*
2015-09-11 16:28:36 +02:00
Lukas Nykryn
2a998c7402
loginctl: print nontrivial properties in logictl show-*
2015-09-11 16:04:32 +02:00
Lennart Poettering
f20d2634e1
Merge pull request #1245 from evverx/kill-control-on-timeout
...
core: kill processes started due to the ExecReload= on timeout
2015-09-11 14:44:45 +02:00
Evgeny Vereshchagin
478b619281
core: kill processes started due to the ExecReload= on timeout
2015-09-11 11:43:27 +03:00
Lennart Poettering
3227b2bced
Merge pull request #1227 from intelfx/systemctl-legacy-tools-polkit
...
systemctl: fix various aspects of polkit authorization in legacy tools.
2015-09-10 19:53:31 +02:00
Daniel Mack
f70e152ec6
Merge pull request #1222 from poettering/image-ops-settings
...
machine: when removing, renaming, cloning images also care for .nspaw…
2015-09-10 19:18:18 +02:00
Daniel Mack
a18f3caa56
Merge pull request #1239 from poettering/cgroup-pids
...
core: add support for the "pids" cgroup controller
2015-09-10 19:11:29 +02:00
Daniel Mack
786c5bf957
Merge pull request #1242 from poettering/no-off_t
...
Drop usage of off_t
2015-09-10 19:01:25 +02:00
Lennart Poettering
03a7b521e3
core: add support for the "pids" cgroup controller
...
This adds support for the new "pids" cgroup controller of 4.3 kernels.
It allows accounting the number of tasks in a cgroup and enforcing
limits on it.
This adds two new setting TasksAccounting= and TasksMax= to each unit,
as well as a gloabl option DefaultTasksAccounting=.
This also updated "cgtop" to optionally make use of the new
kernel-provided accounting.
systemctl has been updated to show the number of tasks for each service
if it is available.
This patch also adds correct support for undoing memory limits for units
using a MemoryLimit=infinity syntax. We do the same for TasksMax= now
and hence keep things in sync here.
2015-09-10 18:41:06 +02:00
Lennart Poettering
e11d45682e
update TODO
2015-09-10 18:18:58 +02:00
Lennart Poettering
59f448cf15
tree-wide: never use the off_t unless glibc makes us use it
...
off_t is a really weird type as it is usually 64bit these days (at least
in sane programs), but could theoretically be 32bit. We don't support
off_t as 32bit builds though, but still constantly deal with safely
converting from off_t to other types and back for no point.
Hence, never use the type anymore. Always use uint64_t instead. This has
various benefits, including that we can expose these values directly as
D-Bus properties, and also that the values parse the same in all cases.
2015-09-10 18:16:18 +02:00
Lennart Poettering
15af581253
Merge pull request #1236 from evverx/systemctl-requisite-of
...
systemctl: add RequisiteOf* as inverses of Requisite and RequisiteOverridable
2015-09-10 16:40:04 +02:00
Lennart Poettering
78e28c98e9
Merge pull request #1238 from again4you/devel/fix_smack_mtab
...
smack: label /etc/mtab as "_" when '--with-smack-run-label' is enabled.
2015-09-10 16:36:07 +02:00
Sangjung Woo
1fab0cbafc
smack: label /etc/mtab as "_" when '--with-smack-run-label' is enabled.
...
/etc/mtab should be labeled as "_", even though systemd has its own
smack label using '--with-smack-run-label' configuration. This is mainly
because all processes could read that file and the origin of this file
(i.e. /proc/mounts) is labeled as "_". This labels /etc/mtab as "_" when
'--with-smack-run-label' is enabled.
2015-09-10 21:52:39 +09:00
Evgeny Vereshchagin
1143adf722
systemctl: add RequisiteOf* as inverses of Requisite and RequisiteOverridable
2015-09-10 14:49:29 +03:00
Daniel Mack
f33be31198
Merge pull request #1226 from poettering/coccinelle-fixes3
...
Third round of Coccinelle fixes
2015-09-10 13:46:14 +02:00
Ivan Shapovalov
58158dc765
systemctl: improve clarity of error messages in the logind path
2015-09-10 14:45:00 +03:00
Ivan Shapovalov
2ac3930f5b
systemctl: relax permission checks in halt_main()
...
Thus we allow (non-interactive) polkit auth to kick in for legacy commands
(halt, poweroff, reboot, telinit) as well.
Fixes (another aspect of) issue #213 .
2015-09-10 14:45:00 +03:00
Ivan Shapovalov
a9085ea356
systemctl: fix logind bus call error handling in halt_main()
...
Handle -EOPNOTSUPP and -EINPROGRESS like in start_special().
2015-09-10 14:44:59 +03:00
Ivan Shapovalov
4c315c2c7c
systemctl: minor: use IN_SET() instead of repeated equality checks.
2015-09-10 14:39:46 +03:00
Lennart Poettering
89921f6ed0
Merge pull request #1234 from medhefgo/master
...
cryptsetup-generator: Properly check return code
2015-09-10 12:10:44 +02:00
Jan Janssen
c802a7306b
cryptsetup-generator: Properly check return code
2015-09-10 10:23:49 +02:00
Martin Pitt
0018e4e479
Merge pull request #1230 from swem/master
...
Add microphone mute keymap for Dell Precision
2015-09-10 06:56:44 +02:00
Chen-Han Hsiao (Stanley)
6e675e278c
Add microphone mute keymap for Dell Precision
2015-09-10 11:30:57 +08:00
Ivan Shapovalov
16f017fa6e
systemctl: legacy tools shall never be interactive
...
Fixes (the main concern of) issue #213 .
2015-09-10 01:14:07 +03:00
Lennart Poettering
f24aa148ab
Merge pull request #1225 from mbiebl/remove-sphinx-leftover2
...
README: remove obsolete instructions regarding python-systemd/sphinx
2015-09-09 23:13:58 +02:00
Lennart Poettering
525d3cc746
tree-wide: take benefit of the fact that hashmap_free() returns NULL
...
And set_free() too.
Another Coccinelle patch.
2015-09-09 23:12:07 +02:00
Michael Biebl
45096d27d3
README: remove obsolete instructions regarding python-systemd/sphinx
2015-09-09 23:10:34 +02:00
Lennart Poettering
6796073e33
tree-wide: make use of the fact that strv_free() returns NULL
...
Another Coccinelle patch.
2015-09-09 23:05:58 +02:00
Lennart Poettering
1d1423257a
Makefile: fix gardel target
2015-09-09 23:05:46 +02:00
Lennart Poettering
8e0b657094
machine: when removing, renaming, cloning images also care for .nspawn settings file
...
Whenever we remove/rename/clone a machine image, make sure we do the
same for the image's .nspawn settings file.
2015-09-09 18:51:23 +02:00
Lennart Poettering
c6312fb3cf
Merge pull request #1220 from zonque/logind-dry-run
...
logind: make dry run command line arguments work again (v2)
2015-09-09 18:39:01 +02:00
Daniel Mack
7681f5b889
systemctl: add dry-run support for scheduled shutdowns
...
Prefix the action parameter with "dry-" in case the --dry-run command
line switch was passed.
2015-09-09 17:52:12 +02:00
Daniel Mack
1389f4b958
logind: allow dry run variants for scheduled shutdowns
...
Allow passing a "dry-" prefix to the action parameter passed to
.ScheduleShutdown(). When strings with this prefix are passed,
the scheduled action will not take place. Instead, an info message
is logged.
2015-09-09 17:52:11 +02:00
Lennart Poettering
c36d25218b
Merge pull request #1213 from evverx/systemd-notify-log
...
notify: log error when sd_pid_notify() == 0
2015-09-09 15:54:41 +02:00
Daniel Mack
01da201420
Merge pull request #1218 from poettering/safe-fclose
...
util: introduce safe_fclose() and port everything over to it
2015-09-09 15:45:03 +02:00
Daniel Mack
37b76fd3ee
README: document new /etc/mtab requirement
2015-09-09 15:27:56 +02:00
Lennart Poettering
74ca738f6a
util: introduce safe_fclose() and port everything over to it
...
Adds a coccinelle script to port things over automatically.
2015-09-09 15:26:11 +02:00
Lennart Poettering
d58e8bc973
Merge pull request #1217 from zonque/free-and-replace
...
locale: kill free_and_replace()
2015-09-09 15:25:15 +02:00
Daniel Mack
87699fe313
locale: kill free_and_replace()
...
That function really makes little sense, as the open-coded variant
is much more readable. Also, if the 2nd argument is NULL, mfree()
is a much better candidate.
Convert the only users of this function in localed, and then remove it
entirely.
2015-09-09 15:15:14 +02:00
Daniel Mack
d7acddde05
Merge pull request #1216 from poettering/coccinelle-fixes-2
...
Coccinelle fixes 2
2015-09-09 15:12:28 +02:00
Lennart Poettering
57255510c9
tree-wide: replace while(1) by for(;;) everywhere
...
Another Coccinelle script.
2015-09-09 14:59:53 +02:00
Lennart Poettering
1f6b411372
tree-wide: update empty-if coccinelle script to cover empty-while and more
...
Let's also clean up single-line while and for blocks.
2015-09-09 14:59:51 +02:00
Lennart Poettering
94c156cd45
tree-wide: make use of log_error_errno() return value in more cases
...
The previous coccinelle semantic patch that improved usage of
log_error_errno()'s return value, only looked for log_error_errno()
invocations with a single parameter after the error parameter. Update
the patch to handle arbitrary numbers of additional arguments.
2015-09-09 14:58:26 +02:00
David Herrmann
02736a9abc
sd-bus: drop weird empty lines
...
We should never put empty lines between `if` and `else if`, unless we use
braces.
2015-09-09 14:57:41 +02:00
Lennart Poettering
5bdb84b393
Merge pull request #1215 from maciejaszek/fds_pass_fixes
...
sd_pid_notify_with_fds: fix computing msg_controllen
2015-09-09 14:44:52 +02:00
Lennart Poettering
0f9415d44c
Merge pull request #1214 from zonque/mtab
...
core: freeze execution if /etc/mtab exists
2015-09-09 14:43:42 +02:00