summaryrefslogtreecommitdiff
path: root/src/util.h
AgeCommit message (Collapse)Author
2011-04-03kmsg-syslogd: pass facility value into kmsgLennart Poettering
2011-03-31log: fix shifting of facilitiesLennart Poettering
2011-03-30status: show status messages unconditionally if plymouth is aroundLennart Poettering
2011-03-28util: detect page size runtime.cee1
Some architectures support multiple machine types with diffenent page sizes, and some machine types even support multiple page sizes themselves.
2011-03-14util: add detect_container()Lennart Poettering
2011-03-14util: properly identify pty devices by their majorLennart Poettering
2011-03-09dbus: properly generate UnknownInterface, UnknownProperty and ↵Lennart Poettering
PropertyReadOnly errors
2011-03-04execute: load environment files at time of execution, not when we load the ↵Lennart Poettering
service configuration https://bugzilla.redhat.com/show_bug.cgi?id=661282
2011-03-03kill: always send SIGCONT after SIGTERMLennart Poettering
When we kill a process to terminate it make sure to send SIGCONT to ensure it is unpaused and processes the signal.
2011-02-21virtualization: beef virtualization codeLennart Poettering
2011-02-17util: beef up logic to find ctty nameLennart Poettering
2011-02-15shutdown: execute all binaries in /lib/systemd/system-shutdown as last step ↵Lennart Poettering
before invoking reboot()
2011-02-14getty: do not auto-spawn getty's on VC ttys if console=ttyN is usedLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=676885
2011-02-13readahead: disable readahead in virtual machinesLennart Poettering
2011-01-20systemctl: highlight failed processes in systemctl statusLennart Poettering
2011-01-05fragment: properly handle quotes in assignments in EnvironmentFile= filesLennart Poettering
2010-12-28tmpfiles: ensure we do no follow symlinks when cleaning up dirsLennart Poettering
Patch suggested by Miloslav Trmac.
2010-11-15exec: automatically determine right TERM= setting based on tty nameLennart Poettering
2010-11-12cryptsetup: hook up tool with ask-passwordLennart Poettering
2010-11-10manager: parse RD_TIMESTAMP passed from initrdLennart Poettering
2010-11-10cryptsetup: minimal cryptsetup unit generatorLennart Poettering
2010-10-28service: unify tstamp serialization codeLennart Poettering
2010-10-27mounts: automatically create /dev/stderr and friends early on boot so that ↵Lennart Poettering
they are around when we run shell scripts before udevd
2010-10-27main: move make_null_stdio() to util.cLennart Poettering
2010-10-27unit: serialize active timestampsLennart Poettering
2010-10-25ask-password: add basic tty agentLennart Poettering
2010-10-22systemctl: introduce systemctl killLennart Poettering
2010-10-18tmpfiles: integrate kay's directory cleanup code and otherwise beef up ↵Lennart Poettering
tmpfiles quite a bit
2010-10-08unit: introduce 'banned' load state for units symlinked to /dev/nullLennart Poettering
2010-10-07util: unify implementations of freeze()Lennart Poettering
2010-10-07util: Adding a strneq, to represent (!strncmp(a, b, n))Fabiano Fidencio
As we have streq to repesent (strcmp(a, b) == 0),I'm adding strneq to represent (strncmp(a, b, n) == 0), that will be used in umount.c (at least).
2010-10-05fix typo: s/seperat/separat/gDave Reisner
2010-09-21manager: measure startup timesLennart Poettering
2010-09-16vconsole: add new utility to initialize the virtual consoleLennart Poettering
2010-09-15util: use waitid() instead of waitpid() everywhere to avoid confusion due to ↵Lennart Poettering
SIGSTOP
2010-09-15util: introduce waitpid_loop()Lennart Poettering
2010-08-25systemctl: show timestamps for state changesLennart Poettering
2010-08-20mount: properly handle LABEL="" in fstabLennart Poettering
2010-08-20dbus: follow standardized fdo PropertiesChanged signal specLennart 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-17emacs: disable tabs in .h files, tooLennart Poettering
2010-08-16systemctl: add support for delayed shutdown, similar to sysv in styleLennart 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-11systemctl: beef up highlighting of service states a littleLennart 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-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-12cgroup: reimplement the last bit of libcgroup functionality nativelyLennart Poettering