Bug 1369444 - [abrt] dnssec-trigger: dnssec-trigger-script:536:_restart_nm:PermissionError: [Errno 13] Permission denied: '/var/run/NetworkManager/resolv.conf' -> '/etc/resolv.conf'
Summary: [abrt] dnssec-trigger: dnssec-trigger-script:536:_restart_nm:PermissionError:...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dnssec-trigger
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:5873e0afadbeacf2d24e80cbd5a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-23 12:52 UTC by Michał
Modified: 2017-08-08 16:41 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 16:41:20 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (952 bytes, text/plain)
2016-08-23 12:52 UTC, Michał
no flags Details
File: environ (83 bytes, text/plain)
2016-08-23 12:52 UTC, Michał
no flags Details

Description Michał 2016-08-23 12:52:33 UTC
Description of problem:
I disabled dnssec and stopped in exactly this way. Without stopping the unbound before this actions

Version-Release number of selected component:
dnssec-trigger-0.13-0.4.20150714svn.fc24

Additional info:
reporter:       libreport-2.7.2
cmdline:        /usr/bin/python3 -sE /usr/libexec/dnssec-trigger-script --cleanup
executable:     /usr/libexec/dnssec-trigger-script
kernel:         4.6.6-300.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
dnssec-trigger-script:536:_restart_nm:PermissionError: [Errno 13] Permission denied: '/var/run/NetworkManager/resolv.conf' -> '/etc/resolv.conf'

Traceback (most recent call last):
  File "/usr/libexec/dnssec-trigger-script", line 768, in <module>
    main()
  File "/usr/libexec/dnssec-trigger-script", line 755, in main
    Application(sys.argv).run()
  File "/usr/libexec/dnssec-trigger-script", line 491, in run
    self.method()
  File "/usr/libexec/dnssec-trigger-script", line 612, in run_cleanup
    self.run_restore()
  File "/usr/libexec/dnssec-trigger-script", line 599, in run_restore
    self._restart_nm()
  File "/usr/libexec/dnssec-trigger-script", line 536, in _restart_nm
    os.symlink(self.resolvconf_networkmanager, self.resolvconf)
PermissionError: [Errno 13] Permission denied: '/var/run/NetworkManager/resolv.conf' -> '/etc/resolv.conf'

Local variables in innermost frame:
self: <__main__.Application object at 0x7fc508e509b0>

Comment 1 Michał 2016-08-23 12:52:40 UTC
Created attachment 1193308 [details]
File: backtrace

Comment 2 Michał 2016-08-23 12:52:42 UTC
Created attachment 1193309 [details]
File: environ

Comment 3 Tomáš Hozza 2016-08-23 13:22:38 UTC
Do you use SELinux? Are there any AVCs?

Comment 4 Michał 2016-09-07 12:40:14 UTC
I don't know what to look for, so this is output of journalctl -b 0 | grep AVC.
--------------------------------------
wrz 06 13:10:43 prime audit[1862]: AVC avc:  denied  { write } for  pid=1862 comm="vboxdrv.sh" name="rules.d" dev="dm-1" ino=1836324 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:udev_rules_t:s0 tclass=dir permissive=0
wrz 06 15:26:01 prime audit[7887]: AVC avc:  denied  { create } for  pid=7887 comm="bash" name="63" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 06 15:26:01 prime audit[7887]: AVC avc:  denied  { create } for  pid=7887 comm="bash" name="62" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 06 16:26:48 prime audit[10405]: AVC avc:  denied  { create } for  pid=10405 comm="bash" name="63" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 06 16:26:48 prime audit[10405]: AVC avc:  denied  { create } for  pid=10405 comm="bash" name="62" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 06 20:10:20 prime audit[17630]: AVC avc:  denied  { create } for  pid=17630 comm="bash" name="63" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 06 20:10:20 prime audit[17630]: AVC avc:  denied  { create } for  pid=17630 comm="bash" name="62" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 06 20:51:52 prime audit[21045]: AVC avc:  denied  { create } for  pid=21045 comm="bash" name="63" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 06 20:51:52 prime audit[21045]: AVC avc:  denied  { create } for  pid=21045 comm="bash" name="62" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 07 00:09:05 prime audit[24923]: AVC avc:  denied  { create } for  pid=24923 comm="wget" name="3" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 07 00:09:05 prime audit[24925]: AVC avc:  denied  { sys_ptrace } for  pid=24925 comm="abrt-hook-ccpp" capability=19  scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:system_r:abrt_dump_oops_t:s0 tclass=cap_userns permissive=0
wrz 07 00:09:05 prime audit[24925]: AVC avc:  denied  { sys_ptrace } for  pid=24925 comm="abrt-hook-ccpp" capability=19  scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:system_r:abrt_dump_oops_t:s0 tclass=cap_userns permissive=0
wrz 07 00:09:07 prime audit[24927]: AVC avc:  denied  { create } for  pid=24927 comm="wget" name="3" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 07 00:22:56 prime audit[25461]: AVC avc:  denied  { create } for  pid=25461 comm="bash" name="63" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 07 00:22:56 prime audit[25461]: AVC avc:  denied  { create } for  pid=25461 comm="bash" name="62" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:unconfined_t:s0 tclass=file permissive=0
wrz 07 10:38:37 prime audit[2651]: AVC avc:  denied  { write } for  pid=2651 comm="iw" path="/run/tlp/lock_tlp" dev="tmpfs" ino=3029174 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0
wrz 07 10:38:37 prime audit[2654]: AVC avc:  denied  { write } for  pid=2654 comm="ethtool" path="/run/tlp/lock_tlp" dev="tmpfs" ino=3029174 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0
wrz 07 13:27:47 prime audit[3175]: AVC avc:  denied  { write } for  pid=3175 comm="iw" path="/run/tlp/lock_tlp" dev="tmpfs" ino=3029174 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0
wrz 07 13:27:47 prime audit[3178]: AVC avc:  denied  { write } for  pid=3178 comm="ethtool" path="/run/tlp/lock_tlp" dev="tmpfs" ino=3029174 scontext=system_u:system_r:ifconfig_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=0

Comment 5 Michał 2016-09-07 12:40:58 UTC
Oh, sorry. And SELinux is enabled and in enforcing mode.

Comment 6 Fedora End Of Life 2017-07-25 22:35:35 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2017-08-08 16:41:20 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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