Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135764 - net-im/jabber-base does not set permissions correctly; results in defunct jabber servers that can't start or log
Summary: net-im/jabber-base does not set permissions correctly; results in defunct jab...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-06 06:47 UTC by Tony Vroon (RETIRED)
Modified: 2006-06-11 02:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Vroon (RETIRED) gentoo-dev 2006-06-06 06:47:46 UTC
net-im/jabber-base version 0.00 uses:
fowners jabber:jabber /etc/jabber /var/log/jabber /var/spool/jabber var/run/jabber
fperms 770 /etc/jabber /var/log/jabber /var/spool/jabber /var/run/jabber

Note that this is in pkg_postinst, outside of the sandbox. A line of code says more then a thousand words:
exec chown "${@/#${slash}/${D}${slash}}"

As chown & chmod fail silently nobody has picked this up yet. For ejabberd at least, this results in the daemon being unable to start *and* unable to log. It takes modification of the initscript to be able to see what is going on.
Please mark jabber-base-0.01 stable at your earliest convenience. The script is easy to read, and only two changes have been made:
fowners -> chown
fperms -> chmod
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2006-06-06 06:51:54 UTC
Ebuild 0.01 committed.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2006-06-06 06:59:56 UTC
CC'ing arches. PPC keyworded stable, approved by hansmi.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-06-06 07:09:22 UTC
AMD64 and x86 are done.
Comment 4 Gustavo Zacarias (RETIRED) gentoo-dev 2006-06-06 10:54:52 UTC
sparc stable.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2006-06-10 07:10:27 UTC
Stable on hppa.
Comment 6 Fernando J. Pereda (RETIRED) gentoo-dev 2006-06-11 02:03:22 UTC
Alpha done. Closing since we are last.

- ferdy