FS#65646 - [coturn] Fresh install of coturn; error in "Creating temporary files"
Attached to Project:
Community Packages
Opened by bobpaul (bobpaul) - Thursday, 27 February 2020, 21:01 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 30 March 2020, 23:23 GMT
Opened by bobpaul (bobpaul) - Thursday, 27 February 2020, 21:01 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 30 March 2020, 23:23 GMT
|
Details
Description:
/etc/turnserver/turnserver.conf and /run/turnserver/ both exist after install, so I'm not sure why there's an error. Steps to reproduce: ``` $ sudo pacman -S coturn [...snip ...] :: Running post-transaction hooks... (1/4) Creating system user accounts... (2/4) Reloading system manager configuration... (3/4) Creating temporary files... error: command failed to execute correctly (4/4) Arming ConditionNeedsUpdate... $ sudo ls -dlah /run/turnserver/ drwx------ 2 turnserver turnserver 40 Feb 27 20:52 /run/turnserver/ $ sudo ls -lah /etc/turnserver/ total 36K drwx------ 2 turnserver turnserver 4.0K Feb 27 20:56 . drwxr-xr-x 45 root root 4.0K Feb 27 20:56 .. -rw-r--r-- 1 root root 26K Jan 31 22:23 turnserver.conf ``` |
This task depends upon
SYSTEMD_LOG_LEVEL=debug /usr/bin/systemd-tmpfiles --create
Failed to determine whether '/etc/turnserver/turnserver.conf' is below autofs, ignoring: Permission denied
Running create action for entry z /etc/turnserver/turnserver.conf
$ grep autofs /proc/mounts
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13771 0 0
Detected unsafe path transition /etc/turnserver → /etc/turnserver/turnserver.conf during canonicalization of /etc/turnserver/turnserver.conf.
Changing the tmpfiles.d entry to use Z instead of z resolved the issue locally.
The attached is a diff of the change.
I do get the same unsafe path transition on all 3 systems.
I can confirm the attached patch fixes the issue.
Sorry for not following instructions :-/
coturn 4.5.1.1-7
pacman -Syu
...
( 6/10) Creating temporary files...
error: command failed to execute correctly
...