Bug 126669 - [has patch] canna creates /tmp/.iroha_unix, mode 0777, instead of using /var/run/.iroha_unix
Summary: [has patch] canna creates /tmp/.iroha_unix, mode 0777, instead of using /var/...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Canna
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact: Bill Huang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-06-24 16:01 UTC by Matthew Miller
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 3.7p3-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-25 05:03:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
use /var/run/.iroha_unix instead of creating /tmp/.iroha_unix with insecure permissions (383 bytes, patch)
2004-06-24 16:03 UTC, Matthew Miller
no flags Details | Diff

Description Matthew Miller 2004-06-24 16:01:44 UTC
I don't use or understand this program at all. And I don't speak
Japanese, so the learning curve is a bit steep. But, in Fedora Core 2
and in the current rawhide version, it's creating /tmp/.iroha_unix as
a world-writable directory. That doesn't seem right.

The package also owns /var/run/.iroha_unix, with far more restrictive
permissions, but doesn't appear to put anything there.

I've made a patch to the config file which causes it to actually put
the IROHA socket file in /var/run/.iroha_unix. I'll attach this patch
in a second.

I don't have a good way of testing this (I'll see if I can find a
japanese speaking linux-savvy student somewhere around here....), but
it seems like the right thing to do.

Comment 1 Matthew Miller 2004-06-24 16:03:20 UTC
Created attachment 101377 [details]
use /var/run/.iroha_unix instead of creating /tmp/.iroha_unix with insecure permissions

(It occurs to me that it might also be good to patch the code so that if the
directory doesn't exist and needs to be recreated, it's created with the right
permissions instead of 0777.

Comment 2 Akira TAGOH 2004-06-25 05:03:56 UTC
already fixed in 3.7p3-4 which has been released yesterday. thanks for
the notification anyway.


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