Bug 2042442 - semodule fails
Summary: semodule fails
Keywords:
Status: CLOSED DUPLICATE of bug 2042369
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 35
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-19 14:20 UTC by Michael Lipp
Modified: 2022-01-26 15:39 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-26 15:39:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Lipp 2022-01-19 14:20:38 UTC
Description of problem:

After upgrading to fc35, I get

SELinux is preventing rrdtool queue from using the dac_override capability

When I follow these instructions:

# ausearch -c 'rrdtool queue' --raw | audit2allow -M my-rrdtoolqueue
# semodule -X 300 -i my-rrdtoolqueue.pp

semodule fails with:

Problems processing filecon rules
Failed post db handling
Post process failed
semodule:  Failed!

The content of my-rrdtoolqueue.te is:

module my-rrdtoolqueue 1.0;

require {
	type collectd_t;
	class capability dac_override;
}

#============= collectd_t ==============
allow collectd_t self:capability dac_override;


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

rrdtool-1.7.2-21.fc35.x86_64

How reproducible:

Always

Steps to Reproduce:

See above

Expected results:

rrdtools/collectd should be allowed to work

Comment 1 Herbert 2022-01-20 11:05:28 UTC
Hi,

I have similar problems after dnf update:

# semodule -X 400 -d my-imap
Problems processing filecon rules
Failed post db handling
Post process failed
semodule:  Failed!

or

# semodule -i my-procmail.pp
Problems processing filecon rules
Failed post db handling
Post process failed

Cannot add, remove orchange selinux policy since 
selinux-policy-targeted 35.10-1.fc35

Urgent!

Best regards,
Herbert

Comment 2 Michael Lipp 2022-01-20 12:13:57 UTC
Considering Herbert's problem, the "Component" should probably be changed to "selinux" (I have no permission to do this).

Comment 3 Herbert 2022-01-20 12:26:50 UTC
Hi Michael,
Yes, you might be right, but it seems that I'm not entitled to change this.

Perhaps important is the following:
policycoreutils                  x86_64       3.3-1.fc35
policycoreutils-devel            x86_64       3.3-1.fc35
policycoreutils-python-utils     noarch       3.3-1.fc35
python3-policycoreutils          noarch       3.3-1.fc35

Comment 4 Zdenek Pytela 2022-01-20 17:40:39 UTC
Please update to selinux-policy-35.11-1.fc35

*** This bug has been marked as a duplicate of bug 2042369 ***

Comment 5 Michael Lipp 2022-01-20 17:49:24 UTC
sorry, but marking this as a duplicate of bug 2042369 makes no sense, this is in no way related to a non-working custom cockpit module.

Comment 6 Zdenek Pytela 2022-01-26 15:39:59 UTC
Please update to selinux-policy-35.11-1.fc35 or newer. There is a common root cause with bug 2042369.

*** This bug has been marked as a duplicate of bug 2042369 ***


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