RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1218330 - No SELinux boolean to allow tmpwatch on samba_share_t or nfs_t
Summary: No SELinux boolean to allow tmpwatch on samba_share_t or nfs_t
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.1
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
Depends On:
TreeView+ depends on / blocked
Reported: 2015-05-04 15:58 UTC by Robert Scheck
Modified: 2019-10-28 13:30 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-3.13.1-32.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1271996 (view as bug list)
Last Closed: 2015-11-19 10:33:34 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2300 0 normal SHIPPED_LIVE selinux-policy bug fix update 2015-11-19 09:55:26 UTC

Description Robert Scheck 2015-05-04 15:58:34 UTC
Description of problem:
Right now running tmpwatch on directories being labelled as samba_share_t
or nfs_t leads to AVC denied messages, which might be right in the first
case but it should be possible to allow it via SELinux booleans through -
because we have backups on NFS that are cleaned up with tmpwatch or also
a samba share for temporary files being watched by tmpwatch. Both fails as
of writing due to the too strict SELinux policy.

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

How reproducible:
Everytime, label a directory with samba_share_t or nfs_t and run tmpwatch.

Actual results:
No SELinux boolean to allow tmpwatch on samba_share_t or nfs_t.

Expected results:
SELinux boolean to allow tmpwatch on samba_share_t or nfs_t.

Additional info:
type=AVC msg=audit(1430425770.447:23279): avc:  denied  { setattr } for  pid=19622 comm="tmpwatch" name="our-nfs-directory" dev="0:35" ino=40965 scontext=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=dir
type=SYSCALL msg=audit(1430425770.447:23279): arch=x86_64 syscall=utime success=no exit=EACCES a0=4042b7 a1=7fff4ea61d70 a2=7fb7d1c377b8 a3=7fff4ea61ac0 items=0 ppid=101823 pid=19622 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=493 comm=tmpwatch exe=/usr/sbin/tmpwatch subj=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 key=(null)

Comment 1 Robert Scheck 2015-05-04 16:00:17 UTC
Cross-filed case 01440075 on the Red Hat customer portal.

Comment 6 Lukas Vrabec 2015-07-09 12:43:12 UTC
commit 1e6961430e5bc64b333430bd7891d4ca25455e0c
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jul 9 14:19:51 2015 +0200

    Add tmpreaper booleans to use nfs_t and samba_share_t.

commit b35a58b0d1eeec30d2b853acea53e455c8ecbdaa
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jul 9 14:18:09 2015 +0200

    Add interface samba_setattr_samba_share_dirs.

commit 0fe3174d95e55ed5c600a3ae335dd470f41322c8
Author: Lukas Vrabec <lvrabec>
Date:   Thu Jul 9 14:23:02 2015 +0200

    Add interface fs_setattr_nfs_dirs

Comment 10 errata-xmlrpc 2015-11-19 10:33:34 UTC
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.


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