Hide Forgot
Description of problem: * the service is shipped but it is not confined Version-Release number of selected component (if applicable): rrdtool-1.7.0-16.el8.x86_64 selinux-policy-3.14.3-9.el8.noarch selinux-policy-targeted-3.14.3-9.el8.noarch How reproducible: * always Steps to Reproduce: # service rrdcached status Redirecting to /bin/systemctl status rrdcached.service ● rrdcached.service - Data caching daemon for rrdtool Loaded: loaded (/usr/lib/systemd/system/rrdcached.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: man:rrdcached(1) Jul 02 08:23:48 ci-vm-10-0-136-62.hosted.upshift.rdu2.redhat.com systemd[1]: Started Data caching daemon for rrdtool. Jul 02 08:38:16 ci-vm-10-0-136-62.hosted.upshift.rdu2.redhat.com systemd[1]: Stopping Data caching daemon for rrdtool... Jul 02 08:38:16 ci-vm-10-0-136-62.hosted.upshift.rdu2.redhat.com systemd[1]: Stopped Data caching daemon for rrdtool. # service rrdcached start Redirecting to /bin/systemctl start rrdcached.service # service rrdcached status Redirecting to /bin/systemctl status rrdcached.service ● rrdcached.service - Data caching daemon for rrdtool Loaded: loaded (/usr/lib/systemd/system/rrdcached.service; disabled; vendor preset: disabled) Active: active (running) since Tue 2019-07-02 08:38:22 EDT; 1s ago Docs: man:rrdcached(1) Main PID: 17954 (rrdcached) Tasks: 7 (limit: 11518) Memory: 1.4M CGroup: /system.slice/rrdcached.service └─17954 /usr/bin/rrdcached -g Jul 02 08:38:22 ci-vm-10-0-136-62.hosted.upshift.rdu2.redhat.com systemd[1]: Started Data caching daemon for rrdtool. # ps -efZ | grep rrdcached system_u:system_r:unconfined_service_t:s0 root 17954 1 0 08:38 ? 00:00:00 /usr/bin/rrdcached -g unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 17973 4655 0 08:38 pts/0 00:00:00 grep --color=auto rrdcached # ls -Z /usr/bin/rrdcached system_u:object_r:bin_t:s0 /usr/bin/rrdcached # Actual results: * the service is not confined Expected results: * the service is confined
PR for Fedora: https://github.com/fedora-selinux/selinux-policy-contrib/pull/127/commits
# seinfo -t | grep rrdcache rrdcached_exec_t rrdcached_t rrdcached_tmp_t rrdcached_var_run_t # sesearch -s init_t -t tmp_t -c sock_file -T # sesearch -s init_t -t tmp_t -c sock_file -p create -A # There is no rule which would allow systemd to create such a socket in /tmp.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:1773