Commit graph

250 commits

Author SHA1 Message Date
Lennart Poettering
de2654c4e4 daemon: add missing tty_fd definition 2009-11-11 05:36:47 +01:00
Lennart Poettering
5da0297744 daemon: during startup say whether we run in a VM 2009-11-11 05:26:30 +01:00
David Yoder
bfb17357cd daemon: realpath segfault fix
Lennart,

Apparently I was debugging this at the same time as you. I can't figure out
why my Fedora 11 install with glibc-2.10 has a glibc realpath that doesn't
match the gnu documentation and returns null. But it does.

Your commit aa8ce5bb9b almost fixed my
problem, but it needs a tweak.

Thanks,
David Yoder
2009-11-11 05:15:30 +01:00
Lennart Poettering
320d76f158 daemon: don't crash if pa_realpath() fails 2009-11-11 05:14:44 +01:00
Lennart Poettering
b8de3bd214 polkit: drop left-over polkit policy file from git tree 2009-09-29 23:48:07 +02:00
Nix
eac566226e Don't refuse to start on systems using GNU stow, graft, STORE et al
There are multiple package management systems out there which implement
packages using symlinks. The recent (otherwise useful) check to ensure that
a re-executed pulseaudio is actually reexecuting itself unfortunately breaks
in the presence of all these packaging systems, because PA_BINARY refers
to its installed location (e.g. /usr/local/bin/pulseaudio), which is a
symlink to the binary (e.g. /usr/local/stow/pulseaudio-0.9.18/bin/pulseaudio),
because /proc/self/exe always contains the canonical path of the executable,
with all symlinks resolved.

(At least one distribution uses a symlink-based packaging system, so
will be forced to apply this locally in any case.)

The fix is simple: canonicalize PA_BINARY before equality-testing. (This
should be completely safe, because the OS does just that when PA_BINARY
is executed.)

The patch is against 0.9.18, but applies without fuzz to current master.
2009-09-29 19:32:25 +02:00
Colin Guthrie
8f29968788 conf: Fix typo in daemon.conf: rlimit-rtttime - too many t's
Spotted by peol on IRC
2009-09-18 16:10:13 +01:00
Lennart Poettering
812be32783 daemon: disable CPU load limiter by default
RLIMIT_RTTIME and rtki can do this job much better, so let's disable
this by default.
2009-09-04 02:48:37 +02:00
Lennart Poettering
d088c8f05a daemon: make use of SIMD optional via config variable to ease debugging 2009-09-03 00:19:03 +02:00
Lennart Poettering
39e4652a78 daemon: drop polkit code from git repo we weren't using anymore 2009-09-02 04:05:41 +02:00
Lennart Poettering
a8c0f65fae daemon: clean up environment when forking off children 2009-09-02 00:42:54 +02:00
Lennart Poettering
dfe3f90b37 daemon: don't override path env vars if they are already set 2009-09-01 00:53:49 +02:00
Lennart Poettering
ab5ac06ac7 Merge commit 'wtay/optimize' 2009-08-23 00:06:35 +02:00
Lennart Poettering
aa5429805f daemon: don't free script_commands twice 2009-08-22 03:16:47 +02:00
Scott Reeves
de19bdd34e daemon: fix leak of script_commands 2009-08-21 23:59:39 +02:00
Lennart Poettering
8a2a6b2004 adjust various data/library paths automatically if we are run from a build tree 2009-08-21 03:43:53 +02:00
Wim Taymans
951bf1b28d svolume: add ARM optimized volume scaling 2009-08-20 11:31:03 +02:00
Wim Taymans
25724cdd40 Get rid of liboil
Get rid of the liboil dependency and reimplement the liboil functions with an
equivalent C implementation. Note that most of these functions are deprecated in
liboil and that none of them had  any optimisations. We can further specialize
our handrolled versions for some extra speedups.
2009-08-20 11:31:03 +02:00
Wim Taymans
563cb2dea9 main: hook up cpu detection code
Add CPU detection code to activate the various optimisations.
Move some method definitions around.
Use compatibility macros when we can.
2009-08-20 11:31:03 +02:00
Wim Taymans
7086784573 volume_sse: add sse optimisations 2009-08-20 11:31:02 +02:00
Wim Taymans
3a0b012ee0 volume: add first mmx optimized function
Add code for an mmx optimized version of s16ne volume scaling. Install the
custom function.
2009-08-20 11:31:02 +02:00
Lennart Poettering
a1598c742e daemon: reset gids too, not just uids 2009-08-14 19:28:18 +02:00
Lennart Poettering
27b8cd783c daemon: reset scheduling priority on startup, too 2009-08-12 21:37:40 +02:00
Lennart Poettering
ef176ecb62 core-util: move personality resetting into core-util 2009-08-12 21:36:52 +02:00
Lennart Poettering
9f53aa5546 daemon: unconditionally clean up priviliges 2009-08-12 21:35:48 +02:00
Lennart Poettering
facae1f275 conf: invert all negative boolean configuration option 2009-08-12 20:15:28 +02:00
Lennart Poettering
eb40da25d6 daemon: install D-Bus system policy file for PA system instances
Original patch from 'mgrela'.

