Bug 2144079 - fapolicyd fails on f37
Summary: fapolicyd fails on f37
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: fapolicyd
Version: 37
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Radovan Sroka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-18 21:51 UTC by Silvan Nagl
Modified: 2022-12-07 01:42 UTC (History)
2 users (show)

Fixed In Version: fapolicyd-1.1.7-1.fc37 fapolicyd-1.1.7-1.fc36
Clone Of:
Environment:
Last Closed: 2022-12-07 01:34:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Silvan Nagl 2022-11-18 21:51:48 UTC
Description of problem:

fapolicyd won't start because of SELinux.

Version-Release number of selected component (if applicable):

fapolicyd-1.1.5-2.fc37.src.rpm

How reproducible:

Always.

Steps to Reproduce:
Update Fedora to latest release, fapolicy will break.

Actual results:

Nov 18 21:48:25 53c70r.de systemd[1]: Starting fapolicyd.service - File Access Policy Daemon...
Nov 18 21:48:25 53c70r.de fagenrules[971]: /usr/sbin/fagenrules: No change
Nov 18 21:48:25 53c70r.de systemd[1]: fapolicyd.service: Can't open PID file /run/fapolicyd.pid (yet?) after start: Operation not permitted
Nov 18 21:48:25 53c70r.de fapolicyd[1042]: Initializing the trust database
Nov 18 21:48:25 53c70r.de systemd[1]: Started fapolicyd.service - File Access Policy Daemon.
Nov 18 21:48:25 53c70r.de fapolicyd[1042]: fapolicyd integrity is 0
Nov 18 21:48:25 53c70r.de fapolicyd[1042]: Loading rpmdb backend
Nov 18 21:48:34 53c70r.de fapolicyd[1042]: Checking if the trust database up to date
Nov 18 21:48:34 53c70r.de fapolicyd[1042]: Importing trust data from rpmdb backend
Nov 18 21:48:34 53c70r.de fapolicyd[1042]: Importing trust data from file backend
Nov 18 21:48:34 53c70r.de fapolicyd[1042]: Entries in trust DB: 35966
Nov 18 21:48:34 53c70r.de fapolicyd[1042]: Loaded trust info from all backends(without duplicates): 35966
Nov 18 21:48:34 53c70r.de fapolicyd[1042]: Trust database checks OK
Nov 18 21:48:34 53c70r.de fapolicyd[1042]: Error (Permission denied) adding fanotify mark for /dev/shm
Nov 18 21:48:35 53c70r.de systemd[1]: fapolicyd.service: Main process exited, code=exited, status=1/FAILURE
Nov 18 21:48:35 53c70r.de systemd[1]: fapolicyd.service: Failed with result 'exit-code'.
Nov 18 21:48:35 53c70r.de systemd[1]: fapolicyd.service: Consumed 1.489s CPU time.

[root@53c70r ~]# audit2allow -b


#============= fapolicyd_t ==============
allow fapolicyd_t boot_t:dir watch;
allow fapolicyd_t root_t:dir watch;
allow fapolicyd_t tmp_t:dir watch;
allow fapolicyd_t tmpfs_t:dir watch;
allow fapolicyd_t user_tmp_t:dir watch;



Expected results:

No failure.
No audit log.

Additional info:

Will fix the problem:


policy_module(fapolicyd_t, 1.0.0)

gen_require(`
        type fapolicyd_t;
')

########################################
#
# fapolicyd_t customized policy
#

require {
	type fapolicyd_t;
}

#============= fapolicyd_t ==============
files_watch_boot_dirs(fapolicyd_t)
files_watch_generic_tmp_dirs(fapolicyd_t)
files_watch_root_dirs(fapolicyd_t)
fs_manage_tmpfs_dirs(fapolicyd_t)
userdom_watch_tmp_dirs(fapolicyd_t)

Comment 1 Fedora Update System 2022-11-28 14:39:49 UTC
FEDORA-2022-ce04eee7a5 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ce04eee7a5

Comment 2 Fedora Update System 2022-11-28 14:51:24 UTC
FEDORA-2022-b6fee9ac9f has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b6fee9ac9f

Comment 3 Fedora Update System 2022-11-29 02:20:31 UTC
FEDORA-2022-b6fee9ac9f has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-b6fee9ac9f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-b6fee9ac9f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2022-11-29 02:31:08 UTC
FEDORA-2022-ce04eee7a5 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-ce04eee7a5`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-ce04eee7a5

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2022-12-07 01:34:49 UTC
FEDORA-2022-ce04eee7a5 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2022-12-07 01:42:28 UTC
FEDORA-2022-b6fee9ac9f has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.


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