Lennart Poettering
4b67834e9f
util: make use of get_user_creds() and get_group_creds() wherever applicable
2011-07-23 01:17:59 +02:00
Lennart Poettering
ddd8876392
util: user parse_uid() wherever applicable
2011-07-23 00:47:17 +02:00
Michal Vyskocil
1cccf43569
nspawn: Move the get_user_creds from execute.c to utils.c for later usage in nspawn.c.
2011-07-01 23:49:56 +02:00
Lennart Poettering
aa87e62474
execute: properly pass PAM environment to executed process
2011-06-30 04:31:34 +02:00
Lennart Poettering
7fbf31dfe3
execute: fix PAM error checking
2011-06-30 04:15:53 +02:00
Lennart Poettering
3dead8d925
execute: invoke sigwait() in a loop when waiting for PAM parent, to avoid spurious wake-ups
2011-06-30 04:15:39 +02:00
Lennart Poettering
0f1df8e169
execute: don't invoke pam_setcred, since we are not running on a tty where the user could change his password
2011-06-30 04:14:50 +02:00
Lennart Poettering
3b8bdddeff
execute: do initgroups() first, pam initialization second so that it can still modify the groups list
2011-06-30 02:15:01 +02:00
Lennart Poettering
64747e2d4b
exec: add ControlGroupModify= switch to allow changing access mode to cgroups fs
2011-06-30 00:11:25 +02:00
Lennart Poettering
ae556c2109
execute: don't choke when systemd was compiled with a different CAP_LAST_CAP then what it is run with
2011-06-28 13:33:56 +02:00
Lennart Poettering
6ea832a207
exec: hangup/reset/deallocate VTs in gettys
...
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-05-18 01:07:36 +02:00
Lennart Poettering
73090dc815
execute: when we run as PID 1 the kernel doesn't give us CAP_SETPCAP by default. Get that temporarily when dropping capabilities for good
2011-04-19 06:06:41 +02:00
Lennart Poettering
90a5f6e42a
execute: don't fail if we cannot fix OOM in a container
2011-04-12 20:12:15 +02:00
Lennart Poettering
9c1b183c70
service: fix units with more than one socket
...
https://bugzilla.redhat.com/show_bug.cgi?id=693289
2011-04-06 02:25:39 +02:00
Lennart Poettering
7d76f31288
log: fix shifting of facilities
2011-03-31 21:22:44 +02:00
Lennart Poettering
da19d5c19f
src: our lord is coverity
2011-03-31 15:35:40 +02:00
Lennart Poettering
cd25cce98f
exec: drop process group kill mode since it has little use and confuses the user
2011-03-29 23:31:38 +02:00
Lennart Poettering
260abb780a
exec: properly apply capability bounding set, add inverted bounding sets
2011-03-18 04:52:45 +01:00
Lennart Poettering
f6a6225e41
def: centralize definition of default timeout in one place
2011-03-17 04:02:35 +01:00
Lennart Poettering
91b22f21f3
core: move abstract namespace sockets to /dev/.run
...
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-14 03:12:25 +01:00
Lennart Poettering
8c7be95e5a
execute: load environment files at time of execution, not when we load the service configuration
...
https://bugzilla.redhat.com/show_bug.cgi?id=661282
2011-03-04 03:44:43 +01:00
Lennart Poettering
430c18ed7f
kill: always send SIGCONT after SIGTERM
...
When we kill a process to terminate it make sure to send SIGCONT to
ensure it is unpaused and processes the signal.
2011-03-03 23:55:30 +01:00
Harald Hoyer
35b8ca3aaf
Spelling Corrections
...
Just some lame spelling corrections with no functionality.
2011-02-28 22:47:38 +01:00
Lennart Poettering
28dbc1e80b
execute: optionally forward program output to /dev/console in addition to syslog/kmsg
2011-02-15 01:27:53 +01:00
Lennart Poettering
ba035df230
execute: make sending of SIGKILL on shutdown optional
2011-01-18 22:55:54 +01:00
Lennart Poettering
86a3475bc5
execute,util: fix two small memory leaks
2011-01-06 23:52:17 +01:00
Lennart Poettering
a6ff950e71
execute: drop empty assignments from env blocks on execution but keep them around otherwise to make them visible
2011-01-06 20:38:02 +01:00
Lennart Poettering
e3aa71c38c
exec: automatically determine right TERM= setting based on tty name
2010-11-15 23:49:02 +01:00
Lennart Poettering
8a0867d6c5
systemctl: introduce systemctl kill
2010-10-22 16:11:50 +02:00
Lennart Poettering
52661efd21
unit: add minimal condition checker for unit startup
2010-10-13 02:15:41 +02:00
Lennart Poettering
169c1bda80
service: optionally, create INIT_PROCESS/DEAD_PROCESS entries for a service
...
This should fix accounting for pam_limits and suchlike.
https://bugzilla.redhat.com/show_bug.cgi?id=636036
2010-10-08 16:07:50 +02:00
Lennart Poettering
0e098b15c7
util: never use sizeof(sa_family_t) when calculating sockaddr sizes
2010-10-07 02:34:17 +02:00
Lennart Poettering
dd6c17b159
exec: replace OOMAdjust= by OOMScoreAdjust= to follow new kernel interface
...
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.
2010-08-31 01:33:43 +02:00
Lennart Poettering
da726a4d4d
exec: make sure O_NONBLOCK is off for all sockets passed as STDIN/STDOUT/STDERR
2010-08-30 23:31:27 +02:00
Lennart Poettering
d06dacd002
service/systemctl: don't consider LSB exit codes 5 and 6 as failure, and decode exit codes in systemctl
2010-08-20 02:31:54 +02:00
Lennart Poettering
d6c9574fb5
emacs: make sure nobody accidently adds tabs to our sources
2010-08-14 19:59:25 +02:00
Lennart Poettering
e364ad0628
clang: fix numerous little issues found with clang-analyzer
2010-08-11 22:04:25 +02:00
Lennart Poettering
73883adc1e
socket: don't close sockets when activating per-connection units
2010-07-14 04:47:57 +02:00
Lennart Poettering
21d21ea42e
execute: inherit from original input, not the fixed up
2010-07-12 22:04:59 +02:00
Lennart Poettering
85d73053f2
execute: reword comment
2010-07-12 21:53:36 +02:00
Lennart Poettering
fc9b2a84dc
execute: close inherited fds earlier
2010-07-12 20:34:53 +02:00
Lennart Poettering
b5f776cee9
execute: use right logger socket
2010-07-11 04:38:40 +02:00
Lennart Poettering
2e22afe909
execute: add ability to configure the kill signal
2010-07-10 04:49:37 +02:00
Lennart Poettering
fab56fc541
execute: support minimal environment variable replacement when executing processes
2010-07-08 04:09:59 +02:00
Lennart Poettering
1e3ad081ef
execute: if the main process of a service already owns the TTY, don't wait for acquiring it again in the reload/stop step
2010-07-08 04:09:17 +02:00
Lennart Poettering
acb591e452
execute: change stdout inherit logic, when run as PID 1 use /dev/null
2010-07-07 04:37:42 +02:00
Lennart Poettering
7492290434
turn negative options into positive options
2010-07-05 01:08:13 +02:00
Lennart Poettering
03fae01822
uniformly suffix time span properties with their unit
2010-07-04 21:12:10 +02:00
Lennart Poettering
b58b41160f
dbus: complete exec status coverage
2010-07-04 18:49:58 +02:00
Lennart Poettering
82c121a475
dbus: complete exec coverage
2010-07-04 16:44:58 +02:00