Commit Graph
57095 Commits
Author SHA1 Message Date
Mathias Nyman e925018786 remove buffer-overrun risk in readlink call
readlink does not write a nul character to the end of the
string it returns. Therefore ask for one fewer character
than the buffer size so there's always room for an extra \0.

Signed-off-by: Mathias Nyman <mathias.nyman@nokia.com>
Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-21 13:41:14 +02:00
Kay Sievers c51d2f2746 configure.ac: version bump 2010-04-21 08:50:59 +02:00
Kay Sievers 1efde3bcef release 153 2010-04-21 08:31:55 +02:00
Robby Workman 901e80dc59 configure.ac: fix broken firmware search path in configure.ac
Correct a silly typo: s/fimware/firmware/
2010-04-21 08:30:43 +02:00
Lennart Poettering 701cc384c2 manager: automatically GC unreferenced units 2010-04-21 06:01:13 +02:00
Lennart Poettering 48507e6621 hashmap: allow callers distinguish whether hashmap_put() was a nop or not 2010-04-21 05:32:51 +02:00
Lennart Poettering 9d58f1dbdb reorder large structs a little, based on pahole info 2010-04-21 04:01:24 +02:00
Lennart Poettering 51f7e59683 manager: pack structs a bit tighter 2010-04-21 03:41:58 +02:00
Lennart Poettering a16e112358 reload: implement reload/reexec logic 2010-04-21 03:27:44 +02:00
Lennart Poettering 0d9068141e device: don't allow definiing additional aliases via SYSTEMD_NAMES 2010-04-21 03:23:30 +02:00
Lennart Poettering 8e2f43b376 dbus: explicitly flush message queue before disconnecting 2010-04-21 03:20:04 +02:00
Lennart Poettering 7ccfb64aa5 cgroup: if we are already in our own cgroup, then reuse it 2010-04-21 03:18:05 +02:00
Lennart Poettering c9106f61d0 cgroup: only delete empty cgroups 2010-04-21 03:15:58 +02:00
Lennart Poettering c3087ddb58 udev: expose network interfaces by default 2010-04-21 03:11:28 +02:00
Kay Sievers 451dd74d9a configure.ac: version bump 2010-04-20 09:39:24 +02:00
Kay Sievers f1c4a0e19f release 152 2010-04-20 07:32:40 +02:00
Kay Sievers 85f22036fc doc: add section about how *not* to rename device nodes
Thanks to Mario 'BitKoenig' Holbe <Mario.Holbe@tu-ilmenau.de>.
2010-04-20 07:29:51 +02:00
Yury G. Kudryashov 4101ce14b3 configure.ac: ddd --with-firmware-path option
In NixOS we need to use non-standard firmware path: we have no /lib.
2010-04-20 07:02:58 +02:00
Yury G. Kudryashov d5a4ca9dfe hid2hci: include linux/types.h for __u32 2010-04-20 06:57:58 +02:00
Kay Sievers 6252f9e732 delete only device nodes, not symlinks when deleting a devtmpfs node
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550152
2010-04-19 18:57:28 +02:00
Kay Sievers 9355f324e1 add O_NOFOLLOW when creating files in link stack 2010-04-19 18:55:10 +02:00
Kay Sievers 8b56bada9a Revert "Fix switching Logitech bluetooth adapters into hci mode."
This reverts commit 2b463cb050.
2010-04-19 15:10:34 +02:00
Marco d'Itri db123fe9f0 doc: document the WAIT_FOR timeout 2010-04-19 12:47:02 +02:00
Kamal Mostafa 23c455b887 keymap: Add force-release quirk for Mitac 8050QDA
https://launchpad.net/bugs/374884

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-19 08:56:45 +02:00
Kamal Mostafa af3f56ff71 keymap: Add force-release quirk for Coolbox QBook 270-02
https://launchpad.net/bugs/420473

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-19 08:54:04 +02:00
Kamal Mostafa db57bdda04 keymap: Unite laptop models needing common volume-key release quirk
Many laptop models need the same volume-key release quirk. Currently, two
models have identical force-release-maps/ keymap files (dell-studio-1557 and
fujitsu-amilo-si1848) and two more need to be added (Mitac and Coolbox QBook).

This replaces the identical force-release-maps files with one
'common-volume-keys' file to make adding new models easier.

There is no obvious DMI commonality between the models needing the quirk (i.e.
they do not all share the same BIOS), so it will remain necessary to scan for
each model separately in 95-keyboard-force-release.rules.

