1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-14 15:21:37 +03:00
Commit Graph

2477 Commits

Author SHA1 Message Date
Kay Sievers
fbe092cc70 mount /run without MS_NOEXEC 2011-06-14 14:15:40 +02:00
Michal Schmidt
597b99b09a readahead-common: fix total memory size detection
sysinfo returns the total memory size in multiples of mem_unit bytes.
As long as the size in bytes fits into unsigned long, the kernel uses
mem_unit = 1, but this is not true on i386 with more than 4 GB RAM.

https://bugzilla.redhat.com/show_bug.cgi?id=712341
2011-06-10 14:57:12 +02:00
Frederic Crozat
dc725264f3 enable chkconfig support in systemctl for openSUSE 2011-06-09 13:31:26 +02:00
Michal Schmidt
ef9d7dca54 selinux: selinuxfs can be mounted on /sys/fs/selinux
The kernel now provides the /sys/fs/selinux mountpoint and libselinux
prefers it if it's available.

systemd currently tests only for /selinux and this leads to an infinite
loop of policy reloads in the latest Rawhide.

Fix it by checking both possible mountpoints.
Also add the new path to ignore_paths[].

/selinux appears also in nspawn.c. I don't think it's necessary to
change it there at this point.

https://bugzilla.redhat.com/show_bug.cgi?id=711015
2011-06-07 00:53:39 +02:00
Michal Schmidt
aae5220d96 cryptsetup-generator: fix /etc/cryptsetup options
cryptsetup-generator parses the options in /etc/cryptsetup incorrectly.
It fails to find the 'swap' option in
  swap,foo
and instead it matches on
  swaplalala,foo

The condition for the comma separator is reversed.

https://bugzilla.redhat.com/show_bug.cgi?id=710839
2011-06-06 22:59:19 +02:00
Michal Schmidt
78e39b43b8 systemctl: fix double unref of a dbus message 2011-06-05 17:22:37 +02:00
Ozan Çağlayan
9a66640832 exec: Fix number of unit types
There are four unit types mentioned in here, not three
2011-05-27 08:28:40 +02:00
Lennart Poettering
0e8eb2d2e2 build-sys: prepare v28 2011-05-26 19:18:54 +02:00
Kay Sievers
e6a3081a62 sd-daemon: remove superfluous _sd_hidden_ from static function 2011-05-26 14:23:01 +02:00
Kay Sievers
da26173785 drop hwclock-save.service
We don't want to fiddle around changing the RTC, not on bootup, not
on shutdown.

If we don't run NTP, we have absolutely no clue what's the current
time to store in the RTC. If we run NTP, the kernel syncs the system
time every 11 minutes to the RTC.

Especially in multi-boot environents we must not call hwclock(8)
which tries to be smart with calculating/storing/applying drifts
and such.

Live-CDs must never touch the RTC, because we don't know if it is
running in UTC or locatime.
2011-05-25 18:21:36 +02:00
Michal Schmidt
cda2b84a69 dbus-common: fix segfault when a DBus message has no interface
dbus_message_get_interface() may return NULL.

https://bugzilla.redhat.com/show_bug.cgi?id=707483
2011-05-25 18:07:31 +02:00
William Swanson
d636fa3d67 man: update the list of unit search locations 2011-05-25 18:04:53 +02:00
Lennart Poettering
cf37e24688 readahead: explain that it is safe to ignore EACCES 2011-05-25 18:02:28 +02:00
Harald Hoyer
3afe3725fc readahead-collect: ignore EACCES for fanotify
At the start of auditd, we are temporarily not able to read
from the fanotify fd. Ignoring it, seems to work.
2011-05-25 17:59:00 +02:00
Kay Sievers
235b28269a update TODO 2011-05-25 00:38:36 +02:00
Kay Sievers
7948c4dfbe rtc in localtime: use settimeofday(NULL, tz) instead of hwclock(8)
We check for LOCAL in /etc/adjtime and if needed, ask the kernel to
apply the timezone delta to the system clock.

