summaryrefslogtreecommitdiff
path: root/src/util.c
AgeCommit message (Collapse)Author
2010-09-14util: SIGSTKFLT is unknown on Linux for SPARCLennart Poettering
2010-09-13util: add Arch welcome messageTom Gundersen
Arch has no release name, so juts prints 'Welcome to Arch Linux!'. The color is the same as used by Arch's native rc.sysinit.
2010-09-13util: add Debian welcome messageSedat Dilek
Hi, after talked with Michael on IRC, here is the patch to see a systemd Welcome message on Debian systems. FYI: I had to remove "quiet" from Kernel-command-line to see it. "Stolen from Gentoo" :-) [1,2]? Kind Regards, - Sedat - [1] http://lists.freedesktop.org/archives/systemd-devel/2010-September/000267.html [2] http://cgit.freedesktop.org/systemd/commit/?id=0d37b36b2890fdf8149d12460ebb00822e555977 From 76d860ca774cb8724de25c3ed3c455ebe5d548e3 Mon Sep 17 00:00:00 2001 From: Sedat Dilek <sedat.dilek@gmail.com> Date: Sun, 12 Sep 2010 23:02:22 +0200 Subject: [PATCH] util: add Debian welcome message Include the "Debian" string as /etc/debian_version contains only the Distribution name like "squeeze". Use Light Red color for Debian. Based on a proposal patch of Michael Biebl <biebl@debian.org>
2010-09-09util: add Gentoo welcome message.Gustavo Sverzut Barbieri
2010-09-01util: leave locked terminal attributes untouched so that we don't interfere ↵Lennart Poettering
with plymouth https://bugzilla.redhat.com/show_bug.cgi?id=628913
2010-08-31util: look at STDOUT, not STDIN, when determining tty columnsLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=626891
2010-08-25systemctl: show timestamps for state changesLennart Poettering
2010-08-20mount: properly handle LABEL="" in fstabLennart Poettering
2010-08-20service/systemctl: don't consider LSB exit codes 5 and 6 as failure, and ↵Lennart Poettering
decode exit codes in systemctl
2010-08-17nss: don't disable nscd anymore, since it doesn't make sense to ↵Lennart Poettering
socket-activate nscd anyway
2010-08-16util: properly detect ttyname_r() failingLennart Poettering
2010-08-16systemctl: add support for delayed shutdown, similar to sysv in styleLennart Poettering
2010-08-14emacs: make sure nobody accidently adds tabs to our sourcesLennart Poettering
2010-08-11main: disable nscd properly, if possibleLennart Poettering
2010-08-11gc: remove a lot of unused codeLennart Poettering
2010-08-11selinux: split off selinux calls into seperate file label.cLennart Poettering
2010-08-11util: when replacing env vars replace unset envvars by nothingLennart Poettering
This makes it easier to support /etc/sysconfig/xxxx with command line env vars in style of $OPTIONS which might or might not be set.
2010-08-06util: when formatting timestamps return '0' for 0 timestamps instead of ↵Lennart Poettering
empty string
2010-08-05selinux: minor error handling fixLennart Poettering
2010-08-05selinux: fix labels only when configured for itLennart Poettering
2010-08-04selinux: rework selinux tests a littleLennart Poettering
2010-08-04selinux: fix if vs. ifdef mixupLennart Poettering
2010-08-03Systemd is causing mislabeled devices to be created and then attempting to ↵Daniel J Walsh
read them. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/28/2010 05:57 AM, Kay Sievers wrote: > On Wed, Jul 28, 2010 at 11:43, Lennart Poettering > <lennart@poettering.net> wrote: >> On Mon, 26.07.10 16:42, Daniel J Walsh (dwalsh@redhat.com) wrote: >>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file >>> type=1400 audit(1280174589.476:7): avc: denied { read } for pid=1 >>> comm="systemd" name="autofs" dev=devtmpfs ino=9482 >>> scontext=system_u:system_r:init_t:s0 >>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file >>> type=1400 audit(1280174589.476:8): avc: denied { read } for pid=1 >>> comm="systemd" name="autofs" dev=devtmpfs ino=9482 >>> scontext=system_u:system_r:init_t:s0 >>> tcontext=system_u:object_r:device_t:s0 tclass=chr_file >>> >>> Lennart, we talked about this earlier. I think this is caused by the >>> modprobe calls to create /dev/autofs. Since udev is not created at the >>> point that init loads the kernel modules, the devices get created with >>> the wrong label. Once udev starts the labels get fixed. >>> >>> I can allow init_t to read device_t chr_files. >> >> Hmm, I think a cleaner fix would be to make systemd relabel this device >> properly before accessing it? Given that this is only one device this >> should not be a problem for us to maintain, I think? How would the >> fixing of the label work? Would we have to spawn restorecon for this, or >> can we actually do this in C without too much work? > > I guess we can just do what udev is doing, and call setfilecon(), with > a context of an earlier matchpathcon(). > > Kay > _______________________________________________ > systemd-devel mailing list > systemd-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/systemd-devel Here is the updated patch with a fix for the labeling of /dev/autofs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkxQMyoACgkQrlYvE4MpobNviACfWgxsjW2xzz1qznFex8RVAQHf gIEAmwRmRcLvGqYtwQaZ3WKIg8wmrwNk =pC2e
2010-07-21exec: extend variable substitution to support splitting variable values into ↵Lennart Poettering
seperate arguments
2010-07-20device: do not merge devicesLennart Poettering
Don't try to merge devices that have been created via dependencies when they appear in the system and can be recognized as the same. Instead, simply continue to maintain them independently of each other, however with the same state cycle. Why? Because otherwise we'd have a hard time to seperate the dependencies after the devices are unplugged again and we hence cannot be sure anymore that next time the device is plugged in it will carry the same names. Example: if one depndency refers to dev-sda.device and another one to dev-by-id-xxxyyy.device we only learn at time of plug in of the device that it is actually the same device that was ment. In the moment the device is unplugged again we won't know anymore their relation to each other and the next time the harddisk is plugged it might even appear as dev-by-id-xxxyyy.device and dev-sdb.service. To ensure the dependencies continue to have the meaning they were intended to have let's hence keep the .device objects seperate all the time, even when they are plugged in. This patch also introduces a new Following= property which points from the various .device units of a specific device to the main .device unit for it. This can be used by the client side to figure out the relation of the .device units to each other and even filter units from display.
2010-07-13cgroup: treat non-existing cgroups like empty ones, to deal with racesLennart Poettering
2010-07-12util: reset terminal even harderLennart Poettering
2010-07-12util: fix error handling in acquire_terminal()Lennart Poettering
2010-07-12cgroup: reimplement the last bit of libcgroup functionality nativelyLennart Poettering
2010-07-11cgroup: kill processes, not tasks and other cgroup changesLennart Poettering
2010-07-10execute: add ability to configure the kill signalLennart Poettering
2010-07-08install: various improvementsLennart Poettering
Rename --start to --realize, to make things less confusing when doing "systemctl stop --realize foo.service". Introduce --realize=reload. Don't talk to systemd when run within a chroot, or when systemd isn't running.
2010-07-08cgls: beef up control group dumping and introduce cgls toolLennart Poettering
2010-07-08util: fix missing memory initializationLennart Poettering
2010-07-08execute: support minimal environment variable replacement when executing ↵Lennart Poettering
processes
2010-07-07util: handle \s escape as defined in the XDG spec properly in cunescape()Lennart Poettering
2010-07-07util: introduce cunescape_length()Lennart Poettering
2010-07-07util: properly handle escaped quotes in words in split_quoted()Lennart Poettering
2010-07-07util: fix handling of unknown escapes in cunescape()Lennart Poettering
2010-07-07util: implement safe_atolu based on safe_atolli/safe_atoi, depending on word ↵Lennart Poettering
size
2010-07-07util: minor simplification when printing welcome textLennart Poettering
2010-07-07main: show welcome message on bootLennart Poettering
2010-07-07manager: optionally print status updates to console on bootLennart Poettering
2010-07-06util: fix space calculation in get_process_cmdline()Lennart Poettering
2010-07-05systemctl: show cgroup contents in statusLennart Poettering
2010-07-04dbus: complete exec coverageLennart Poettering
2010-07-01socket: make various socket/pipe options configurableLennart Poettering
2010-07-01core: rename struct timestamp to dual_timestamp to avoid name clash with IP ↵Lennart Poettering
system headers
2010-06-21pam: implement systemd PAM module and generelize cgroup API for that a bitLennart Poettering
2010-06-19don't use 'long long' unless we have a really good reason toLennart Poettering