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. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
4e731273edfe852a3eee2949cd20f49fd5b4f6d7 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move /proc/cmdline parsing code to proc-cmdline.[ch] |
0d39fa9c69b97a2ceb156053deef69c0866c2b97 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move more file I/O related calls into fileio.[ch] |
6bedfcbb2970e06a4d3280c8fb62083d252ede73 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split string parsing related calls from util.[ch] into parse-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. |
07630cea1f3a845c09309f197ac7c4f11edd3b62 |
|
24-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split our string related calls from util.[ch] into its own file string-util.[ch]
There are more than enough calls doing string manipulations to deserve
its own files, hence do something about it.
This patch also sorts the #include blocks of all files that needed to be
updated, according to the sorting suggestions from CODING_STYLE. Since
pretty much every file needs our string manipulation functions this
effectively means that most files have sorted #include blocks now.
Also touches a few unrelated include files. |
c802a7306bdc3e82378a87acd9402bbabe9f6b28 |
|
10-Sep-2015 |
Jan Janssen <medhefgo@web.de> |
cryptsetup-generator: Properly check return code |
4652c56c59682f153c34d30b410534e4f0c6fd6a |
|
17-May-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Use fflush_and_check() in more places |
7410616cd9dbbec97cf98d75324da5cda2b2f7a2 |
|
06-May-2015 |
Lennart Poettering <lennart@poettering.net> |
core: rework unit name validation and manipulation logic
A variety of changes:
- Make sure all our calls distuingish OOM from other errors if OOM is
not the only error possible.
- Be much stricter when parsing escaped paths, do not accept trailing or
leading escaped slashes.
- Change unit validation to take a bit mask for allowing plain names,
instance names or template names or an combination thereof.
- Refuse manipulating invalid unit name |
71e4e1258436e7e81d772aed52a02bb5d9c87cb8 |
|
15-Mar-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
cryptsetup-generator: remove warning about crypttab access mode
This file contains no privileged data — just names of devices to decrypt
and files containing keys. On a running system most of this can be inferred from
the device tree anyway. |
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. |
63c372cb9df3bee01e3bf8cd7f96f336bddda846 |
|
03-Feb-2015 |
Lennart Poettering <lennart@poettering.net> |
util: rework strappenda(), and rename it strjoina()
After all it is now much more like strjoin() than strappend(). At the
same time, add support for NULL sentinels, even if they are normally not
necessary. |
b9f111b93f9f442f00266f338b14f25ca8685352 |
|
12-Jan-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Support negated fstab options
We would ignore options like "fail" and "auto", and for any option
which takes a value the first assignment would win. Repeated and
options equivalent to the default are rarely used, but they have been
documented forever, and people might use them. Especially on the
kernel command line it is easier to append a repeated or negated
option at the end. |
a6dba97829e345772fae7c1d859e9fe0570ac42b |
|
12-Jan-2015 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
cryptsetup-generator: remove duplicated function |
baade8cc237c37bd8905d86ec6e9c7872d4abe03 |
|
05-Dec-2014 |
Jan Janssen <medhefgo@web.de> |
cryptsetup-generator: Add support for naming luks devices on kernel cmdline |
6cd5b12aa5a62d6bf4afb78ec1a7787ff01b54ce |
|
05-Dec-2014 |
Jan Janssen <medhefgo@web.de> |
cryptsetup-generator: Add support for UUID-specific key files on kernel command line |
0fa9e53d12a64981e071e0adb24698f4735e2599 |
|
05-Dec-2014 |
Jan Janssen <medhefgo@web.de> |
cryptsetup-generator: Split main() into more functions and use hasmaps |
4a62c710b62a5a3c7a8a278b810b9d5b5a0c8f4f |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: another round of simplifications
Using the same scripts as in f647962d64e "treewide: yet more log_*_errno
+ return simplifications". |
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. |
23bbb0de4e3f85d9704a5c12a5afa2dfa0159e41 |
|
28-Nov-2014 |
Michal Schmidt <mschmidt@redhat.com> |
treewide: more log_*_errno + return simplifications |
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(). |
b5884878a2874447b2a9f07f324a7cd909d96d48 |
|
07-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
util: simplify proc_cmdline() to reuse get_process_cmdline()
Also, make all parsing of the kernel cmdline non-fatal. |
3f85ef0f05ffc51e19f86fb83a1c51e8e3cd6817 |
|
06-Nov-2014 |
Harald Hoyer <harald@redhat.com> |
s/commandline/command line/g |
a6fb0dc138d4e7895f8e607493279dbe4df117a1 |
|
24-Oct-2014 |
Hugo Grostabussiat <bonstra@bonstra.fr.eu.org> |
cryptsetup: Fix timeout on dm device.
Fix a bug in systemd-cryptsetup-generator which caused the drop-in
setting the job timeout for the dm device unit to be written with a
name different than the unit name.
https://bugs.freedesktop.org/show_bug.cgi?id=84409 |
0e2f14014c65b4d8b30146e414579154cfa932da |
|
23-Oct-2014 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: fix an OOM check |
d6bc8348d5be8576a475ac8ced2b0146e60fb71f |
|
25-Sep-2014 |
Daniel Buch <boogiewasthere@gmail.com> |
readahead: wipe out readahead |
8eea868708923a092ee85d6146ba4c04b7baea06 |
|
01-Jul-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
cryptsetup: allow x-systemd.device-timeout
https://bugs.freedesktop.org/show_bug.cgi?id=54210 |
bde29068aa3815c88190a91e9867605a0aeaf9c4 |
|
23-Jun-2014 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: don't add unit dependency on /dev/null devices when it is listed as password file
As special magic, don't create device dependencies for /dev/null. Of
course, there might be similar devices we might want to include, but
given that none of them really make sense to specify as password source
there's really no point in checking for anything else here.
https://bugs.freedesktop.org/show_bug.cgi?id=75816 |
8501384436b410cb9f5929ef6873c59fac6254be |
|
19-Jun-2014 |
Lennart Poettering <lennart@poettering.net> |
stop complaining about unknown kernel cmdline options
Also stop warning about unknown kernel cmdline options in the various
tools, not just in PID 1 |
9542239eaf481decca6c254dffb3f2b4e716545e |
|
18-Jun-2014 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: introduce new cryptsetup-pre.traget unit so that services can make sure they are started before and stopped after any LUKS setup
https://bugzilla.redhat.com/show_bug.cgi?id=1097938 |
66aaf85e178492c27f699d9c94c84a98466a1435 |
|
20-Apr-2014 |
Matthew Monaco <matt@monaco.cx> |
cryptsetup: copy value, not key for (rd.)luks.key |
c3834f9b881f2b1a68dc7d797c134f0b66b47b57 |
|
06-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
generators: add Documentation= fields that point to the generator man pages |
059cb3858acd038ff2cef10a3a99119bf71a8fc6 |
|
06-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
util: move more intellegince into parse_proc_cmdline()
Already split variable assignments before invoking the callback. And
drop "rd." settings if we are not in an initrd. |
744198e92501e9d98047ef6b0f7e8da3597a1f0f |
|
06-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: some fixes |
141a79f491fd4bf5ea0d66039065c9f9649bfc0e |
|
17-Feb-2014 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Extract looping over /proc/cmdline into a shared function
In cryptsetup-generator automatic cleanup had to be replaced
with manual cleanup, and the code gets a bit longer. But existing
code had the issue that it returned negative values from main(),
which was wrong, so should be reworked anyway. |
66a5dbdf282435403f947c2caadd04bb0cdec752 |
|
08-Feb-2014 |
Dave Reisner <dreisner@archlinux.org> |
cryptsetup-generator: auto add deps for device as password
If the password is a device file, we can add Requires/After dependencies
on the device rather than requiring the user to do so. |
74df0fca09b3c31ed19e14ba80f996fdff772417 |
|
06-Nov-2013 |
Lennart Poettering <lennart@poettering.net> |
util: unify reading of /proc/cmdline
Instead of individually checking for containers in each user do this
once in a new call proc_cmdline() that read the file only if we are not
in a container. |
4469ff4adebbed4778e7fe767f0165776c1ba62a |
|
29-Sep-2013 |
Andrey Borzenkov <arvidjaar@gmail.com> |
set IgnoreOnIsolate=true for systemd-cryptsetup@.service
When crypttab contains noauto, cryptsetup service does not have any
explicit dependencies. If service is started later manually (directly or via
mount dependency) it will be stopped on isolate.
mount units already have IgnoreOnIsolate set by default. Set it by
default for cryptsetup units as well. |
a0f708053ba42c8289caed1107f498bbf332e204 |
|
23-Sep-2013 |
Eelco Dolstra <eelco.dolstra@logicblox.com> |
Fix obsolete references to systemd-random-seed-load.service
This service was merged with systemd-random-seed-save.service in
c35b956d34bbb8bb208e49e45de2c103ca11911c. |
7ab064a6d60cf805765077b67d56c123f9cf3c58 |
|
13-Sep-2013 |
Tom Gundersen <teg@jklm.no> |
cryptsetup-generator: allow specifying options in /proc/cmdline
The main usecase for this is to make it possible to use cryptsetup in
the initrd without it having to include a host-specific /etc/crypttab.
Tested-by: Thomas Bächler <thomas@archlinux.org> |
8c11d3c1b5851f05d63198a92833be80616750e9 |
|
13-Sep-2013 |
Tom Gundersen <teg@jklm.no> |
cryptsetup-generator: don't create tmp+swap units |
2b68185ac97a98bf9d6f31b2ac1fddbaaffaa887 |
|
03-May-2013 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: downgrade world-writable warning again
This semi-reverts 8973790ee6f62132b1b57de15c4edaef2c097004. |
8973790ee6f62132b1b57de15c4edaef2c097004 |
|
30-Apr-2013 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: warn if /etc/crypttab is world-readable |
c79bb9e4e2e5b96b2ae2c432bf8b0ff9674fce60 |
|
24-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Standarize on one spelling of symlink error message
It's polite to print the name of the link that wasn't created,
and it makes little sense to print the target. |
5a8e21785907df7466fef5e1cb54ce3bf99e5362 |
|
19-Apr-2013 |
Lukas Nykryn <lnykryn@redhat.com> |
crypt-setup-generator: correctly check return of strdup |
7fd1b19bc9e9f5574f2877936b8ac267c7706947 |
|
18-Apr-2013 |
Harald Hoyer <harald@redhat.com> |
move _cleanup_ attribute in front of the type
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html |
951657bd0a5bb32b5f56cc6b91ad2ea4094bdfaf |
|
18-Apr-2013 |
Harald Hoyer <harald@redhat.com> |
cryptsetup-generator: add support for rd.luks.key=
Also clarify rd.luks.uuid and luks.uuid in the manual.
https://bugzilla.redhat.com/show_bug.cgi?id=905683 |
68395007f39b326978d7936f203be8fcd24bd222 |
|
04-Apr-2013 |
Harald Hoyer <harald@redhat.com> |
cryptsetup-generator: add JobTimeoutSec=0 for the decrypted crypt devices
The password query for a crypto device currently times out after 90s,
which is too short to grab a cup of coffee when a machine boots up.
The resulting decrypted device /dev/mapper/luks-<uuid> might not
be a mountpoint (but part of a LVM PV or raid array)
and therefore the timeout cannot be controlled by the settings
in /etc/fstab. For this reason this device should not carry its own timeout.
Also the encrypted device /dev/disk/by-*/* already has a timeout and
additionally the timeout for the password query is set in /etc/crypttab.
This patch disables the timeout of the resulting decrypted devices by creating
<device-unit>.d/50-job-timeout-sec-0.conf files with "JobTimeoutSec=0". |
ceca950145f35f06938acba62af0c678f896e87d |
|
01-Apr-2013 |
Thomas Weißschuh <thomas@t-8ch.de> |
cryptsetup: add RequiresMountsFor for keyfile
This ensures that the keyfile is available during the opening of the encrypted
device.
Also dropped the explicit ordering Before=local-fs.target, as the containers
are ordered implicitly by their content. |
9ece938a676eb80a9d6834c1957b85b884419f8b |
|
01-Apr-2013 |
Thomas Weißschuh <thomas@t-8ch.de> |
cryptsetup: RequiresMountsFor if source is a file
Fixes: https://bugzilla.novell.com/show_bug.cgi?id=730496
https://bugs.freedesktop.org/show_bug.cgi?id=60821 |
e32530cbef746a3d346334a821a7c804f49af4e6 |
|
25-Mar-2013 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup-generator: let's be a bit more efficient with strv_extend() |
608d41f355d580a6f73e76b298bfc1b4e3155b80 |
|
25-Mar-2013 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup-generator: add a missing OOM check |
24a988e9aa17a476cb5381e2334aaa2a9972ddd2 |
|
13-Mar-2013 |
Harald Hoyer <harald@redhat.com> |
cryptsetup-generator: use _cleanup_ where possible |
e2cb60fa97e6a6483a98b685ff0d20c61da38c00 |
|
01-Mar-2013 |
Harald Hoyer <harald@redhat.com> |
cryptsetup-generator: fix the kernel command line strategy for luks.uuid
If rd.luks.uuid or luks.uuid is specified on the kernel command, only
generate units for these UUIDs. Additionally use the information in
/etc/crypttab unless rd.luks.crypttab=0 or luks.crypttab=0 is specified. |
a860325e7ed7ea2bd688b2f002021123a05af084 |
|
14-Feb-2013 |
Harald Hoyer <harald@redhat.com> |
added some missing include for a5c32cff1f56afe6f0c6c70d91a88a7a8238b2d7 |
1cda32b8a29750720872d3525084ac67b88e066f |
|
23-Nov-2012 |
Michal Schmidt <mschmidt@redhat.com> |
cryptsetup-generator: state file name in error messages |
74576bea7a50740f1aec423bac5e20f8ca7a8592 |
|
23-Nov-2012 |
Michal Schmidt <mschmidt@redhat.com> |
cryptsetup-generator: use log_oom() everywhere |
64825d3c589cd8742887f30acde8c57eceac2001 |
|
08-Aug-2012 |
Lennart Poettering <lennart@poettering.net> |
fix a couple of issues found with llvm-analyze |
0d0f0c50d3a1d90f03972a6abb82e6413daaa583 |
|
26-Jul-2012 |
Shawn Landden <shawnlandden@gmail.com> |
log.h: new log_oom() -> int -ENOMEM, use it
also a number of minor fixups and bug fixes: spelling, oom errors
that didn't print errors, not properly forwarding error codes,
few more consistency issues, et cetera |
669241a076108e0483d7d8475beaa506106d077e |
|
25-Jul-2012 |
Shawn Landden <shawnlandden@gmail.com> |
use "Out of memory." consistantly (or with "\n")
glibc/glib both use "out of memory" consistantly so maybe we should
consider that instead of this.
Eliminates one string out of a number of binaries. Also fixes extra newline
in udev/scsi_id |
7f2cddae09fd2579ae24434df577bb5e5a157d86 |
|
13-Jul-2012 |
Lennart Poettering <lennart@poettering.net> |
unit: rename BindTo= to BindsTo=
all other dependencies are in 3rd person. Change BindTo= accordingly to
BindsTo=.
Of course, the dependency is widely used, hence we parse the old name
too for compatibility. |
b7def684941808600c344f0be7a2b9fcdda97e0f |
|
13-Jul-2012 |
Lennart Poettering <lennart@poettering.net> |
util: rename join() to strjoin()
This is to match strappend() and the other string related functions. |
1c7327004ab6f0b91bdceb06877a3094c5fe2a4b |
|
27-Jun-2012 |
Lennart Poettering <lennart@poettering.net> |
man: add reference to crypttab(5) from cryptsetup units |
d0d6944cdc17295b17875054ac05e667fe496fed |
|
27-Jun-2012 |
Lennart Poettering <lennart@poettering.net> |
man: document systemd-cryptsetup |
35eb6b124ebdf82bd77aad6e44962a9a039c4d33 |
|
25-Jun-2012 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: fix escaping when generating cryptsetup units |
6d37ea8a8ed417da8b536a836605f5f6c03bea2d |
|
25-Jun-2012 |
Lennart Poettering <lennart@poettering.net> |
units: rename cryptsetup@.service to systemd-cryptsetup@.service
It's also our own code, hence should have the prefix. |
66a78c2b95ba6cc0be15dab68c5af816fb5b7a33 |
|
22-Jun-2012 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: allow configuration of LUKS disks via the kernel cmdline
This generalizes a bit of the functionality already available in dracut. |
d2e54fae5ca7a0f71b5ac8b356a589ff0a09ea0a |
|
31-May-2012 |
Kay Sievers <kay@vrfy.org> |
mkdir: append _label to all mkdir() calls that explicitly set the selinux context |
07719a21b6425d378b36bb8d7f47ad5ec5296d28 |
|
23-May-2012 |
Lennart Poettering <lennart@poettering.net> |
manager: rework generator logic
Previously generated units were always placed at the end of the search
path. With this change there will be three unit dirs instead of one, to
place generated entries at the beginning, in the middle and at the end
of the search path:
beginning: for units that need to override all configuration, regardless
of user or vendor. Example use: system-update-generator uses this to
temporarily redirect default.target.
middle: for units that need to override vendor configuration, but not
vendor configuration. Example use: /etc/fstab should override vendor
supplied configuration (think /tmp), but should not override native user
configuration.
end: does not override anything but is available as well. Possible usage
might be to convert D-Bus bus service files to native units but allowing
vendor supplied native units to win. |
1b64d026af01277e332d10d9e67e2eed5a4ded28 |
|
22-May-2012 |
Lennart Poettering <lennart@poettering.net> |
units: remove service sysv_path variable and replace it by generic unit_path
UnitPath= is also writable via native units and may be used by generators
to clarify from which file a unit is generated. This patch also hooks up
the cryptsetup and fstab generators to set UnitPath= accordingly. |
a6903061530cac5fbaa99a080a93221c02c349f9 |
|
22-May-2012 |
Lennart Poettering <lennart@poettering.net> |
log: make sure generators never log into the journal to avoid activation deadlocks
This makes all generators log to kmsg by default. |
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92 |
|
22-May-2012 |
Lennart Poettering <lennart@poettering.net> |
mount: replace PID1 internal fstab parser with generator
Bit by bit we should remove non-unit parsing from PID 1 and move into
generators, to clean up our code base a bit and clearly separate
parsers. |
f7f21d33db5dfe88dc8175c61dada44013347729 |
|
21-May-2012 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: a few simplifications |
5430f7f2bc7330f3088b894166bf3524a067e3d8 |
|
12-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
relicense to LGPLv2.1 (with exceptions)
We finally got the OK from all contributors with non-trivial commits to
relicense systemd from GPL2+ to LGPL2.1+.
Some udev bits continue to be GPL2+ for now, but we are looking into
relicensing them too, to allow free copy/paste of all code within
systemd.
The bits that used to be MIT continue to be MIT.
The big benefit of the relicensing is that closed source code may now
link against libsystemd-login.so and friends. |
49e942b2bc9fdedba79cd266a076ce9c9d91fc13 |
|
10-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
rename basic.la to shared.la and put selinux deps in shared-selinx.la
Only 34 of 74 tools need libselinux linked, and libselinux is a pain
with its unconditional library constructor. |
4cfa2c999dea269ddc646bfeba6c7f1021a73843 |
|
12-Jan-2012 |
Lennart Poettering <lennart@poettering.net> |
core: switch all log targets to go directly to the journal, instead via syslog |
b4d0195b0598df76d30f006507fa8466f5a5d330 |
|
03-Jan-2012 |
Lennart Poettering <lennart@poettering.net> |
cryptsetup: split off cryptsetup into its own subdir |