Bug 1616214 - Dirinstall hangs trying to get org.freedesktop.hostname proxy (AVC denial)
Summary: Dirinstall hangs trying to get org.freedesktop.hostname proxy (AVC denial)
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Radek Vykydal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1622917
TreeView+ depends on / blocked
 
Reported: 2018-08-15 09:43 UTC by Radek Vykydal
Modified: 2020-11-24 20:22 UTC (History)
6 users (show)

Fixed In Version: anaconda-29.24.4-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1622917 (view as bug list)
Environment:
Last Closed: 2020-11-24 20:22:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
output of the session running dirinstall (6.31 KB, text/plain)
2018-08-15 09:43 UTC, Radek Vykydal
no flags Details
journalctl -a -b (184.97 KB, text/plain)
2018-08-15 09:43 UTC, Radek Vykydal
no flags Details
dbus.log (3.01 KB, text/plain)
2018-08-15 09:43 UTC, Radek Vykydal
no flags Details
anaconda.log (3.02 KB, text/plain)
2018-08-15 09:44 UTC, Radek Vykydal
no flags Details
program.log (183 bytes, text/plain)
2018-08-15 09:46 UTC, Radek Vykydal
no flags Details

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.


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