1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
Commit Graph

134 Commits

Author SHA1 Message Date
Lennart Poettering
b5c6cf8734 main: refuse --test as root 2011-02-19 14:20:00 +01:00
Lennart Poettering
934da03599 service: change default std output to inherit 2011-02-15 12:28:01 +01:00
Lennart Poettering
0a494f1ff3 exec: introduce global defaults for the standard output of services 2011-02-15 11:52:29 +01:00
Lennart Poettering
6a3b1508f7 getty: don't parse console= anymore, use /sys/class/tty/console/active instead 2011-02-14 19:57:18 +01:00
Lennart Poettering
e1b2b49465 systemd: show status when run with plymouth, and don't start plymouth a second time when it is already running 2011-02-09 14:17:52 +01:00
Lennart Poettering
ed86ebc414 main: don't warn if /etc/mtab is a symlink to /proc/mounts 2011-01-21 02:57:58 +01:00
Lennart Poettering
06d4c99ab3 manager: make list of default controllers configurable 2010-11-18 00:42:35 +01:00
Lennart Poettering
af2d49f70b drop support for MANAGER_SESSION, introduce MANAGER_USER instead 2010-11-15 22:13:26 +01:00
Lennart Poettering
6ee5bbf85c main: warn if /etc/mtab is not a symlink 2010-11-10 23:18:34 +01:00
Lennart Poettering
f3b6a3edbc main: rename process on startup to 'systemd' to avoid confusion 2010-11-10 22:39:33 +01:00
Lennart Poettering
e9ddabc246 manager: parse RD_TIMESTAMP passed from initrd 2010-11-10 22:38:44 +01:00
Lennart Poettering
c4dcdb9f47 selinux: automatically load policy if the initrd hasn't done this for us yet 2010-10-27 05:47:02 +02:00
Lennart Poettering
ade509ce73 main: move make_null_stdio() to util.c 2010-10-27 05:45:57 +02:00
Andrey Borzenkov
87d1969bb3 main: fix typo in kernel cmdline parameters help 2010-10-26 20:07:12 +02:00
Lennart Poettering
39439087bf main: don't unset HOME/TERM when run in session mode 2010-10-26 02:32:02 +02:00
Lennart Poettering
1104f3c160 systemd: unset HOME and TERM set from the kernel 2010-10-25 21:05:04 +02:00
Fabiano Fidencio
b9080b03a9 manager: hookup execution of systemd-shutdown helper
(Modified by Lennart Poettering)
2010-10-14 00:52:26 +02:00
Lennart Poettering
52661efd21 unit: add minimal condition checker for unit startup 2010-10-13 02:15:41 +02:00
Lennart Poettering
6daf4f9001 unit: rename 'banned' load state to 'masked' 2010-10-08 18:21:52 +02:00
Lennart Poettering
00dc5d769a unit: introduce 'banned' load state for units symlinked to /dev/null 2010-10-08 02:31:36 +02:00
Lennart Poettering
3c14d26c47 util: unify implementations of freeze() 2010-10-07 19:34:56 +02:00
Fabiano Fidencio
07459bb6b9 sysv: optionally disable of SysV init/rcN.d support at compile time
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to
isolate code dealing with /etc/init.d and /etc/rcN.d for systems where
it does not make sense (one that does not use sysv or one that is fully
systemd native).

The patch tries to be as little intrusive as possible, however in
order to minimize the number of #ifdef'ed regions I've reordered some
code in path-lookup.c:lookup_paths_init() where all code dealing with
sysv is now isolated under running_as == MANAGER_SYSTEM as well.

