summaryrefslogtreecommitdiff
path: root/src/execute.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-09service: ignore SIGPIPE by defaultv41Lennart Poettering1-4/+10
2012-02-01exec: include path name of binary we are about to execute when renaming ↵Lennart Poettering1-5/+34
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-18persistant -> persistentKay Sievers1-6/+6
2012-01-18exec: introduce ControlGroupPersistant= to make cgroups persistantLennart Poettering1-2/+15
2012-01-06journal: introduce log target 'journal' for executed processesLennart Poettering1-5/+11
2012-01-05execute: talk directly to the journald, instead to the stdout-syslog-bridgeLennart Poettering1-23/+15
2011-12-17execute: fix losing of start timestampsMichal Schmidt1-2/+1
Start timestamps were always cleared before saving exit timestamps. Fix it by removing a condition that makes no sense any way I look at it.
2011-11-17execute: log errors from "sd(EXEC)"Michal Schmidt1-36/+102
To give the administrator more hints about failures occuring in spawning of commands than just the exit code, log the strerror. All fds are closed, so reopen the log. Related-to: https://bugzilla.redhat.com/show_bug.cgi?id=752901
2011-11-17execute: make setup_pam() return -errno when possibleMichal Schmidt1-1/+7
The only caller currently checks if the result is non-zero, so nothing changes there.
2011-11-16execute: avoid logging to closed fdsMichal Schmidt1-0/+1
Several functions called from the "sd(EXEC)" process try to log messages when all the file descriptors are already closed, including the logging ones. The logging functions do not expect their fds to be closed and they hit an assertion failure. The failure wants to be logged too, so there is an infinite recursion, ended by a SIGSEGV. When we close all fds, we must let log.c know about it.
2011-11-07utmp: remove unneded parametersMichal Schmidt1-1/+1
With these functions no caller ever passes anything else than 0 for 't' (meaning the current time will be used).
2011-10-11util: properly detect what the last capability isLennart Poettering1-5/+2
2011-08-30stdout-bridge: rename logger to stdout-syslog-bridge to make it more descriptiveLennart Poettering1-2/+2
2011-08-20exec: optionally apply cgroup attributes to the cgroups we createLennart Poettering1-3/+6
2011-08-02exec: introduce PrivateNetwork= process option to turn off network access to ↵Lennart Poettering1-2/+13
specific services
2011-08-01execute: properly enforce groupLennart Poettering1-1/+1
https://bugzilla.redhat.com/show_bug.cgi?id=723892
2011-08-01umask: change default umask to 0022 just to be sure, and set it explicitly ↵Lennart Poettering1-1/+1
in all binaries, in order to make sure it is set when started from the terminal
2011-07-23util: make use of get_user_creds() and get_group_creds() wherever applicableLennart Poettering1-33/+9
2011-07-23util: user parse_uid() wherever applicableLennart Poettering1-3/+3
2011-07-01nspawn: Move the get_user_creds from execute.c to utils.c for later usage in ↵Michal Vyskocil1-46/+0
nspawn.c.
2011-06-30execute: properly pass PAM environment to executed processLennart Poettering1-1/+4
2011-06-30execute: fix PAM error checkingLennart Poettering1-1/+1
2011-06-30execute: invoke sigwait() in a loop when waiting for PAM parent, to avoid ↵Lennart Poettering1-5/+12
spurious wake-ups
2011-06-30execute: don't invoke pam_setcred, since we are not running on a tty where ↵Lennart Poettering1-3/+0
the user could change his password
2011-06-30execute: do initgroups() first, pam initialization second so that it can ↵Lennart Poettering1-9/+9
still modify the groups list
2011-06-30exec: add ControlGroupModify= switch to allow changing access mode to cgroups fsLennart Poettering1-2/+11
2011-06-28execute: don't choke when systemd was compiled with a different CAP_LAST_CAP ↵Lennart Poettering1-4/+8
then what it is run with
2011-05-18exec: hangup/reset/deallocate VTs in gettysLennart Poettering1-5/+30
Explicitly disconnect all clients from a VT when a getty starts/finishes (requires TIOCVHANGUP, available in 2.6.29). Explicitly deallocate getty VTs in order to flush scrollback buffer. Explicitly reset terminals to a defined state before spawning getty.
2011-04-19execute: when we run as PID 1 the kernel doesn't give us CAP_SETPCAP by ↵Lennart Poettering1-7/+66
default. Get that temporarily when dropping capabilities for good
2011-04-12execute: don't fail if we cannot fix OOM in a containerLennart Poettering1-1/+2
2011-04-06service: fix units with more than one socketLennart Poettering1-1/+1
https://bugzilla.redhat.com/show_bug.cgi?id=693289
2011-03-31log: fix shifting of facilitiesLennart Poettering1-1/+1
2011-03-31src: our lord is coverityLennart Poettering1-1/+1
2011-03-29exec: drop process group kill mode since it has little use and confuses the userLennart Poettering1-1/+0
2011-03-18exec: properly apply capability bounding set, add inverted bounding setsLennart Poettering1-3/+12
2011-03-17def: centralize definition of default timeout in one placeLennart Poettering1-0/+1
2011-03-14core: move abstract namespace sockets to /dev/.runLennart Poettering1-2/+2
Now that we have /dev/.run there's no need to use abstract namespace sockets. So, let's move things to /dev/.run, to make things more easily discoverable and improve compat with chroot() and fs namespacing.
2011-03-04execute: load environment files at time of execution, not when we load the ↵Lennart Poettering1-51/+133
service configuration https://bugzilla.redhat.com/show_bug.cgi?id=661282
2011-03-03kill: always send SIGCONT after SIGTERMLennart Poettering1-1/+3
When we kill a process to terminate it make sure to send SIGCONT to ensure it is unpaused and processes the signal.
2011-02-28Spelling CorrectionsHarald Hoyer1-8/+8
Just some lame spelling corrections with no functionality.
2011-02-15execute: optionally forward program output to /dev/console in addition to ↵Lennart Poettering1-2/+13
syslog/kmsg
2011-01-18execute: make sending of SIGKILL on shutdown optionalLennart Poettering1-2/+5
2011-01-06execute,util: fix two small memory leaksLennart Poettering1-0/+3
2011-01-06execute: drop empty assignments from env blocks on execution but keep them ↵Lennart Poettering1-0/+2
around otherwise to make them visible
2010-11-15exec: automatically determine right TERM= setting based on tty nameLennart Poettering1-2/+10
2010-10-22systemctl: introduce systemctl killLennart Poettering1-1/+18
2010-10-13unit: add minimal condition checker for unit startupLennart Poettering1-1/+0
2010-10-08service: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a serviceLennart Poettering1-1/+14
This should fix accounting for pam_limits and suchlike. https://bugzilla.redhat.com/show_bug.cgi?id=636036
2010-10-07util: never use sizeof(sa_family_t) when calculating sockaddr sizesLennart Poettering1-1/+1
2010-08-31exec: replace OOMAdjust= by OOMScoreAdjust= to follow new kernel interfaceLennart Poettering1-8/+22
This replaces OOMAdjust= by OOMScoreAdjust= in the config files, breaking compatibility with older unit files. However, this keeps compat with older kernels which lack the new OOM rework.