Bug 221772

Summary: no ownership/bad perms /usr/share/emacs/site-lisp/muse/contrib
Product: [Fedora] Fedora Reporter: Chris Schanzle <bugzilla>
Component: emacs-common-museAssignee: Jonathan Underwood <jonathan.underwood>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-13 19:42:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Schanzle 2007-01-07 21:09:26 UTC
Description of problem:

installed updates:

emacs-muse-3.02.93-1.fc5
emacs-muse-el-3.02.93-1.fc5

With umask=027 (this is how we configured /etc/init.d/functions, which starts
crond, which performed the yum update), these two directories were unreadable by
the world and emacs doesn't start:
$ emacs test
Opening directory: permission denied, /usr/share/emacs/site-lisp/muse/contrib 

/usr/share/emacs/site-lisp/muse/{contrib,experimental}

How reproducible:
100%

Steps to Reproduce:
1.  rpm -e emacs-muse emacs-muse-el

2.  find /usr/share/emacs/site-lisp/muse/
/usr/share/emacs/site-lisp/muse/
/usr/share/emacs/site-lisp/muse/experimental
/usr/share/emacs/site-lisp/muse/contrib

Note that nothing owns it
rpm -q --whatprovides /usr/share/emacs/site-lisp/muse/{contrib,experimental}
file /usr/share/emacs/site-lisp/muse/contrib is not owned by any package
file /usr/share/emacs/site-lisp/muse/experimental is not owned by any package

rmdir /usr/share/emacs/site-lisp/muse/{contrib,experimental}

3.  install packages with tightened umask
umask 027
yum -y install  emacs-muse emacs-muse-el

Actual results:
find /usr/share/emacs/site-lisp/muse/ -type d -ls
1253220    4 drwxr-xr-x   4 root     root         4096 Jan  7 15:59
/usr/share/emacs/site-lisp/muse/
1343721    4 drwxr-x---   2 root     root         4096 Jan  7 15:59
/usr/share/emacs/site-lisp/muse/experimental
1343720    4 drwxr-x---   2 root     root         4096 Jan  7 15:59
/usr/share/emacs/site-lisp/muse/contrib


Expected results:
readable directories

Additional info:

Should these directories be "owned" by one of these packages and have
appropriate default permissions (and get removed?).  Subpackages are a pain, I
know, but I'm not an expert here.  :-)

Comment 1 Jonathan Underwood 2007-01-07 22:55:31 UTC
Hi Chris,

I've pushed packages which fixes up the ownership of the contrib and
experimental directories, which I hope will fix the bug. Let me know if not.

Comment 2 Chris Schanzle 2007-01-09 16:14:56 UTC
Perfect!  Thanks for the quick response!

Is it an issue that rpm -e emacs-muse emacs-muse-el doesn't remove
/usr/share/emacs/site-lisp/muse/{contrib,experimental} directories?  I didn't
remove or update emacs-common-muse yet...

Comment 3 Jonathan Underwood 2007-01-13 19:08:48 UTC
That shouldn't be a problem - the ownership should be fixed when the package
upgrades, I believe. Has the updated package fixed the problem?

Comment 4 Chris Schanzle 2007-01-13 19:39:12 UTC
Yes, problem fixed...installing with umask 027 does not result in unreadable
directories.  Resolved!  Thanks again!

Comment 5 Jonathan Underwood 2007-01-13 19:42:40 UTC
No problem. Thanks for the report. Nice to know someone is actually using the
package :)

Closing bug.