Comment 9 for bug 330766

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 330766] Re: pulseaudio hangs, prevents login, home as ntfs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 10 Mar 2009, Mario Schwalbe wrote:

> This is no duplicate and no race condition, at all. In addition to points 1-2 by Josh Smith, I'd like to add:
> 3) if ~/.pulse is a symlink, pulseaudio fails to start although the target directory's permissions are correct

Have you strace -fF'd to confirm?

> the problem lies in pulsecore/core-util.c, function pa_make_secure_dir
> line 206 and following:
>
> #ifdef HAVE_LSTAT
> if (lstat(dir, &st) < 0)
> #else
> if (stat(dir, &st) < 0)
> #endif
> goto fail;
>
> #ifndef OS_IS_WIN32
> if (!S_ISDIR(st.st_mode) ||
> (st.st_uid != uid) ||
> (st.st_gid != gid) ||
> ((st.st_mode & 0777) != m)) {
> errno = EACCES;
> goto fail;
> }

The above changes can be addressed. What is being discussed is why root
has suddenly consumed the files, e.g., ~/.pulse-cookie.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJtvMCe9GwFciKvaMRAto4AJ9GxoK81YzFrj/okp3P+A95+Kzb6gCeOC8V
4rxJ/5AQB4qCRV/TmZA5cyk=
=31a7
-----END PGP SIGNATURE-----