Fedora Linux Support Community & Resources Center
  #1  
Old 10th October 2012, 01:19 AM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,278
linuxfirefox
F18: systemd-analyze

Heyas

Just wondering if anyone else has issues to analyze systemd?

When i run my beloved script: blame
I get his output:

Code:
[simon@localhost ~]$ blame
Year / Month / Day : 2012 10 10
ERROR:dbus.proxies:Introspect error on :1.3:/org/freedesktop/systemd1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.
Traceback (most recent call last):
  File "/bin/systemd-analyze", line 309, in <module>
    verb.get(args[0], unknown_verb)()
  File "/bin/systemd-analyze", line 108, in blame
    data = acquire_time_data()
  File "/bin/systemd-analyze", line 12, in acquire_time_data
    units = manager.ListUnits()
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.
0 services: Total = 0 seconds
ERROR:dbus.proxies:Introspect error on :1.3:/org/freedesktop/systemd1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.
Traceback (most recent call last):
  File "/bin/systemd-analyze", line 309, in <module>
    verb.get(args[0], unknown_verb)()
  File "/bin/systemd-analyze", line 91, in time
    initrd_time, start_time, finish_time = acquire_start_time()
  File "/bin/systemd-analyze", line 34, in acquire_start_time
    initrd_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'InitRDTimestampMonotonic'))
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.
Because of the last line, I tried to reset SE settings with:
Code:
restorecon -rp /
But that didnt help

Any ideas?
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot
  #2  
Old 10th October 2012, 06:10 AM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: F18: systemd-analyze

I got the same thing here running systemd analyze..

Code:
[root@localhost sysconfig]# systemd-analyze
ERROR:dbus.proxies:Introspect error on :1.2:/org/freedesktop/systemd1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.
Traceback (most recent call last):
  File "/bin/systemd-analyze", line 307, in <module>
    time()
  File "/bin/systemd-analyze", line 91, in time
    initrd_time, start_time, finish_time = acquire_start_time()
  File "/bin/systemd-analyze", line 34, in acquire_start_time
    initrd_time = int(properties.Get('org.freedesktop.systemd1.Manager', 'InitRDTimestampMonotonic'))
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: SELinux policy denies access.
I got it to run by setting selinux to permissive temporarily

Code:
[root@localhost sysconfig]# setenforce 0
[root@localhost sysconfig]# systemd-analyze
Startup finished in 1009ms (kernel) + 2506ms (initramfs) + 9957ms (userspace) = 13474ms
[root@localhost sysconfig]# setenforce 1
  #3  
Old 10th October 2012, 06:48 AM
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,176
linuxfirefox
Re: F18: systemd-analyze

This is probably the bit of https://bugzilla.redhat.com/show_bug.cgi?id=859614 that wasn't fixed by selinux-policy -32. It should be fixed by -33, according to Dan.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #4  
Old 10th October 2012, 01:49 PM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,278
linuxchrome
Re: F18: systemd-analyze

Weird, Bugzilla created a new bug for my issue: https://bugzilla.redhat.com/show_bug.cgi?id=864720
Shall i post a link in the report you posted Adam?

I ask this since i get the results (error) even after updating it yesterday.
Edit:
@ DBelton, thank you for the work around.
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot

Last edited by sea; 10th October 2012 at 01:52 PM.
  #5  
Old 10th October 2012, 06:47 PM
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 4,176
linuxfirefox
Re: F18: systemd-analyze

sea: check the version of selinux-policy first. i'm not sure if -33 a) actually exists yet and b) has been submitted as an update.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
  #6  
Old 10th October 2012, 11:52 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: F18: systemd-analyze

Adam. Currently, 32 is the latest version in updates-testing. Over in koji, it's up to 35.
  #7  
Old 11th October 2012, 02:52 AM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,278
linuxchrome
Re: F18: systemd-analyze

Where can i find this information?
There is no selinux command, man selinux doesnt show a release version, and i cant get a release information about the selinuxexecccon, and yum info selinux returns nothing as well.
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot
  #8  
Old 11th October 2012, 02:44 PM
nonamedotc Offline
Community Manager
 
Join Date: Mar 2011
Location: USA
Posts: 3,719
linuxfedorafirefox
Re: F18: systemd-analyze

Sea, do this

Code:
yum list installed selinux-policy
Loaded plugins: langpacks, presto, refresh-packagekit, remove-with-leaves
Installed Packages
selinux-policy.noarch                  3.10.0-149.fc17                    @updates
  #9  
Old 11th October 2012, 04:13 PM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,278
linuxchrome
Re: F18: systemd-analyze

selinux: 3.11.1-32.fc18
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot
  #10  
Old 11th October 2012, 04:44 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: F18: systemd-analyze

Well, you have the latest that is in the repos.

If you want to get a later selinux policy, you would have to get it from koji until they push another update to the repo.

They are now up to -36 in koji. I wonder if there is some reason they haven't pushed a SELinux update to the repo in awhile since there have been numerous changes to the policy to fix a few things.
  #11  
Old 11th October 2012, 06:42 PM
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,278
linuxchrome
Re: F18: systemd-analyze

OK, i know how to build a package on koji, but how do i install something from it?
Or shall i just download the built package from koji and do a 'local' install?

EDIT:
Or i wait for the update, its just the testing and scripting machine.
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Text User Interface (TUI) // Windows 8+ & Fedora 20+ Dualboot
  #12  
Old 11th October 2012, 06:49 PM
nonamedotc Offline
Community Manager
 
Join Date: Mar 2011
Location: USA
Posts: 3,719
linuxfedorafirefox
Re: F18: systemd-analyze

If you want, you can just download the rpm and install it using yum. If there are dependencies, you might have to download them as well. I do not think selinux-policy has too many dependencies though.
  #13  
Old 11th October 2012, 06:50 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: F18: systemd-analyze

If the package is built in koji, you can download it and install it with yum You would have to make sure to grab dependencies as well, or yum will tell you about it

But it probably would be easier to wait for the update unless you really need the fix.
  #14  
Old 12th October 2012, 08:26 PM
Finalzone Offline
Community Manager
 
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,466
linuxfirefox
Re: F18: systemd-analyze

In addition, please add karma to bodhi in admin.fedoraproject.org/updates if you are a Fedora Project contributor or user.
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 20 Heisenbug x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 20 Heisenbug x86-64 and Microsoft Windows 7 64-bit Home Premium Power output bust.
  #15  
Old 12th October 2012, 09:09 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,320
linuxfirefox
Re: F18: systemd-analyze

-36 has been pushed into the repo. I got is in an update last night
 

Tags
f18, systemdanalyze

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using systemd-analyze frenchja Using Fedora 4 23rd February 2013 02:30 AM
Can't use systemd-analyze screamin_jesus Using Fedora 4 8th June 2012 06:40 AM
Analyze the startup time of your OS with systemd salemeni Guides & Solutions (No Questions) 3 17th August 2011 06:28 PM
Analyze Maillog dmode Servers & Networking 1 3rd August 2007 01:35 PM


Current GMT-time: 13:31 (Thursday, 31-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat