Bug 1470892 - SELinux is preventing ntpdate-wrapper from 'execute_no_trans' accesses on the file /usr/sbin/ntpdate.
Summary: SELinux is preventing ntpdate-wrapper from 'execute_no_trans' accesses on the...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 26
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:d42d0aeab8a66f90a5b7bc33d64...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-14 00:13 UTC by trevor
Modified: 2018-05-29 11:41 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
: 1600597 (view as bug list)
Environment:
Last Closed: 2018-05-29 11:41:10 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description trevor 2017-07-14 00:13:15 UTC
Description of problem:
SELinux is preventing ntpdate-wrapper from 'execute_no_trans' accesses on the file /usr/sbin/ntpdate.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that ntpdate-wrapper should be allowed execute_no_trans access on the ntpdate file 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 'ntpdate-wrapper' --raw | audit2allow -M my-ntpdatewrapper
# semodule -X 300 -i my-ntpdatewrapper.pp

Additional Information:
Source Context                system_u:system_r:ntpd_t:s0
Target Context                system_u:object_r:ntpdate_exec_t:s0
Target Objects                /usr/sbin/ntpdate [ file ]
Source                        ntpdate-wrapper
Source Path                   ntpdate-wrapper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           ntpdate-4.2.8p10-1.fc26.x86_64
Policy RPM                    selinux-policy-3.13.1-259.fc26.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.11.9-300.fc26.x86_64 #1 SMP Wed
                              Jul 5 16:21:56 UTC 2017 x86_64 x86_64
Alert Count                   3
First Seen                    2017-07-12 21:01:58 AEST
Last Seen                     2017-07-14 09:59:00 AEST
Local ID                      f20e823f-7d96-4e71-a0fe-357c4c3caf0e

Raw Audit Messages
type=AVC msg=audit(1499990340.351:217): avc:  denied  { execute_no_trans } for  pid=1693 comm="ntpdate-wrapper" path="/usr/sbin/ntpdate" dev="sdb4" ino=2361164 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:ntpdate_exec_t:s0 tclass=file permissive=0


Hash: ntpdate-wrapper,ntpd_t,ntpdate_exec_t,file,execute_no_trans

Version-Release number of selected component:
selinux-policy-3.13.1-259.fc26.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.9-300.fc26.x86_64
type:           libreport

Comment 1 Ciaran Doherty 2017-07-18 08:20:27 UTC
Description of problem:
fail on startup

Version-Release number of selected component:
selinux-policy-3.13.1-260.1.fc26.noarch

Additional info:
reporter:       libreport-2.9.1
hashmarkername: setroubleshoot
kernel:         4.11.10-300.fc26.x86_64
type:           libreport

Comment 2 Lukas Vrabec 2017-07-19 10:27:09 UTC
Trevor, 

Where is ntpdate-wrapper file stored? 


Thanks,
Lukas.

Comment 3 trevor 2017-07-20 06:24:53 UTC
I could find no file ntpdate-wrapper on my machine, so this is a total mystery to me, but most of SELinux is a mystery to me.


trevor  ~  which ntpdate-wrapper
/usr/bin/which: no ntpdate-wrapper in (/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/trevor/.local/bin:/home/trevor/bin)
 trevor  ~  sudo which ntpdate-wrapper
which: no ntpdate-wrapper in (/sbin:/bin:/usr/sbin:/usr/bin)
 trevor  ~  cd /
 trevor  /  sudo find . -name ntpdate-wrapper 
find: ‘./run/user/1000/gvfs’: Permission denied
 trevor  / 

Comment 4 Daniel Walsh 2017-07-24 11:54:18 UTC
Try locate ntpdate-wrapper

Comment 5 trevor 2017-07-24 22:17:07 UTC
 sudo locate ntpdate-wrapper
/usr/libexec/ntpdate-wrapper

Comment 6 Fedora End Of Life 2018-05-03 07:54:54 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 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 '26'.

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 26 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 Fedora End Of Life 2018-05-29 11:41:10 UTC
Fedora 26 changed to end-of-life (EOL) status on 2018-05-29. Fedora 26
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.