Bug 906756 - [abrt] systemd-analyze-197-1.fc18.2: types.py:47:function:GError: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.
Summary: [abrt] systemd-analyze-197-1.fc18.2: types.py:47:function:GError: GDBus.Error...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0e98f07cab3d20aaf7e73e4073a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-01 12:02 UTC by monts
Modified: 2013-02-08 17:53 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-08 12:10:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.05 KB, text/plain)
2013-02-01 12:02 UTC, monts
no flags Details
File: core_backtrace (469 bytes, text/plain)
2013-02-01 12:02 UTC, monts
no flags Details
File: environ (4.25 KB, text/plain)
2013-02-01 12:02 UTC, monts
no flags Details
ausearch (12.45 KB, text/plain)
2013-02-04 19:03 UTC, Borut Semenic
no flags Details

Description monts 2013-02-01 12:02:06 UTC
Version-Release number of selected component:
systemd-analyze-197-1.fc18.2

Additional info:
cmdline:        /usr/bin/python /usr/bin/systemd-analyze blame
dso_list:       pygobject3-base-3.4.2-6.fc18.x86_64
executable:     /usr/bin/systemd-analyze
kernel:         3.7.4-204.fc18.x86_64
uid:            0

Truncated backtrace:
types.py:47:function:GError: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.

Traceback (most recent call last):
  File "/usr/bin/systemd-analyze", line 328, in <module>
    verb.get(args.action)()
  File "/usr/bin/systemd-analyze", line 132, in blame
    data = acquire_time_data()
  File "/usr/bin/systemd-analyze", line 43, in acquire_time_data
    ixt = properties.Get('(ss)', 'org.freedesktop.systemd1.Unit', 'InactiveExitTimestampMonotonic')
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
  File "/usr/lib64/python2.7/site-packages/gi/types.py", line 47, in function
    return info.invoke(*args, **kwargs)
GError: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.

Local variables in innermost frame:
info: <gi.FunctionInfo object (call_sync) at 0x0x1e7c878>
args: (<DBusProxy object at 0x1edfb90 (GDBusProxy at 0x1f41e10)>, 'Get', GLib.Variant('(ss)', ('org.freedesktop.systemd1.Unit', 'InactiveExitTimestampMonotonic')), 0, -1, None)
kwargs: {}

Comment 1 monts 2013-02-01 12:02:12 UTC
Created attachment 691561 [details]
File: backtrace

Comment 2 monts 2013-02-01 12:02:16 UTC
Created attachment 691562 [details]
File: core_backtrace

Comment 3 monts 2013-02-01 12:02:21 UTC
Created attachment 691563 [details]
File: environ

Comment 4 monts 2013-02-02 12:55:14 UTC
Upgraded Fedora 18 with KDE 4.10.00

selinux-policy Arch noarch Version : 3.11.1 Release : 74.fc18
kernel 3.7.5-201.fc18.x86_64

Still get the same error : 
systemd-analyze -v systemd-analyze 197


types.py:47:function:GError: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.

'systemd-analyze blame' does not work

Comment 5 Miroslav Grepl 2013-02-04 11:05:23 UTC
monts,
could you add your output of

# ausearch -m user_avc

Comment 6 Borut Semenic 2013-02-04 19:01:21 UTC
same bug here and also for systemd-analyze plot

systemd-analyze-197-1.fc18.2.x86_64
selinux-policy-3.11.1-74.fc18.noarch



Traceback (most recent call last):
  File "/bin/systemd-analyze", line 328, in <module>
    verb.get(args.action)()
  File "/bin/systemd-analyze", line 149, in plot
    data = acquire_time_data()
  File "/bin/systemd-analyze", line 43, in acquire_time_data
    ixt = properties.Get('(ss)', 'org.freedesktop.systemd1.Unit', 'InactiveExitTimestampMonotonic')
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
  File "/usr/lib64/python2.7/site-packages/gi/types.py", line 47, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.

Comment 7 Borut Semenic 2013-02-04 19:03:46 UTC
Created attachment 692956 [details]
ausearch

Comment 8 monts 2013-02-05 19:51:20 UTC
# ausearch -m user_avc
                     
----                                                                              time->Sun Jan 20 13:38:26 2013                                                                                                   
type=USER_AVC msg=audit(1358689106.235:334): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc:  received policyload notice (seqno=2)  exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'                                                                                                     
----                                                                              time->Sun Jan 20 14:58:13 2013                                                                                                   
type=USER_AVC msg=audit(1358693893.033:336): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc:  received policyload notice (seqno=2)  exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?'

Comment 9 Miroslav Grepl 2013-02-06 07:46:20 UTC
Could you try to re-test it with the latest policy

http://koji.fedoraproject.org/koji/buildinfo?buildID=382238

Comment 10 monts 2013-02-07 06:53:53 UTC
already have selinux-policy-3.11.1-74.fc18.noarch the error is still there .. 

uname -a
Linux 3.7.6-201.fc18.x86_6
KDE 4.10.0

Comment 11 Miroslav Grepl 2013-02-07 06:58:30 UTC
The link point to -76.fc18 release. You have -74.fc18.

Comment 12 Borut Semenic 2013-02-08 08:43:17 UTC
The systemd-analyze plot and systemd-analyze blame is working (fixed) for me with
 selinux-policy-3.11.1-76.fc18.noarch. 

Thank you

Comment 13 Miroslav Grepl 2013-02-08 12:10:58 UTC
Thank you for testing.

Comment 14 monts 2013-02-08 17:53:38 UTC
Installed Packages
Name        : selinux-policy
Arch        : noarch
Version     : 3.11.1
Release     : 76.fc18
Size        : 62  
Repo        : installed
From repo   : updates-testing
Summary     : SELinux policy configuration
URL         : http://oss.tresys.com/repos/refpolicy/
License     : GPLv2+
Description : SELinux Reference Policy - modular.
            : Based off of reference policy: Checked out revision  2.20091117

systemd-analyze blame is working Fixed.

Thank you.


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