The very first call of settimeofday() without a time, but a timezone
warps the system clock, so that it properly runs in UTC.
2011-05-24 20:23:07 +02:00
Kay Sievers
359306dfe5 update TODO 2011-05-24 03:20:19 +02:00
Kay Sievers
8bf7fea558 update TODO 2011-05-24 01:30:51 +02:00
Lennart Poettering
cb4fdfc1b7 socket: expose mq params in introspection data 2011-05-22 00:29:52 +02:00
Kay Sievers
572481b909 bus_property_append_long: use signed long and 'x' in the signature for DBUS_TYPE_INT64 2011-05-21 23:18:38 +02:00
Kay Sievers
b8cef44e40 socket: always use SO_{RCV,SND}BUFFORCE to allow larger values 2011-05-20 18:43:05 +02:00
Lennart Poettering
b83bc4e9cc util: use new VT ESC sequence to clear scrollback buffer 2011-05-20 14:37:48 +02:00
Kay Sievers
b136daf5ca sd-daemon: move _sd_hidden_ from .h to .c file 2011-05-20 14:30:42 +02:00
Kay Sievers
b90865ba15 missing: add IP_TRANSPARENT 2011-05-20 13:37:04 +02:00
Lennart Poettering
784a51d5ef build-sys: prepare new release 27 2011-05-20 02:02:23 +02:00
Lennart Poettering
f28f1daf75 update TODO 2011-05-20 01:57:20 +02:00
Lennart Poettering
74bc3bdc20 util: use open_terminal() in chvt() too 2011-05-19 18:10:34 +02:00
Lennart Poettering
ec6370a22d socket: expose SO_BROADCAST 2011-05-19 18:10:19 +02:00
Lennart Poettering
ac49a39714 git: add .mailmap 2011-05-19 14:06:02 +02:00
Lennart Poettering
beaccad011 exec: expose tty reset options in dbus introspection data 2011-05-19 13:22:53 +02:00
Lennart Poettering
6b6d2deecc socket: expose IP_TRANSPARENT 2011-05-19 13:22:31 +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
9131f660ee socket: use 666 socket mode by default since neither fifos, nor sockets, nor mqueues need to be executable 2011-05-17 19:37:23 +02:00
Lennart Poettering
916abb21d0 socket: add POSIX mqueue support 2011-05-17 19:37:03 +02:00
Lennart Poettering
fff2e5b58b README: document relation to nss-myhostname 2011-05-17 19:35:56 +02:00
Lennart Poettering
c2a14cf0dd hostnamed: check that nss-myhostname is installed 2011-05-17 17:19:45 +02:00
Lennart Poettering
fb389e05d8 update TODO 2011-05-17 17:17:26 +02:00
Ludwig Nussel
cb80401132 sysctl: apply /etc/sysctl.conf last
apply /etc/sysctl.conf last to actually allow the admin to override
package provided defaults.
2011-05-16 23:36:52 +02:00
Koen Kooi
84bccb47a7 systemd-analyze: print hostname, kernelversion and arch at the top of the plot 2011-05-16 23:31:27 +02:00
Lennart Poettering
53d5582fa0 pam: downgrade a few log msgs 2011-05-16 23:31:06 +02:00
Lennart Poettering
88a07670cf hostnamed: SetPrettyHostname() should check PK action org.freedesktop.hostname1.set-static-hostname 2011-05-12 16:14:44 +02:00
Lennart Poettering
bd118f8e22 user-sessions: ignore EROFS when unlinking /etc/nologin if the file doesn't exist anyway 2011-05-10 18:55:39 +02:00
Michael Olbrich
e4c1d706bd build-sys: create dbussystemservicedir
otherwise building fails if it doesn't exist:

( cd <DESTDIR>/usr/share/dbus-1/services && \
                rm -f org.freedesktop.systemd1.service && \
                ln -s ../system-services/org.freedesktop.systemd1.service org.freedesktop.systemd1.service )
/bin/sh: line 0: cd: <DESTDIR>/usr/share/dbus-1/services: No such file or directory
2011-05-10 18:48:53 +02:00
Paul Menzel
ec2002f849 util: include stdarg.h
Otherwise using uClibc compilation (OpenEmbedded [1] with `minimal-uclibc` for `MACHINE = "beagleboard"`) fails with the following error message.

| make[1]: Entering directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/git'
|   CC     src/libsystemd_basic_la-util.lo
| src/util.c: In function 'acquire_terminal':
| src/util.c:2484:29: warning: cast increases required alignment of target type [-Wcast-align]
| src/util.c:2497:37: warning: cast increases required alignment of target type [-Wcast-align]
| src/util.c: In function 'rename_process':
| src/util.c:2905:17: warning: passing argument 1 of 'strncpy' discards qualifiers from pointer target type
| /oe/build-minimal-uclibc/minimal-uclibc-dev/sysroots/armv7a-oe-linux-uclibceabi/usr/include/string.h:87:14: note: expected 'char * restrict' but argument is of type 'const char *'
| src/util.c: In function 'cpu_set_malloc':
| src/util.c:3229:17: warning: implicit declaration of function 'CPU_ALLOC' [-Wimplicit-function-declaration]
| src/util.c:3229:25: warning: assignment makes pointer from integer without a cast
| src/util.c:3232:17: warning: implicit declaration of function 'CPU_ALLOC_SIZE' [-Wimplicit-function-declaration]
| src/util.c:3233:25: warning: implicit declaration of function 'CPU_ZERO_S' [-Wimplicit-function-declaration]
| src/util.c:3241:17: warning: implicit declaration of function 'CPU_FREE' [-Wimplicit-function-declaration]
|   CC     src/libsystemd_basic_la-label.lo
| In file included from src/label.c:27:0:
| src/util.h:358:41: error: expected declaration specifiers or '...' before 'va_list'
| make[1]: *** [src/libsystemd_basic_la-label.lo] Error 1
| make[1]: Leaving directory `/oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/git'
| make: *** [all] Error 2
| + die 'oe_runmake failed'
| + oefatal 'oe_runmake failed'
| + echo FATAL: 'oe_runmake failed'
| FATAL: oe_runmake failed
| + exit 1
NOTE: package systemd-v26-r0: task do_compile: Failed
ERROR: Function 'do_compile' failed (see /oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/systemd-v26-r0/temp/log.do_compile.4020 for further information)
ERROR: Task 13 (/oe/openembedded/recipes/systemd/systemd_git.bb, do_compile) failed with exit code '1'
ERROR: '/oe/openembedded/recipes/systemd/systemd_git.bb' failed

[1] http://www.openembedded.org/
2011-05-10 01:45:05 +02:00
Koen Kooi
1bd8b8184e build-sys: Angstrom support
This commit consists of the initial work to include Angstrom as a ported
distribution for systemd.

Angstrom tries to follow the debian way as much as possible, but deviates
where it doesn't make sense for 'embedded'.
2011-05-09 23:50:23 +02:00
Miklos Vajna
34a852e6f9 units: Enable plymouth for Frugalware 2011-05-09 22:41:02 +02:00
Kay Sievers
656842223b update TODO 2011-05-09 12:24:12 +02:00
Lennart Poettering
7a6000a682 unit: make ignoring in snapshots a per unit property, instead of a per unit type property 2011-05-05 10:58:55 +02:00
Lennart Poettering
a96257af78 vconsole: use open_terminal() instead of open() 2011-05-03 17:58:28 +02:00
Lennart Poettering
4a058a7519 update TODO 2011-05-03 02:29:57 +02:00