Moreover, In struct Service, some fields were rearranged to reduce
the number of ifdefs.

Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).
2010-09-27 03:25:05 +02:00
Lennart Poettering
490aed5849 ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user 2010-09-17 01:26:29 +02:00
Lennart Poettering
72bca11ba2 locale: initialize locale from /etc/locale by default 2010-09-16 01:57:42 +02:00
Lennart Poettering
8e12a6aed3 util: use waitid() instead of waitpid() everywhere to avoid confusion due to SIGSTOP 2010-09-15 14:48:59 +02:00
Lennart Poettering
ed370f5daa main: when we encounter 'emergency' on the kernel cmdline start the emergency shell 2010-09-08 01:55:35 +02:00
Lennart Poettering
7d568925bd systemctl: make --version a little bit more verbose 2010-09-06 03:11:24 +02:00
Lennart Poettering
22f4096ca9 systemctl: rework exit codes for all utility programs to follow LSB or other standards 2010-08-31 21:05:54 +02:00
Lennart Poettering
b2bb3dbed9 console: rework automatic getty on kernel console logic again
It is essential that the gettys are proper dependencies from
getty.target so that they aren't killed and immediately restarted on
runlevel changes. Hence rework the logic to implicitly add console
gettys to getty.target as dependencies.

This also adds an automatic hvc console for virtualizers.

