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. |
1411b09467c90ae358656d14165311090a2e175e |
|
03-Feb-2016 |
Lennart Poettering <lennart@poettering.net> |
core: log about path_is_mount_point() errors
We really shouldn't fail silently, but print a log message about these errors. Also make sure to attach error codes to
all log messages where that makes sense.
(While we are at it, add a couple of (void) casts to functions where we knowingly ignore return values.) |
400fac060987d4d1c30a3bee19676edd5adf986c |
|
02-Feb-2016 |
Alexander Kuleshov <kuleshovmail@gmail.com> |
mount-setup: introduce mount_points_setup
The mount_setup_early() and mount_setup() contain almost the same
pieces of code which calls mount_one() for a certain mount point
from the mount_table. This patch introduces mount_points_setup()
helper to prevent code duplication. |
ea2b93a8ee8678b459a49d193333cec6e4a49e70 |
|
05-Jan-2016 |
Patrick Ohly <patrick.ohly@intel.com> |
mount-setup.c: fix handling of symlink Smack labelling in cgroup setup
The code introduced in f8c1a81c51 (= systemd 227) failed for me with:
Failed to copy smack label from net_cls to /sys/fs/cgroup/net_cls: No such file or directory
There is no need for a symlink in this case because source and target
are identical. The symlink() call is allowed to fail when the target
already exists. When that happens, copying the Smack label must be
skipped.
But the code also failed when there is a symlink, like "cpu ->
cpu,cpuacct", because mac_smack_copy() got called with
src="cpu,cpuacct" which fails to find the entry because the current
directory is not inside /sys/fs/cgroup. The absolute path to the existing
entry must be used instead. |
cf0fbc49e67b55f8d346fc94de28c90113505297 |
|
16-Nov-2015 |
Thomas Hindoe Paaboel Andersen <phomes@gmail.com> |
tree-wide: sort includes
Sort the includes accoding to the new coding style. |
b5efdb8af40ea759a1ea584c1bc44ecc81dd00ce |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: split out allocation calls into alloc-util.[ch] |
ee104e11e303499a637c5cd8157bd12ad5cc116d |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
user-util: move UID/GID related macros from macro.h to user-util.h |
4349cd7c1d153c4ffa23cf1cff1644e0afa9bcf0 |
|
27-Oct-2015 |
Lennart Poettering <lennart@poettering.net> |
util-lib: move mount related utility calls to mount-util.[ch] |
7ff307bc4cc81440e9ac4a2ca09c6100d76ca89a |
|
21-Sep-2015 |
David Herrmann <dh.herrmann@gmail.com> |
mount: propagate error codes correctly
Make sure to propagate error codes from mount-loops correctly. Right now,
we return the return-code of the first mount that did _something_. This is
not what we want. Make sure we return an error if _any_ mount fails (and
then make sure to return the first error to not hide proper errors due to
consequential errors like -ENOTDIR).
Reported by cee1 <fykcee1@gmail.com>. |
f8c1a81c5188ca121573caeee290e39ef966e3e6 |
|
09-Sep-2015 |
Sangjung Woo <sangjung.woo@samsung.com> |
smack: bugfix the smack label of symlink when '--with-smack-run-label' is set
Even though systemd has its own smack label since
'--with-smack-run-label' configuration is set, the smack label of each
CGROUP root directory should have the star (i.e. *) label. This is
mainly because current Linux Kernel set the label in this way.
(Refer to smack_d_instantiate() in security/smack/smack_lsm.c)
However, if systemd has its own smack label and arg_join_controllers is
explicitly set or initialized by initialize_join_controllers() function,
current systemd creates the symlink in CGROUP root directory with its
own smack label as below.
lrwxrwxrwx. 1 root root System 11 Dec 31 16:00 cpu -> cpu,cpuacct
dr-xr-xr-x. 4 root root * 0 Dec 31 16:01 cpu,cpuacct
lrwxrwxrwx. 1 root root System 11 Dec 31 16:00 cpuacct -> cpu,cpuacct
This patch fixes that bug by copying the smack label from the origin. |
75f86906c52735c98dc0aa7e24b773edb42ee814 |
|
07-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
basic: rework virtualization detection API
Introduce a proper enum, and don't pass around string ids anymore. This
simplifies things quite a bit, and makes virtualization detection more
similar to architecture detection. |
efdb02375beb0a940c3320865572913780b4d7de |
|
01-Sep-2015 |
Lennart Poettering <lennart@poettering.net> |
core: unified cgroup hierarchy support
This patch set adds full support the new unified cgroup hierarchy logic
of modern kernels.
A new kernel command line option "systemd.unified_cgroup_hierarchy=1" is
added. If specified the unified hierarchy is mounted to /sys/fs/cgroup
instead of a tmpfs. No further hierarchies are mounted. The kernel
command line option defaults to off. We can turn it on by default as
soon as the kernel's APIs regarding this are stabilized (but even then
downstream distros might want to turn this off, as this will break any
tools that access cgroupfs directly).
It is possibly to choose for each boot individually whether the unified
or the legacy hierarchy is used. nspawn will by default provide the
legacy hierarchy to containers if the host is using it, and the unified
otherwise. However it is possible to run containers with the unified
hierarchy on a legacy host and vice versa, by setting the
$UNIFIED_CGROUP_HIERARCHY environment variable for nspawn to 1 or 0,
respectively.
The unified hierarchy provides reliable cgroup empty notifications for
the first time, via inotify. To make use of this we maintain one
manager-wide inotify fd, and each cgroup to it.
This patch also removes cg_delete() which is unused now.
On kernel 4.2 only the "memory" controller is compatible with the
unified hierarchy, hence that's the only controller systemd exposes when
booted in unified heirarchy mode.
This introduces a new enum for enumerating supported controllers, plus a
related enum for the mask bits mapping to it. The core is changed to
make use of this everywhere.
This moves PID 1 into a new "init.scope" implicit scope unit in the root
slice. This is necessary since on the unified hierarchy cgroups may
either contain subgroups or processes but not both. PID 1 hence has to
move out of the root cgroup (strictly speaking the root cgroup is the
only one where processes and subgroups are still allowed, but in order
to support containers nicey, we move PID 1 into the new scope in all
cases.) This new unit is also used on legacy hierarchy setups. It's
actually pretty useful on all systems, as it can then be used to filter
journal messages coming from PID 1, and so on.
The root slice ("-.slice") is now implicitly created and started (and
does not require a unit file on disk anymore), since
that's where "init.scope" is located and the slice needs to be started
before the scope can.
To check whether we are in unified or legacy hierarchy mode we use
statfs() on /sys/fs/cgroup. If the .f_type field reports tmpfs we are in
legacy mode, if it reports cgroupfs we are in unified mode.
This patch set carefuly makes sure that cgls and cgtop continue to work
as desired.
When invoking nspawn as a service it will implicitly create two
subcgroups in the cgroup it is using, one to move the nspawn process
into, the other to move the actual container processes into. This is
done because of the requirement that cgroups may either contain
processes or other subgroups. |
6482446281b226a9a74cb17bfc28e98554cbc437 |
|
05-Jul-2015 |
David Herrmann <dh.herrmann@gmail.com> |
core: fix missing bus-util.h include
Whoopsy, forgot to 'git add' this, sorry. |
1f49dffc0fcd9859feb1b97e1e3983d0b911f425 |
|
05-Jul-2015 |
David Herrmann <dh.herrmann@gmail.com> |
core: don't mount kdbusfs if not wanted
Just like we conditionalize loading kdbus.ko, we should conditionalize
mounting kdbusfs. Otherwise, we might run with kdbus if it is builtin,
even though the user didn't want this. |
1b09f548c7f303b486b5b1321c06336bff72ada4 |
|
17-Jun-2015 |
Kay Sievers <kay@vrfy.org> |
turn kdbus support into a runtime option
./configure --enable/disable-kdbus can be used to set the default
behavior regarding kdbus.
If no kdbus kernel support is available, dbus-dameon will be used.
With --enable-kdbus, the kernel command line option "kdbus=0" can
be used to disable kdbus.
With --disable-kdbus, the kernel command line option "kdbus=1" is
required to enable kdbus support. |
e26d6ce517a49c246141ed20528614823c2f5799 |
|
29-May-2015 |
Martin Pitt <martin.pitt@ubuntu.com> |
path-util: Change path_is_mount_point() symlink arg from bool to flags
This makes path_is_mount_point() consistent with fd_is_mount_point() wrt.
flags. |
03cfe0d51499e86b1573d121337594719d9f2012 |
|
21-May-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: finish user namespace support |
64f75d7a2898e0c0d2b66f93ddd34ffd345bb3c5 |
|
07-Apr-2015 |
David Herrmann <dh.herrmann@gmail.com> |
core: fix mount setup to work with non-existing mount points
We must not fail on ENOENT. We properly create the mount-point in
mount-setup, so there's really no reason to skip the mount. Make sure we
just skip the mount on unexpected failures or if it's already mounted. |
b604cb9bf6a14d12589e85b82f3f59db93ea0029 |
|
07-Apr-2015 |
Daniel Mack <daniel@zonque.org> |
core: mount-setup: handle non-existing mountpoints gracefully
Commit e792e890f ("path-util: don't eat up ENOENT in
path_is_mount_point()") changed path_is_mount_point() so it doesn't hide
-ENOENT from its caller. This causes all boots to fail early in case
any of the mount points does not exist (for instance, when kdbus isn't
loaded, /sys/fs/kdbus is missing).
Fix this by returning 0 from mount_one() if path_is_mount_point()
returned -ENOENT. |
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. |
cb708b1c6d970cc2376fb2c7c24b479f6f129594 |
|
23-Jan-2015 |
Cristian Rodríguez <crrodriguez@opensuse.org> |
mount-setup: Do not bother with /proc/bus/usb
Current systemd requires kernel >= 3.7 per the README file
but CONFIG_USB_DEVICEFS disappeared from the kernel in
upstream commit fb28d58b72aa9215b26f1d5478462af394a4d253
(kernel 3.5-rc1) |
b4d5b78374e093ffb280fbfbbcfedbe68d60b956 |
|
23-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
mount-setup: /selinux, /cgroup, /dev/cgroup are sooo old, don't bother with them anymore |
ecdacd4b2fca2153f35b689281ba38107c84f528 |
|
17-Jan-2015 |
Cristian Rodríguez <crrodriguez@opensuse.org> |
remove unneeded libgen.h includes |
b12afc8c5c5c3ee5720780df9a602288bbcc24ea |
|
05-Jan-2015 |
Lennart Poettering <lennart@poettering.net> |
nspawn: mount most of the cgroup tree read-only in nspawn containers except for the container's own subtree in the name=systemd hierarchy
More specifically mount all other hierarchies in their entirety and the
name=systemd above the container's subtree read-only. |
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. |
68d4c4526306cf464257aed269b21a73672bbe29 |
|
26-Nov-2014 |
Lennart Poettering <lennart@poettering.net> |
core: reindent mount/kmod tables |
2e75e2a8f56d0d5340dc9fb6fed1f6c4b37c495f |
|
14-Nov-2014 |
Daniel Mack <daniel@zonque.org> |
mount-setup: remove mount_setup_late()
Turns out we can just do kmod_setup() earlier, before we do mount_setup(),
so there's no need for mount_setup_late() anymore. Instead, put kdbusfs in
mount_table[]. |
63cc4c3138fd0ce9cc97884373a2dd8959a13ee9 |
|
13-Nov-2014 |
Daniel Mack <daniel@zonque.org> |
sd-bus: sync with kdbus upstream (ABI break)
kdbus has seen a larger update than expected lately, most notably with
kdbusfs, a file system to expose the kdbus control files:
* Each time a file system of this type is mounted, a new kdbus
domain is created.
* The layout inside each mount point is the same as before, except
that domains are not hierarchically nested anymore.
* Domains are therefore also unnamed now.
* Unmounting a kdbusfs will automatically also detroy the
associated domain.
* Hence, the action of creating a kdbus domain is now as
privileged as mounting a filesystem.
* This way, we can get around creating dev nodes for everything,
which is last but not least something that is not limited by
20-bit minor numbers.
The kdbus specific bits in nspawn have all been dropped now, as nspawn
can rely on the container OS to set up its own kdbus domain, simply by
mounting a new instance.
A new set of mounts has been added to mount things *after* the kernel
modules have been loaded. For now, only kdbus is in this set, which is
invoked with mount_setup_late(). |
6baa7db00812437bbc87e73faa1a11b6cf631958 |
|
23-Oct-2014 |
Lennart Poettering <lennart@poettering.net> |
mac: also rename use_{smack,selinux,apparmor}() calls so that they share the new mac_{smack,selinux,apparmor}_xyz() convention |
0fff82e5f867f9494ed631736964d9abfe672673 |
|
10-Oct-2014 |
Emil Renner Berthing <systemd@esmil.dk> |
mount-setup: skip relabelling when SELinux and SMACK not supported
This is also the only place where FTW_ACTIONRETVAL is used, so
this makes systemd compile without SELinux or SMACK support
when the standard library doesn't support this extension. |
d5099efc47d4e6ac60816b5381a5f607ab03f06e |
|
15-Sep-2014 |
Michal Schmidt <mschmidt@redhat.com> |
hashmap: introduce hash_ops to make struct Hashmap smaller
It is redundant to store 'hash' and 'compare' function pointers in
struct Hashmap separately. The functions always comprise a pair.
Store a single pointer to struct hash_ops instead.
systemd keeps hundreds of hashmaps, so this saves a little bit of
memory. |
7c96ab1d2484ab2df3c6a84f1a1d2e076f469085 |
|
13-Aug-2014 |
Lennart Poettering <lennart@poettering.net> |
mount-setup: fix counting of early mounts without SMACK
http://lists.freedesktop.org/archives/systemd-devel/2014-August/021772.html |
908f8b9cbb9432e8a8af39d528e150f1fe11b50e |
|
26-Jun-2014 |
Tom Hirst <tom.hirst@ipe-systems.co.uk> |
core: Don't require cgroups xattr support
Failure to mount cgroups with xattr should not be fatal |
d1d8e5d49f3149d03ceb94d1d2f6c14e7abccb6f |
|
23-Jun-2014 |
Ronan Le Martret <ronan@fridu.net> |
core: You can not put the cached result of use_smack fct, as we are not sure the "/sys" is mounted. So we should mount "sys" before "/proc"
https://bugs.freedesktop.org/show_bug.cgi?id=77646 |
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9e |
|
28-May-2014 |
Kay Sievers <kay@vrfy.org> |
build-sys: use glibc's xattr support instead of requiring libattr |
99a17ada9caa8e190b5cafa5cd3c19618feeff48 |
|
05-May-2014 |
Kay Sievers <kay@vrfy.org> |
core: require cgroups filesystem to be available
We should no longer pretend that we can run in any sensible way
without the kernel supporting us with cgroups functionality. |
c4bfd1691f4d3e26d6d7f34dbca941e119956e8a |
|
24-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
core: don't try to relabel mounts before we loaded the policy |
679142ce4a8def7da43c4d3b2a02bae8c0d21175 |
|
18-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
core: remount /sys/fs/cgroup/ read-only after we mounted all controllers
Given that glibc searches for /dev/shm by just looking for any tmpfs we
should be more careful with providing tmpfs instances arbitrary code
might end up writing to. |
a641dcd9bf05418d6a6c165e1c0cff615b4a0f47 |
|
18-Mar-2014 |
Lennart Poettering <lennart@poettering.net> |
cgroup: it's not OK to invoke alloca() in loops |
7f112f50fea585411ea2d493b3582bea77eb4d6e |
|
20-Jan-2014 |
Lennart Poettering <lennart@poettering.net> |
exec: introduce PrivateDevices= switch to provide services with a private /dev
Similar to PrivateNetwork=, PrivateTmp= introduce PrivateDevices= that
sets up a private /dev with only the API pseudo-devices like /dev/null,
/dev/zero, /dev/random, but not any physical devices in them. |
f5f6d0e25574dd63fb605b81fa7767dd71c454db |
|
26-Nov-2013 |
Daniel Buch <boogiewasthere@gmail.com> |
tree-wide usage of %m specifier instead of strerror(errno)
Also for log_error() except where a specific error is specified
e.g. errno ? strerror(errno) : "Some user specified message" |
8552b17660033812080a11533bd0edce74401039 |
|
10-Oct-2013 |
Auke Kok <auke-jan.h.kok@intel.com> |
Smack: Test if smack is enabled before mounting
Since on most systems with xattr systemd will compile with Smack
support enabled, we still attempt to mount various fs's with
Smack-only options.
Before mounting any of these Smack-related filesystems with
Smack specific mount options, check if Smack is functionally
active on the running kernel.
If Smack is really enabled in the kernel, all these Smack mounts
are now *fatal*, as they should be.
We no longer mount smackfs if systemd was compiled without
Smack support. This makes it easier to make smackfs mount
failures a critical error when Smack is enabled.
We no longer mount these filesystems with their Smack specific
options inside containers. There these filesystems will be
mounted with there non-mount smack options for now. |
d407c9402064d8b9d1b12dca6ca1ddb2688e5454 |
|
07-Oct-2013 |
Auke Kok <auke-jan.h.kok@intel.com> |
Mount /run, /dev/shm usable to tasks when using SMACK.
Once systemd itself is running in a security domain for SMACK,
it will fail to start countless tasks due to missing privileges
for mounted and created directory structures. For /run and shm
specifically, we grant all tasks access.
These 2 mounts are allowed to fail, which will happen if the
system is not running a SMACK enabled kernel or security=none is
passed to the kernel. |
956eaf2b8d6c9999024705ddadc7393bc707de02 |
|
17-Jul-2013 |
Harald Hoyer <harald@redhat.com> |
remove /run/initramfs/root-fsck logic
dracut uses systemd in the initramfs and does not write these files
anymore.
The state of the root fsck is serialized. |
a6b26d9011de60e1c41f51e8d2aab1d2f7bbf0f5 |
|
24-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Small cleanup |
ef42202ac8ed27e7ff1fc90ef8bc2590046dff25 |
|
24-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
Add set_consume which always takes ownership
Freeing in error path is the common pattern with set_put(). |
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. |
0ee679580e55b4b7fe6c68bf63d953017c489617 |
|
24-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
systemd: fall back to mounting /sys/fs/cgroup sans xattr
xattrs on cgroup fs were added back in v3.6-rc3-3-g03b1cde. But we
support kernels >= 2.6.39, and we should also support kernels compiled
w/o xattr support, even if systemd is compiled with xattr support.
Fall back to mounting without xattr support.
Tested-by: Colin Walters <walters@verbum.org> |
a383724e4202ee9681bd31cb668c44bdbbf83638 |
|
22-Apr-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
systemd,nspawn: use extended attributes to store metadata
All attributes are stored as text, since root_directory is already
text, and it seems easier to have all of them in text format.
Attributes are written in the trusted. namespace, because the kernel
currently does not allow user. attributes on cgroups. This is a PITA,
and CAP_SYS_ADMIN is required to *read* the attributes. Alas.
A second pipe is opened for the child to signal the parent that the
cgroup hierarchy has been set up. |
2fa4092c2829dd14e50c430ae2f23551d23c6c1d |
|
04-Apr-2013 |
Lennart Poettering <lennart@poettering.net> |
util: make time formatting a bit smarter
Instead of outputting "5h 55s 50ms 3us" we'll now output "5h
55.050003s". Also, while outputting the accuracy is configurable.
Basically we now try use "dot notation" for all time values > 1min. For
>= 1s we use 's' as unit, otherwise for >= 1ms we use 'ms' as unit, and
finally 'us'.
This should give reasonably values in most cases. |
3cbb76ee3469998771b4e9c7ee85d8d7407a2f5a |
|
22-Mar-2013 |
Lennart Poettering <lennart@poettering.net> |
mount: mount all cgroup controllers in containers, too |
c17ec25e4d9bd6c8e8617416f813e25b2ebbafc5 |
|
16-Mar-2013 |
Michal Sekletar <msekleta@redhat.com> |
core: reuse the same /tmp, /var/tmp and inaccessible dir
All Execs within the service, will get mounted the same
/tmp and /var/tmp directories, if service is configured with
PrivateTmp=yes. Temporary directories are cleaned up by service
itself in addition to systemd-tmpfiles. Directory which is mounted
as inaccessible is created at runtime in /run/systemd. |
66e411811b8090d1bfd6620fc84472d83f723fa1 |
|
15-Mar-2013 |
Lennart Poettering <lennart@poettering.net> |
sd-booted: update sd_booted() check a bit
Previously we were testing whether /sys/fs/cgroup/systemd/ was a mount
point. This might be problematic however, when the cgroup trees are bind
mounted into a container from the host (which should be absolutely
valid), which might create the impression that the container was running
systemd, but only the host actually is.
Replace this by a check for the existance of the directory
/run/systemd/system/, which should work unconditionally, since /run can
never be a bind mount but *must* be a tmpfs on systemd systems, which is
flushed at boots. This means that data in /run always reflects
information about the current boot, and only of the local container,
which makes it the perfect choice for a check like this.
(As side effect this is nice to Ubuntu people who now use logind with
the systemd cgroup hierarchy, where the old sd_booted() check misdetects
systemd, even though they still run legacy Upstart.) |
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6 |
|
07-Mar-2013 |
Nathaniel Chen <nathaniel.chen@intel.com> |
core: mount and initialize Smack
SMACK is the Simple Mandatory Access Control Kernel, a minimal
approach to Access Control implemented as a kernel LSM.
The kernel exposes the smackfs filesystem API through which access
rules can be loaded. At boot time, we want to load the access rules
as early as possible to ensure all early boot steps are checked by Smack.
This patch mounts smackfs at the new location at /sys/fs/smackfs for
kernels 3.8 and above. The /smack mountpoint is not supported.
After mounting smackfs, rules are loaded from the usual location.
For more information about Smack see:
http://www.kernel.org/doc/Documentation/security/Smack.txt |
c06bf414042cd1bf94e0af63e9e2a0c291bfc546 |
|
27-Feb-2013 |
Kay Sievers <kay@vrfy.org> |
mount-setup: mount pstore filesystem |
b872e9a05939bc3e0ac95a042592506a7488dd6f |
|
13-Feb-2013 |
Lennart Poettering <lennart@poettering.net> |
build-sys: make EFI support build-time optional |
9cde64ff264c432fc83be638e57d8fd6392793a6 |
|
13-Feb-2013 |
Lennart Poettering <lennart@poettering.net> |
efi: various cleanups |
34e5a31ec5897de8ba1436dad53df99637569d0a |
|
21-Jan-2013 |
Lennart Poettering <lennart@poettering.net> |
util: move is_efiboot() to efivars.c |
6aa220e019f9dffd96590b06b68f937985204109 |
|
04-Nov-2012 |
Kay Sievers <kay@vrfy.org> |
mount-setup: try mounting 'efivarfs' only if the system bootet with EFI |
f271dd97622b656c1c013d181ea615c671cc2438 |
|
30-Oct-2012 |
Lee, Chun-Yi <joeyli.kernel@gmail.com> |
systemd: mount the EFI variable filesystem
Add efivarfs to the mount_table in mount-setup.c, so the EFI variable
filesystem will be mounted when systemd executed.
The EFI variable filesystem will merge in v3.7 or v3.8 linux kernel.
Cc: Kay Sievers <kay@vrfy.org>
Cc: Lennart Poettering <lennart@poettering.net>
Cc: Mantas Mikulėnas <grawity@gmail.com>
Cc: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Jeremy Kerr <jeremy.kerr@canonical.com>
Cc: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com> |
c481f78be7d2620b417e453738ae1d65b576f67e |
|
18-Sep-2012 |
Lennart Poettering <lennart@poettering.net> |
mount: don't mount securityfs in a container |
01ed0e2307f3b889b64165fd503d79b4568c47e1 |
|
21-Aug-2012 |
Lennart Poettering <lennart@poettering.net> |
dev-setup: make NULL as parameter for dev_setup() equivalent to "" |
8f0e73f250f4a397ea07d29a339bd7e64d077612 |
|
21-Aug-2012 |
Dave Reisner <dreisner@archlinux.org> |
dev-setup: allow a path prefix for use in chroots
With this adjustment, we can reuse this code elsewhere, such as in
nspawn. |
b3ac5f8cb98757416d8660023d6564a7c411f0a0 |
|
06-Aug-2012 |
Lennart Poettering <lennart@poettering.net> |
mount-setup: change system mount propagation to shared by default
In order to make containers work nicely out of the box it is highly
desirable to have the mount propagation mode for the root fs is set as
"shared" by default so that containers receive system mounts by default.
(See mount --make-shared for more information).
As it is unlikely that the kernel will change the default to "shared"
for this, do this early at boot-up from PID 1. Setups which prefer the
default of "private" should undo this change via invoking "mount
--make-private /" or a similar command after boot.
In the long run /etc/fstab should take the propagation mode as a mount
option like any other, so that this may be used to change the default
mode. However, if fstab is not around or doesn't list / we still should
default to shared as propagation mode, hence this change now. |
1421211924ff05af3b0c0d52f1c84472d0307456 |
|
06-Aug-2012 |
Shawn Landden <shawnlandden@gmail.com> |
continue work with error messages, log_oom()
Adds messages for formally silent errors: new "Failed on cmdline argument %s: %s".
Removes some specific error messages for -ENOMEM in mount-setup.c. A few specific
ones have been left in other binaries. |
c9bc07646100855ff8193e1e62c52b77327e264d |
|
03-Jul-2012 |
Lennart Poettering <lennart@poettering.net> |
mount-setup: don't complain if we try to fix the label of a dir beneath a mount but can't due to EROFS |
48ac500bb65f1f2eb09704f15104eeebb9330d47 |
|
01-Jun-2012 |
Lennart Poettering <lennart@poettering.net> |
missing: define MS_STRICTATIME if not defined already |
d2e54fae5ca7a0f71b5ac8b356a589ff0a09ea0a |
|
31-May-2012 |
Kay Sievers <kay@vrfy.org> |
mkdir: append _label to all mkdir() calls that explicitly set the selinux context |
9eb977db5b89b44f254ab40c1876a76b7d7ea2d0 |
|
08-May-2012 |
Kay Sievers <kay@vrfy.org> |
util: split-out path-util.[ch] |
eaeb18dba95403b5f619d192c5a915546b5ace47 |
|
22-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
mount-setup: ignore common container bind mounts |
71f737d2de635d4ac6183face7e9c8b7981631ab |
|
20-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
mount-setup: don't log with LOG_ERROR if a mount that doesn't matter fails |
5ba2dc259f3cdd8fddef68cfd28380a32534e49a |
|
17-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
udev: unify /dev static symlink setup |
e9a5ef7cddcfcdb29b5aef3896931132b6fd5165 |
|
17-Apr-2012 |
Kay Sievers <kay@vrfy.org> |
selinux: unify systemd and udev code |
08e1fb68d78b4adf26cce8387fc428b9e370bcf4 |
|
12-Apr-2012 |
Lennart Poettering <lennart@poettering.net> |
build-sys: move *-setup out of shared to avoid selinux being pulled in |