Bug 589147 - abrtd has insufficient privileges for saving sosreport
Summary: abrtd has insufficient privileges for saving sosreport
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: abrt
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Denys Vlasenko
QA Contact: Michal Nowak
URL:
Whiteboard:
Keywords:
Depends On: 598978
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-05 14:06 UTC by Matthias Schroder
Modified: 2013-03-08 02:09 UTC (History)
9 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2010-11-10 19:32:56 UTC


Attachments (Terms of Use)
Proposed patch (2.51 KB, patch)
2010-06-10 12:31 UTC, Denys Vlasenko
no flags Details | Diff

Description Matthias Schroder 2010-05-05 14:06:59 UTC
Description of problem: from /var/log/messages: 

abrtd: Can't open '/tmp/sosreport-thisnode-20100504103349-c00f.tar.bz2': Permission denied
abrtd: Activation of plugin 'SOSreport' was not successful: Can't copy '/tmp/sosreport-thisnode-20100504103349-c00f.tar.bz2' to '/var/cache/abrt/kerneloops-1272962001-1/sosreport.tar.bz2'
Version-Release number of selected component (if applicable):

How reproducible: ?


Steps to Reproduce: 
1. produce kerneloops (e.g. with help of #574570)
2. reboot the machine
3. read /var/log/messages
  
Actual results: frustrated abrtd


Expected results: happy abrtd


Additional info: 
[root@thisnode ~]# ls -l /tmp/sosreport--201005041*
-rw-------. 1 root root 198155 May  4 10:33 /tmp/sosreport-thisnode-20100504103349-c00f.tar.bz2
-rw-r--r--. 1 root root     33 May  4 10:33 /tmp/sosreport-thisnode-20100504103349-c00f.tar.bz2.md5
-rw-------. 1 root root 217481 May  4 16:52 /tmp/sosreport-thisnode-20100504165249-1dba.tar.bz2
-rw-r--r--. 1 root root     33 May  4 16:52 /tmp/sosreport-thisnode-20100504165249-1dba.tar.bz2.md5
[root@ ~]#

Comment 2 RHEL Product and Program Management 2010-05-05 16:14:37 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Denys Vlasenko 2010-06-02 13:28:48 UTC
Created a bug against sosreport:

bug 598978 "RFE: provide a way to specify destination filename"

Comment 4 Denys Vlasenko 2010-06-10 12:31:07 UTC
Created attachment 422888 [details]
Proposed patch

The patch uses "sosreport --tmp-dir DUMPDIR" to avoid /tmp access problem.

However, this patch requires fixed sosreport first (bug 598978).

Comment 5 Denys Vlasenko 2010-06-14 19:07:24 UTC
Slightly modified patch is applied to git, will be in the next abrt build (abrt-1.1.6)

Comment 8 releng-rhel@redhat.com 2010-11-10 19:32:56 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


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