Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172680 - net-misc/asterisk-1.2.14-r2: Permissions rework
Summary: net-misc/asterisk-1.2.14-r2: Permissions rework
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: voip herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 15:34 UTC by Tony Vroon (RETIRED)
Modified: 2007-04-26 19:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
asterisk-perms.diff (asterisk-perms.diff,967 bytes, patch)
2007-03-29 15:35 UTC, Tony Vroon (RETIRED)
Details | Diff
asterisk-perms.diff (blah.patch,994 bytes, patch)
2007-04-25 13:28 UTC, Tony Vroon (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Vroon (RETIRED) gentoo-dev 2007-03-29 15:34:53 UTC
The current ebuild tramples all over the permissions in /etc/asterisk because it uses a recursive chmod/chown. It only installs 3 files here:
tony@pink /usr/portage/packages/All $ ls /tmp/new-asterisk/etc/asterisk/
asterisk.adsi  extensions.ael  telcordia-1.adsi

As such, it has no business fiddling with permissions in /etc/asterisk/LINX and /etc/asterisk/TEST. The attached patch deals with this, and also enables group write on two directories. This allows a non-root user in the asterisk group to start, stop and configure the asterisk daemon.
Care has been taken to not enable group write where it does not make sense (such as on the log directory).
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2007-03-29 15:35:20 UTC
Created attachment 114866 [details, diff]
asterisk-perms.diff
Comment 2 FieldySnuts 2007-04-10 16:54:44 UTC
Could this issue also cause the mass removal of most files in /etc/asterisk? after my first upgrade of asterisk, i had 4 config files and examples left, compared to about 44 before the update. I wasn't able to reproduce the error, but the possibility of that happening is quite nasty to users. Luckly I had a backup. Sadly most won't.
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2007-04-11 15:23:18 UTC
Gustavoz needs to review this before it can be committed, but currently lacks time.
Comment 4 Tony Vroon (RETIRED) gentoo-dev 2007-04-25 13:28:18 UTC
Created attachment 117227 [details, diff]
asterisk-perms.diff

Added group write permissions on spool directory for a non-root voicemail interface.
Comment 5 Gustavo Zacarias (RETIRED) gentoo-dev 2007-04-26 19:05:29 UTC
asterisk-1.2.17 in cvs in ~arch, it'll take a couple of hours for the files to
get to the mirrors though.
it should go stable soonish.