View Issue Details

IDProjectCategoryView StatusLast Update
0014220CentOS-7setroubleshootpublic2018-08-19 02:12
Reportersplang 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0014220: [abrt] setroubleshoot-server: server.py:699:RunFaultServer:ValueError: unable to open /sys/fs/selinux/policy: Device or ...
DescriptionDescription of problem:
Running strem.io - Gtk package

Version-Release number of selected component:
setroubleshoot-server-3.2.28-3.el7

Truncated backtrace:
server.py:699:RunFaultServer:ValueError: unable to open /sys/fs/selinux/policy: Device or resource busy


Traceback (most recent call last):
  File "/usr/sbin/setroubleshootd", line 102, in <module>
    RunFaultServer(timeout)
  File "/usr/lib64/python2.7/site-packages/setroubleshoot/server.py", line 699, in RunFaultServer
    audit2why.init()
ValueError: unable to open /sys/fs/selinux/policy: Device or resource busy


Local variables in innermost frame:
timeout: 10
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python -Es /usr/sbin/setroubleshootd -f ''
executable: /usr/sbin/setroubleshootd
kernel: 4.14.3-1.el7.elrepo.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: Not sure how to reproduce the problem
runlevel: N 5
type: Python
uid: 964
TagsNo tags attached.
abrt_hash33bc329d11dc6adc518b385827c2f8af9b150646
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/f49ef773326531719ca3e40f66065135f84b697a

Activities

splang

splang

2017-12-02 08:54

reporter  

backtrace (473 bytes)
server.py:699:RunFaultServer:ValueError: unable to open /sys/fs/selinux/policy:  Device or resource busy


Traceback (most recent call last):
  File "/usr/sbin/setroubleshootd", line 102, in <module>
    RunFaultServer(timeout)
  File "/usr/lib64/python2.7/site-packages/setroubleshoot/server.py", line 699, in RunFaultServer
    audit2why.init()
ValueError: unable to open /sys/fs/selinux/policy:  Device or resource busy


Local variables in innermost frame:
timeout: 10
backtrace (473 bytes)
environ (92 bytes)
DBUS_STARTER_BUS_TYPE=system
DBUS_STARTER_ADDRESS=unix:path=/var/run/dbus/system_bus_socket
environ (92 bytes)
machineid (135 bytes)
systemd=c7a7000245674ed5af0f700050c36959
sosreport_uploader-dmidecode=7d17831d897a65261a0240818220654ebe6b97b9c52ca0e00aff1bd7c98d18c4
machineid (135 bytes)
hknief

hknief

2018-03-22 01:07

reporter   ~0031487

There seems to be an issue with concurrent access to the sysfs mount on /sys/fs/selinux/policy. Simply running seinfo concurrently will cause an error.

# seinfo & seinfo
[1] 96493
ERROR: Unable to open policy /sys/fs/selinux/policy.
ERROR: Device or resource busy

# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

# uname -a
Linux db161139.bfi10.service-now.com 3.10.0-693.17.1.el7.x86_64 #1 SMP Thu Jan 25 20:13:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
amtradm

amtradm

2018-05-23 00:55

reporter   ~0031894

Another user experienced a similar problem:

Warning message appeared when connecting using VNC viewer

reporter: libreport-2.1.11.1
executable: /usr/sbin/setroubleshootd
kernel: 3.10.0-693.5.2.el7.x86_64
package: setroubleshoot-server-3.2.28-3.el7
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reason: server.py:699:RunFaultServer:ValueError: unable to open /sys/fs/selinux/policy: Device or resource busy
reproducible: The problem occurs regularly
runlevel: N 3
type: Python
uid: 989
gemesyscanada

gemesyscanada

2018-08-19 02:12

reporter   ~0032530

I am getting same or very similar issue. I'm running CentOS Linux release 7.4.1708 (core) (as reported by the centos-release file in /etc). System appears stable, and is running correctly, as near as I can tell. Except about every hour or so, I get this "ABRT" indicating that there is an issue with SELinux Troubleshoot program, where the file /usr/selinux/targeted/policy/policy.31 file cannot be accessed. I have a policy.30 file from several months back, and the policy.31 file, which is current as of today. I updated several packages related to glibc and x11 today. Perhaps this created a new policy file? The file "policy.31" is read-available to all. The error seems to be similar to what amtradm reports (in that the type is Python). I have run: (as the ABRT notification suggested...)

   abrt-cli list --since 1534625010

and got this information:

  --init--.py:913:<module>:ValueError:Failed to read //etc/selinux/targeted/policy/policy.31 file
  time: Sat. Aug 18, 2018 ...
  cmdline: /usr/bin/python -Es /usr/bin/setroubleshootd -f ' '
  package: setroubleshoot -server-3.2.28_3.el7

Machine details: The GUI [System Tools/Settings/System Details] menu reports:
     Memory: 3.7 GiB
     Processor: Intel Core i3-2120 CPU @ 3.30Ghz x 4 (4 cores)
     Graphics: Intel Sandybridge Desktop
     Gnome: Version 3.22.2
     Disk: 1.2 TB

Could someone suggest if there is any specific action I can take to correct or workaround this issue? Thanx.

Issue History

Date Modified Username Field Change
2017-12-02 08:54 splang New Issue
2017-12-02 08:54 splang File Added: backtrace
2017-12-02 08:55 splang File Added: environ
2017-12-02 08:55 splang File Added: machineid
2018-03-22 01:07 hknief Note Added: 0031487
2018-05-23 00:55 amtradm Note Added: 0031894
2018-08-19 02:12 gemesyscanada Note Added: 0032530