Bug 1616214

Summary: Dirinstall hangs trying to get org.freedesktop.hostname proxy (AVC denial)
Product: [Fedora] Fedora Reporter: Radek Vykydal <rvykydal>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 31CC: anaconda-maint-list, jonathan, kellin, vanmeeuwen+fedora, vponcova, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-29.24.4-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1622917 (view as bug list) Environment:
Last Closed: 2020-11-24 20:22:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1622917    
Attachments:
Description Flags
output of the session running dirinstall
none
journalctl -a -b
none
dbus.log
none
anaconda.log
none
program.log none

Description Radek Vykydal 2018-08-15 09:43:00 UTC
Created attachment 1476101 [details]
output of the session running dirinstall

Running dirinstall Network service is not able to get dbus proxy of org.freedesktop.hostname.

Aug 15 11:36:33 localhost.localdomain audit[583]: USER_AVC pid=583 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for msgtype=method_return dest=:1.22 spid=648 tpid=1055 scontext=system_u:system_r:systemd_hostnamed_t:s0 tcontext=unconfined_u:system_r:install_t:s0-s0:c0.c1023 tclass=dbus permissive=0
                                                   exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'

Comment 1 Radek Vykydal 2018-08-15 09:43:34 UTC
Created attachment 1476102 [details]
journalctl -a -b

Comment 2 Radek Vykydal 2018-08-15 09:43:59 UTC
Created attachment 1476103 [details]
dbus.log

Comment 3 Radek Vykydal 2018-08-15 09:44:23 UTC
Created attachment 1476104 [details]
anaconda.log

Comment 4 Radek Vykydal 2018-08-15 09:46:25 UTC
Created attachment 1476105 [details]
program.log

Comment 5 Radek Vykydal 2018-08-28 08:08:34 UTC
https://github.com/rhinstaller/anaconda/pull/1583

Comment 6 Radek Vykydal 2018-09-04 13:41:52 UTC
(In reply to Radek Vykydal from comment #5)
> https://github.com/rhinstaller/anaconda/pull/1583

Replaced by the same PR on f29-devel branch:
https://github.com/rhinstaller/anaconda/pull/1591

Comment 7 Radek Vykydal 2018-09-20 09:40:14 UTC
For the record, if we wanted to fix this by updating selinux policy:

similarly to the rule we have for NM:

allow NetworkManager_t install_t:dbus send_msg;

we'd need one for systemd_hostnamed:

[root@localhost ~]# audit2allow -i /var/log/audit/audit.log 


#============= systemd_hostnamed_t ==============
allow systemd_hostnamed_t install_t:dbus send_msg;

Comment 8 Ben Cotton 2019-08-13 16:53:27 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 9 Ben Cotton 2019-08-13 19:43:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 10 Ben Cotton 2020-11-03 15:01:44 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-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 '31'.

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 31 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 11 Ben Cotton 2020-11-24 20:22:16 UTC
Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 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.