Commit graph

45 commits

Author SHA1 Message Date
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
Renamed from main.c (Browse further)