https://launchpad.net/bugs/565459

Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-04-19 08:48:34 +02:00
Lennart Poettering 4139c1b272 dbus: greatly extend dbus coverage 2010-04-18 03:08:16 +02:00
Lennart Poettering 41447faf1f snapshot: implement snapshot unit logic 2010-04-18 03:07:42 +02:00
Lennart Poettering 6dde1f33e1 cgroup: add cgroup_bonding_to_string() call 2010-04-18 03:04:54 +02:00
Kay Sievers bc913ce478 cdrom_id: set ID_CDROM_MEDIA=1 only for known media
On Sat, Apr 17, 2010 at 18:26, Mike Brudevold <mike@brudevold.com> wrote:
> My CD-RW drive experiences a problem in that it automatically closes
> after opening if there is media in the drive.  This only happens if
> there was media in the drive when it was last closed (an empty drive
> stays open).
...
> cd_profiles: current profile 0x02
> cd_profiles: profile 0x02 <ignored>
...

Do not pretend to have a media, when we receive a profile like 0x02,
which just means "Removable disk".

Thanks to Mike Brudevold for the initial patch.
2010-04-17 19:31:44 +02:00
Lennart Poettering ac86f50d7b mount-setup: detect /cgroup as API mounts 2010-04-16 23:35:44 +02:00
Lennart Poettering f7d0139401 mount-setup: automatically mount binfmt_misc 2010-04-16 23:35:30 +02:00
Lennart Poettering 8d567588ca automount: implement automount unit type 2010-04-16 23:24:39 +02:00
Lennart Poettering 2076ca540e mount-setup: mount all cgroup controllers by default but make it non-fatal 2010-04-16 23:22:32 +02:00
Mike Brudevold 7c07740ce7 cdrom_id: add missing profiles to feature_profiles
Signed-off-by: Mike Brudevold <mike@brudevold.com>
2010-04-16 07:39:56 +02:00
Lennart Poettering 09e80b16f2 device: only expose devices with SYSTEMD_EXPOSE=1, ignore all others 2010-04-15 23:41:48 +02:00
Lennart Poettering 09477267f6 units: rename [Meta] section to [Unit] 2010-04-15 23:20:17 +02:00
Lennart Poettering 05e343b704 service: optionally, trie dbus name cycle to service cycle 2010-04-15 23:16:16 +02:00
Yury G. Kudryashov b3ad0c3c6f configure.ac - fix typo in --with-pci-ids-path option 2010-04-15 21:35:51 +02:00
Martin Pitt 30e3b1a0d3 cdrom_id: Swap media state and TOC info probing
Blank CDs do not have a TOC, thus will fail cd_media_toc() (at least with the
"Do not ignore errors from scsi_cmd_run()" fix). Thus probe the media state
first, so that we can properly detect blank media.
2010-04-15 21:29:18 +02:00
Martin Pitt 58e178894b cdrom_id: Do not ignore errors from scsi_cmd_run()
scsi_cmd_run() can return positive error messages if we have CHECK_CONDITION
set and get the error code from the SCSI command result. So check the result
for non-zero, not for being negative.

This should fix another cause for "phantom" media in empty CD-ROM drives.

Thanks to Mike Brudevold <mike@brudevold.com> for spotting this!

https://launchpad.net/bugs/562978
2010-04-15 21:29:17 +02:00
Kay Sievers a60b077a46 cdrom_id: debug - print feature values in hex 2010-04-15 21:22:38 +02:00
Kay Sievers 140647ad1a cdrom_id: debug - print feature values in hex 2010-04-15 21:18:21 +02:00
Kay Sievers 2e9df19818 cdrom_id: print more debug messages 2010-04-15 20:48:04 +02:00
Kay Sievers 0413a47ebf cdrom_id: rework feature/profiles buffer parsing 2010-04-15 20:07:07 +02:00
Lennart Poettering 4f2d528d3b socket: optionally call accept() for incoming connections and spawn one service instance per connection 2010-04-15 06:20:00 +02:00
Lennart Poettering 9e2f7c11fb core: add minimal templating system 2010-04-15 03:11:15 +02:00
Kay Sievers c1b7f60dea update NEWS 2010-04-14 17:00:57 +02:00
Lennart Poettering 9fcc065a77 mount: only add those mount points to localfs.target as Wants that are marked for us 2010-04-13 21:55:34 +02:00
Lennart Poettering d8b4e2e9ac execute: fix terminal chowning logic 2010-04-13 21:13:49 +02:00