summaryrefslogtreecommitdiff
path: root/src/util.c
AgeCommit message (Collapse)Author
2012-03-16util: never follow symlinks in rm_rf_children()Michal Schmidt
The function checks if the entry is a directory before recursing, but there is a window between the check and the open, during which the directory could be replaced with a symlink. CVE-2012-1174 https://bugzilla.redhat.com/show_bug.cgi?id=803358
2012-03-14journalctl: warn if the user is not in the adm groupLennart Poettering
2012-03-13util: add brute-force fallback for close_all_fds()Lennart Poettering
If /proc is not available (i.e. in chroot envs) let's fall back to brute forcing our way through the fd table. https://bugzilla.redhat.com/show_bug.cgi?id=784921
2012-03-12conf: enforce UTF8 validty everywhereLennart Poettering
we need to make sure that configuration data we expose via the bus ends up in using getting an assert(). Even though configuration data is only parsed from trusted sources we should be more careful with what we read.
2012-03-05fix sparse warningsFrederic Crozat
2012-02-13always use /etc/os-release and ignore all distro-specific filesKay Sievers
The text mode welcome message will only show the distro name stored in /etc/os-release and no longer read any distro-specific files. If /etc/os-release does not exist, 'Linux' will be printed. When the source tree is is ./configure'd, only /etc-os-release is read to guess the distro to build for. If /etc/os-release does not exist, --with-distro= needs to be specified.
2012-02-11util: fix handling of empty files in read_one_line_file()Lennart Poettering
https://bugs.freedesktop.org/show_bug.cgi?id=45362
2012-02-02util: prevent daemon-reload from reaping service processes.Chris Paulson-Ellis
The reaping of generator processes run as part of a daemon-reload should not call waitid(PID_ALL). The waitid() call in execute_directory() is intended only to reap the executed processes, but if a service process exits at about the same time as a daemon-reload, then that service process is reaped as well, preventing it from being reaped in the proper place in manager_dispatch_sigchld(). Fixes https://bugs.freedesktop.org/show_bug.cgi?id=43625
2012-02-01exec: include path name of binary we are about to execute when renaming ↵Lennart Poettering
forked off processes Immediately after forking off a process change the comm name and argv[0] to "(foobar)" where "foobar" is the basename of the path we are about to execute. This should be useful when charting boot progress.
2012-01-29main: don't force text mode in console_setup()Michal Schmidt
When systemd starts, plymouth may be already displaying progress graphically. Do not switch the console to text mode at that time. All other users of reset_terminal_fd() do the switch as before. This avoids a graphical glitch with plymouth, especially visible with vesafb, but could be also seen as a sub-second blink with radeon. https://bugzilla.redhat.com/show_bug.cgi?id=785548
2012-01-27log: increase socket buffers for logging by defaultLennart Poettering
2012-01-23util: use /dev/rtc symlink if possible before we go searching for a suitable ↵Lennart Poettering
device
2012-01-22cgtop: add new cgtop toolLennart Poettering
2012-01-22cgls: don't show kernel threads by defaultLennart Poettering
2012-01-21util: open the first RTC that has hctosys=1 setLennart Poettering
2012-01-18tmpfiles: support writing short strings to files, in order to support /sys ↵Lennart Poettering
manipulations at boot time, a la sysctl
2012-01-18exec: introduce ControlGroupPersistant= to make cgroups persistantLennart Poettering
2012-01-14util: support formatting eta and peta bytes with format_bytes()Lennart Poettering
2012-01-14util: split out tty_is_vc_resolve() from default_term_for_tty()Lennart Poettering
2012-01-14util: rework ANSI escape code macrosLennart Poettering
2012-01-10shutdown: exclude processes with argv[0][0] from killingLennart Poettering
2012-01-06util: switch the console to text mode on resetMichal Schmidt
In case we're taking over the console after a killed X server. https://bugzilla.redhat.com/show_bug.cgi?id=771563
2012-01-06util: fix switching to console unicode modeMichal Schmidt
The KDSKBMODE ioctl wants a value directly, not its address.
2012-01-05journalctl: rework short output mode to rebuild full syslog messageLennart Poettering
2012-01-05util: never ellipsize welcome messageLennart Poettering
2012-01-05util: when printing status updates during boot, take terminal width into accountLennart Poettering
2012-01-04journal: beef up journal output of systemctl and journalctlLennart Poettering
2011-12-31util: fix warningLennart Poettering
2011-12-31journal: automatically deduce journal metrics from file system sizesLennart Poettering
2011-12-31Merge branch 'journal'Lennart Poettering
2011-12-23journal: implement stdout transportLennart Poettering
2011-12-21journalctl: add json, export, short and verbose output modesLennart Poettering
2011-12-19journal: implement inotify-based live logging logicLennart Poettering
2011-12-03util: fix error checking after fgets()Michal Schmidt
fgets() does not set errno on EOF.
2011-10-12util: fix buildLennart Poettering
2011-10-12Merge branch 'master' into journalLennart Poettering
2011-10-11util: properly detect what the last capability isLennart Poettering
2011-10-10util: fix close() call on wrong variableThomas Jarosch
Detected by "cppcheck" (actually it detected a file descriptor leak)
2011-10-07journal: split user logs into their own journal filesLennart Poettering
2011-10-07journal: add preliminary incomplete implementationLennart Poettering
2011-09-28localed: add SetX11Keyboard() and SetVConsoleKeyboard() bus callsLennart Poettering
2011-09-23util: move virtualization detection into its own files, and extend return codesLennart Poettering
2011-09-23util: don't fail if no id was passed to detect_container()Lennart Poettering
2011-09-23util: detect systemd-nspawn without relying on ns cgroup treeLennart Poettering
2011-09-23util: improve signal_to_string, signal_from_stringMichal Schmidt
signal_to_string: Produce names for SIGRTMIN+n. Never give an "n/a" result. In the worst case give the number itself as a string. signal_from_string: Parse "RTMIN+n". Parse any valid signal number.
2011-09-23coverity: change a few things so that coverity doesn't show so many false ↵Lennart Poettering
positives
2011-09-23coverity: fix a couple of bugs found by coverityLennart Poettering
2011-08-24initctl: check for kexec_loaded when reboot is requested through initctlFrederic Crozat
2011-08-23cgroup: optionally mount a specific cgroup controllers together, and add ↵Lennart Poettering
cpu+cpuacct to the default
2011-08-21cgroup: when trimming cgroup trees, honour sticky bit of tasks fileLennart Poettering