https://bugzilla.redhat.com/show_bug.cgi?id=501720
2010-08-30 23:03:58 +02:00
Lennart Poettering
173a8d04fc mount: rework automatic mounting to follow the 'nofail' option in fstab 2010-08-25 20:37:04 +02:00
Lennart Poettering
d3689161a2 mount: add global configuration options for handling of auto mounts 2010-08-25 03:11:26 +02:00
Tero Roponen
a9c501a590 main: restore an accidentally removed 'else'
I just noticed this when reading the latest commits.
2010-08-17 23:45:57 +02:00
Lennart Poettering
1c27d3f3fd main: properly fallback to rescue.target if default.target is hosed 2010-08-17 20:42:53 +02:00
Lennart Poettering
1cba2c90e8 modprobe: kill support for nomodules
this should happen in the kernel itself, not be controlled from
userspace, if at all. So let's kill this here.
2010-08-17 18:13:47 +02:00
Lennart Poettering
888c6216ca nss: don't disable nscd anymore, since it doesn't make sense to socket-activate nscd anyway 2010-08-17 18:13:46 +02:00
Lennart Poettering
5192bd1945 auto-getty: rework auto console getty logic to work in conjunction with single user mode 2010-08-17 03:29:46 +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
302e27c89e main: log build time features on startup 2010-08-12 01:03:24 +02:00
Lennart Poettering
afea26ad7d main: disable nscd properly, if possible 2010-08-11 23:31:07 +02:00
Lennart Poettering
e51bc1a23e selinux: split off selinux calls into seperate file label.c 2010-08-11 22:58:34 +02:00
Lennart Poettering
e364ad0628 clang: fix numerous little issues found with clang-analyzer 2010-08-11 22:04:25 +02:00
Lennart Poettering
6e98720f14 service: hide output of sysv scripts if quiet is passed on the kernel cmdline 2010-08-09 18:00:24 +02:00
Lennart Poettering
0ff4cdd967 main: automatically spawn a getty on the kernel configured serial console 2010-08-06 00:42:24 +02:00
Daniel J Walsh
56cf987fe7 Systemd is causing mislabeled devices to be created and then attempting to 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-08-03 23:45:22 +02:00
Lennart Poettering
e054f8333d main: disable NSS disabling logic for now, since this is incompatible with rpm 2010-07-24 01:29:21 +02:00
Lennart Poettering
2cc59dbfe0 systemctl: always disable color when output goes into a file 2010-07-20 21:04:32 +02:00
Lennart Poettering
d8d5ab981a manager: write serialization to /dev/.systemd/ instead of /dev/shm 2010-07-20 20:54:33 +02:00
Lennart Poettering
ad780f1991 main: disable nscd if we can to avoid deadlock, just in case 2010-07-16 03:07:53 +02:00
Lennart Poettering
1d2e23ab72 main: introduce -D as quick acess to debugging 2010-07-13 20:06:33 +02:00
Lennart Poettering
edb9aaa8b2 main: replace --running-as= by --session and --system do mimic related tools and D-Bus 2010-07-13 18:57:58 +02:00
Lennart Poettering
582a507f1a systemctl: show exec status of all exited programs 2010-07-10 15:42:24 +02:00
Lennart Poettering
ca326f6f2d main: introduce $SYSTEMD_SKIP_API_MOUNTS to disable mounting of API FS 2010-07-09 00:03:09 +02:00
Lennart Poettering
398ef8ba02 dbus: make errors reported via D-Bus more useful 2010-07-08 02:43:18 +02:00
Lennart Poettering
f60f22dfbb util: use quoted word parsing where applicable 2010-07-07 20:58:41 +02:00
Lennart Poettering
54165a3939 log: bump up a number of log messages so that they are shown even if debug logging is disabled, for diagnostic purposes 2010-07-07 17:57:54 +02:00
Lennart Poettering
e015090f32 main: always log when we reexecute or reload 2010-07-07 17:44:11 +02:00
Lennart Poettering
7c70671781 main: lower default log level to INFO 2010-07-07 04:13:20 +02:00
Lennart Poettering
455d8dc9ff main: show welcome string only when asked for 2010-07-07 01:51:44 +02:00
Lennart Poettering
487393e9f1 main: implement manager configuration file 2010-07-07 01:10:27 +02:00
Lennart Poettering
c846ff4798 main: show welcome message on boot 2010-07-07 00:25:41 +02:00
Lennart Poettering
9e58ff9c5c manager: optionally print status updates to console on boot 2010-07-07 00:00:59 +02:00
Lennart Poettering
fa0f4d8a3a main: add a native implementation of the 'nomodules' kernel option understood by fedora init scripts 2010-07-06 20:34:28 +02:00
Lennart Poettering
2e33c4331f minor fixes to help texts 2010-06-24 00:08:42 +02:00
Lennart Poettering
2218198b73 man: start documenting systemd itself 2010-06-23 20:34:34 +02:00
Lennart Poettering
bb00e60409 don't use 'long long' unless we have a really good reason to 2010-06-19 04:35:52 +02:00
Lennart Poettering
a3d4e06dfa manager: get rid of destinction between running_as=system and running_as=init, as there is little value in it and we cannot really test this 2010-06-19 03:15:59 +02:00
Lennart Poettering
d0b170c813 main: don't segfault when --log-color is passed without parameter 2010-06-18 23:13:15 +02:00
Lennart Poettering
2cb1a60d14 init: call telinit in case we are run as init and not pid1 2010-06-18 20:01:01 +02:00
Lennart Poettering
514f4ef52f systemctl: add verbs for special units 2010-06-18 04:22:59 +02:00
Lennart Poettering
bbe63281ea log: make color/location logging optional 2010-06-17 22:52:55 +02:00
Lennart Poettering
5b6319dcee service: optionally call into PAM when dropping priviliges 2010-06-16 21:54:17 +02:00
Lennart Poettering
41192f6e8a main: fix help regarding --unit/systemd.unit= 2010-06-16 05:06:55 +02:00
Lennart Poettering
7020e8be3f reword a few log messages 2010-06-11 11:39:59 +02:00
Lennart Poettering
2f198e2f36 main: rename systemd.default= to systemd.unit= 2010-06-09 15:38:46 +02:00
Lennart Poettering
93a46b0bc5 macro: avoid name clash with _unused on ppc 2010-06-02 21:34:03 +02:00
Lennart Poettering
8efe3c0114 main: don't try to mount api dirs if we are not root 2010-05-24 18:59:13 +02:00
Lennart Poettering
4288f61921 dbus: automatically generate and install introspection files 2010-05-23 03:45:33 +02:00
Lennart Poettering
1b91d3e8f4 execute: fix typo 2010-05-22 04:39:16 +02:00
Lennart Poettering
9a34ec5fbb execute: only reset those signals to the default we really need to reset to the default 2010-05-22 01:46:08 +02:00
Lennart Poettering
11c3a4eeb7 kmod: automatically load a few kernel modules we need for normal operation before udev is active 2010-05-22 00:29:53 +02:00
Lennart Poettering
c8513d54d2 log: never close file descriptors < 3 2010-05-18 05:10:52 +02:00
Lennart Poettering
21de3988ab main: ignore EPERM in TIOCSTTY when opening terminal for crash shell 2010-05-18 03:40:19 +02:00
Lennart Poettering
5b2a090372 main: if we fail to acquire a terminal for the crash shell, warn but continue 2010-05-18 03:27:02 +02:00
Lennart Poettering
e99e38bbdc build-sys: move source files to subdirectory 2010-05-16 18:45:24 +02:00