Bug 518245 - Missing check for root privileges.
Summary: Missing check for root privileges.
Keywords:
Status: CLOSED DUPLICATE of bug 518422
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jiri Moskovcak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-19 16:25 UTC by Roman Rakus
Modified: 2015-02-01 22:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-21 10:25:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Roman Rakus 2009-08-19 16:25:58 UTC
Description of problem:
When you try to start abrt under non-root account, abrt ends with status 0 end no message

Version-Release number of selected component (if applicable):
abrt-0.0.4-4.fc12

How reproducible:
100%

Steps to Reproduce:
1. abrt
2.
3.
  
Actual results:
[rrakus@dhcp-lab-170 ~]$ abrt
[rrakus@dhcp-lab-170 ~]$ 


Expected results:
Some info that abrt should be run under root privileges.
return status 1 (fail)

Additional info:

Comment 1 Denys Vlasenko 2009-08-20 10:13:27 UTC
When you run abrt without -d, there is no reliable way for it to let you know that it experienced a problem, unless the problem is detected right away before abrt daemonized itself.

Even though this particular case can be fixed, there will be other cases where you will see the same.

# setuidgid 100:100 ./abrt; echo $?
1

At least exitcode is not 0 in current git. But still, no error message (neither on stdout/stderr, nor syslog).

Here's where it fails:

# setuidgid 100:100 ./abrt -d
Debug: Plugin RunApp (0.0.1) succesfully loaded.
Debug: Plugin SQLite3 (0.0.1) succesfully loaded.
Debug: Plugin KerneloopsScanner (0.0.1) succesfully loaded.
Debug: Plugin KerneloopsReporter (0.0.1) succesfully loaded.
Debug: Plugin Python (0.0.1) succesfully loaded.
Debug: Plugin Logger (0.0.1) succesfully loaded.
Debug: Plugin SOSreport (0.0.2) succesfully loaded.
Debug: Plugin FileTransfer (0.0.6) succesfully loaded.
Debug: Plugin Kerneloops (0.0.2) succesfully loaded.
Debug: Plugin Mailx (0.0.2) succesfully loaded.
Debug: Plugin Bugzilla (0.0.2) succesfully loaded.
Debug: Plugin CCpp (0.0.1) succesfully loaded.
Debug: Registered plugin Bugzilla(Reporter)
Debug: Registered plugin CCpp(Analyzer)
Debug: Registered plugin Kerneloops(Analyzer)
Debug: Registered plugin KerneloopsReporter(Reporter)
Debug: Registered plugin KerneloopsScanner(Action)
Debug: Registered plugin Logger(Reporter)
Debug: Registered plugin Python(Analyzer)
Debug: Registered plugin SQLite3(Database)
Debug: Scanning for unsaved entries...
Debug: Locking '/var/cache/abrt/ccpp-1250701246-31432.lock'...
Warning: CMiddleWare::SaveDebugDump(): LoadTextFile: Cannot open file /var/cache/abrt/ccpp-1250701246-31432/time
Warning: Corrupted, bad or already saved crash, deleting.
Debug: Lock file '/var/cache/abrt/ccpp-1250701246-31432.lock' is locked by same process
Debug: UnRegistred plugin Bugzilla(Reporter)
Debug: Plugin Bugzilla sucessfully unloaded.
Debug: UnRegistred plugin CCpp(Analyzer)
Debug: Plugin CCpp sucessfully unloaded.
Debug: Plugin FileTransfer sucessfully unloaded.
Debug: UnRegistred plugin Kerneloops(Analyzer)
Debug: Plugin Kerneloops sucessfully unloaded.
Debug: UnRegistred plugin KerneloopsReporter(Reporter)
Debug: Plugin KerneloopsReporter sucessfully unloaded.
Debug: UnRegistred plugin KerneloopsScanner(Action)
Debug: Plugin KerneloopsScanner sucessfully unloaded.
Debug: UnRegistred plugin Logger(Reporter)
Debug: Plugin Logger sucessfully unloaded.
Debug: Plugin Mailx sucessfully unloaded.
Debug: UnRegistred plugin Python(Analyzer)
Debug: Plugin Python sucessfully unloaded.
Debug: Plugin RunApp sucessfully unloaded.
Debug: Plugin SOSreport sucessfully unloaded.
Debug: UnRegistred plugin SQLite3(Database)
Debug: Plugin SQLite3 sucessfully unloaded.
Cannot create daemon: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

The last message comes from 

    catch (CABRTException& e)
    {
        std::cerr << "Cannot create daemon: " << e.what() << std::endl;
    }
    catch (std::exception& e)
    {
        std::cerr << "Cannot create daemon: " << e.what() << std::endl;
    }

in abrt's main().

Will look into it.

Comment 2 Jiri Moskovcak 2009-08-20 10:42:52 UTC
0.0.4 is really old release, this issue is fixed in current git and in rawhide version 0.0.7.1.

Comment 3 Denys Vlasenko 2009-08-21 10:25:08 UTC

*** This bug has been marked as a duplicate of bug 518422 ***


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