Bug 1645747 - SELinux is preventing wall from using the 'dac_override' capabilities.
Summary: SELinux is preventing wall from using the 'dac_override' capabilities.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: apcupsd
Version: 29
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jason Tibbitts
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ae5bbc66116c68d7c1f2900e2a2...
: 1636348 1725203 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-03 10:05 UTC by hx
Modified: 2019-11-27 22:58 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-11-27 22:58:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description hx 2018-11-03 10:05:17 UTC
Description of problem:
SELinux is preventing wall from using the 'dac_override' capabilities.

*****  Plugin dac_override (91.4 confidence) suggests   **********************

If you want to help identify if domain needs this access or you have a file with the wrong permissions on your system
Then turn on full auditing to get path information about the offending file and generate the error again.
Do

Turn on full auditing
# auditctl -w /etc/shadow -p w
Try to recreate AVC. Then execute
# ausearch -m avc -ts recent
If you see PATH record check ownership/permissions on file, and fix it,
otherwise report as a bugzilla.

*****  Plugin catchall (9.59 confidence) suggests   **************************

If you believe that wall should have the dac_override capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'wall' --raw | audit2allow -M my-wall
# semodule -X 300 -i my-wall.pp

Additional Information:
Source Context                system_u:system_r:apcupsd_t:s0
Target Context                system_u:system_r:apcupsd_t:s0
Target Objects                Unknown [ capability ]
Source                        wall
Source Path                   wall
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.14.1-42.fc28.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.18.7-200.fc28.x86_64 #1 SMP Mon
                              Sep 10 15:44:45 UTC 2018 x86_64 x86_64
Alert Count                   5
First Seen                    2018-10-05 11:09:06 EEST
Last Seen                     2018-10-05 11:24:49 EEST
Local ID                      284f48ac-2861-43b3-a553-bfdc1945e826

Raw Audit Messages
type=AVC msg=audit(1538727889.461:386): avc:  denied  { dac_override } for  pid=9871 comm="wall" capability=1  scontext=system_u:system_r:apcupsd_t:s0 tcontext=system_u:system_r:apcupsd_t:s0 tclass=capability permissive=0


Hash: wall,apcupsd_t,apcupsd_t,capability,dac_override

Version-Release number of selected component:
selinux-policy-3.14.1-42.fc28.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.6
hashmarkername: setroubleshoot
kernel:         4.18.16-300.fc29.x86_64
type:           libreport

Potential duplicate: bug 1636348

Comment 1 Lukas Vrabec 2018-11-04 16:52:04 UTC
*** Bug 1636348 has been marked as a duplicate of this bug. ***

Comment 2 John Griffiths 2019-01-16 23:59:32 UTC
Description of problem:
UPS message about battery failing sent by apcupsd

Version-Release number of selected component:
selinux-policy-3.14.1-50.fc28.noarch

Additional info:
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.19.14-200.fc28.x86_64
type:           libreport

Comment 3 John Griffiths 2019-05-15 17:40:37 UTC
Description of problem:
There was a system error.

Version-Release number of selected component:
selinux-policy-3.14.2-57.fc29.noarch

Additional info:
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.14-200.fc29.x86_64
type:           libreport

Comment 4 Lukas Vrabec 2019-05-17 12:01:02 UTC
Hi, 

Most probably this is issue on apcupsd side. 

Please read my blogs to get context: 

https://lukas-vrabec.com/index.php/2018/07/03/why-do-you-see-dac_override-selinux-denials/

https://lukas-vrabec.com/index.php/2018/07/16/how-to-enable-full-auditing-in-audit-daemon/

Thanks,
Lukas.

Comment 5 Zdenek Pytela 2019-07-01 07:03:07 UTC
*** Bug 1725203 has been marked as a duplicate of this bug. ***

Comment 6 Ben Cotton 2019-10-31 19:05:01 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
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 '29'.

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 29 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 Ben Cotton 2019-11-27 22:58:41 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 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.