Bug 5143 - apache systemd unit file PrivateTmp breaks zoneminder and rtorrent
Summary: apache systemd unit file PrivateTmp breaks zoneminder and rtorrent
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Guillaume Rousse
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 2120
  Show dependency treegraph
 
Reported: 2012-03-28 00:15 CEST by Barry Jackson
Modified: 2012-04-08 23:12 CEST (History)
4 users (show)

See Also:
Source RPM: apache
CVE:
Status comment:


Attachments

Description Barry Jackson 2012-03-28 00:15:42 CEST
Description of problem:
PrivateTmp setting in httpd.service unit file breaks zoneminder and rtorrent.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Barry Jackson 2012-03-28 00:16:12 CEST

CC: (none) => anssi.hannula

Barry Jackson 2012-03-28 00:17:40 CEST

CC: (none) => mageia

Barry Jackson 2012-03-28 00:20:24 CEST

Blocks: (none) => 2120

Comment 1 Remco Rijnders 2012-03-28 06:40:21 CEST
Hi Barry, can you clarify how this breaks zoneminder and rtorrent? In other words, what error messages etc. do you get? How would one test this?
Comment 2 Colin Guthrie 2012-03-28 09:42:22 CEST
@remmy: I actually asked Dave to open this :)

The basic problem is that both rtorrent and zoneminder run as independent apps, but drop a unix socket into $TMP for IPC purposed. Web applications are then configured under apache that talk to these sockets. If apache has it's own /tmp, it simply can't see them and the IPC system is broken.

Mechanisms to work around would be using abstract unix sockets (rather than socket files) or using network sockets for IPC, but I think the immediate short term fix is to simply drop PrivateTmp for now and revisit it when we have a bit more breathing space.
Comment 3 Anssi Hannula 2012-03-28 10:15:43 CEST
rtorrent can IIRC be configured to use either a network socket or a unix socket, but I guess many people do configure it to use some /tmp/foobar socket.

In addition, rutorrent (a php gui for rtorrent) explicitely commands rtorrent to write/read to some files under /tmp, which is broken even if rtorrent communication uses a network socket (I'm not sure why it does that, though, AFAICS it could just use the rtorrent "execute.capture" RPC command...).

I agree to drop PrivateTmp at least for mga2.
Remco Rijnders 2012-03-28 22:54:57 CEST

CC: (none) => remco

Guillaume Rousse 2012-04-04 21:32:58 CEST

Status: NEW => ASSIGNED
CC: (none) => guillomovitch
Assignee: bugsquad => guillomovitch

Comment 4 Guillaume Rousse 2012-04-08 23:12:24 CEST
Just fixed in -7mga.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.