http://pulseaudio.org/ticket/582
2009-08-12 01:50:24 +02:00
Diego Elio 'Flameeyes' Pettenò
4c15115007 Split OSS support in output and wrapper.
Since Fedora does not enable OSS output support at all, but still uses
padsp, and in Gentoo we could also make use of padsp without OSS output
support, split the two things in two parameters, although they both check
for sys/soundcard.h once.
2009-08-08 01:53:15 +02:00
Lennart Poettering
88d5749f6a Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
Conflicts:
	src/daemon/main.c
2009-07-23 15:18:06 +02:00
Lennart Poettering
41ad33dfe7 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2009-07-22 22:49:06 +02:00
Lennart Poettering
2f54b5df18 daemon: reset personality, to make the autospawn env cleaup complete 2009-07-22 22:47:51 +02:00
Lennart Poettering
a2b207e38a daemon: before exec'ing ourselves, make sure nobody plays games with /proc/self/exe 2009-07-20 15:48:36 +01:00
Diego Elio 'Flameeyes' Pettenò
84200b423e Remove exploitable LD_BIND_NOW hack (CVE-2009-1894).
Instead of trying to re-execute pulseaudio itself with LD_BIND_NOW set,
just find the correct flag for the linker to request immediate bindings
(all ELF files support that option), and use that when linking the daemon.

Reduce the amount of compiled and executed code as well.
2009-07-16 15:57:41 +02:00
Diego Elio 'Flameeyes' Pettenò
2f7bce9375 Add a missing sys/stat.h include for FreeBSD to declare umask(). 2009-06-29 17:40:56 +02:00
Lennart Poettering
3ee29004a9 rtclock: fix build after merge 2009-06-22 23:15:01 +02:00
Lennart Poettering
fc33f7ee97 Merge most of elmarco/rtclock2
Merge commit 'e4d914c945'
2009-06-22 23:09:46 +02:00
Lennart Poettering
de5219aafb daemon: enable module-intended-roles by default 2009-06-22 22:44:29 +02:00
Marc-André Lureau
0955e3d45b Base mainloop on pa_rtclock_now()
Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Marc-André Lureau
125c528896 pulse: move pa_rtclock_now in pulsecommon 2009-06-20 17:29:08 +03:00
Lennart Poettering
32e2cd6d32 core: get rid of rt sig/timer handling since modern Linux' ppooll() is finally fixed for granularity 2009-06-19 21:00:06 +02:00
Lennart Poettering
a62db279b7 daemon: enable real-time by default 2009-06-19 18:21:35 +02:00
Marc-André Lureau
5dcdd5e358 perl -p -i -e 's/pa_rtclock_usec/pa_rtclock_now/g' find . -name '*.[ch]' 2009-06-19 19:04:04 +03:00
Lennart Poettering
9c438bcac6 daemon: strip all special suid/caps log from our startup code, we'll now rely on RealtimeKit for all high-priority/RT scheduling policy issues 2009-06-19 17:37:18 +02:00
Lennart Poettering
0b479ffbba daemon: write a warning blurb to syslog when folks use --system mode 2009-06-17 03:00:51 +02:00
Lennart Poettering
78bccde226 conf: remove obsolete module-idle-time directive from default config file/man page 2009-06-07 00:45:51 +02:00
Lennart Poettering
a9b38b3530 daemon: optionally call mlockall() on startup 2009-06-07 00:45:47 +02:00
Lennart Poettering
e84644aa88 hal,udev: deprecate HAL support in favour of udev 2009-06-06 03:26:55 +02:00
Lennart Poettering
4d874753f5 utils: use pa_path_get_filename() where applicable 2009-06-04 23:19:48 +02:00
Lennart Poettering
c224aace42 modules: introduce PA_MODULE_DEPRECATED() macro for marking modules deprecated 2009-05-28 02:47:36 +02:00
Lennart Poettering
759a9d0cc5 core-util: introduce pa_disable_sigpipe() 2009-05-26 00:02:29 +02:00