Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
- when 'noexec' is passed to the mount point of /tmp and selinux is in enforcing mode, you cannot start the GUI. Setting permissive or removing 'noexec' fixes it
- This issue was previously identified in BZ 1153799 (Fixed by ERRATA) yet persists on this system with patches applied.
- Unable to reproduce in house
Version-Release number of selected component (if applicable):
How reproducible:
- 100% by customer, not at all by us
Steps to Reproduce:
1. apply 'noexec' to /tmp mount point
2.
3.
Actual results:
gnome-session will not start
Expected results:
- gnome-session runs
Additional info:
[root@it011093-r7d klong]# sesearch -s xdm_t -t user_tmpfs_t -c file -p execute -A -C
Found 1 semantic av rules:
allow xdm_t user_tmp_t : file { ioctl read write create getattr setattr lock append unlink link rename execute execute_no_trans open } ;
[root@it011093-r7d klong]# sesearch -s xdm_t -t user_tmp_t -c file -p execute -A -C
Found 1 semantic av rules:
allow xdm_t user_tmp_t : file { ioctl read write create getattr setattr lock append unlink link rename execute execute_no_trans open } ;
As for all those commands, that isn't what I do. This is a box that I'm CIS hardening and it has the following in it's fstab file:
#
# /etc/fstab
# Created by anaconda on Wed Jun 10 22:33:46 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=25083f86-d9c2-4546-9f47-960e1c253374 / xfs defaults 0 0
UUID=2c59c3ac-bc4f-44e7-834a-2ddfb6211822 /boot xfs defaults 0 0
#UUID=52783b05-0509-4645-a07b-edaf6783ce7b /home xfs defaults 0 0
/dev/vg_it003/home /home ext4 nodev,defaults 0 0
UUID=3688df7c-e95c-485b-a0c9-aa5b7ec572b4 swap swap defaults 0 0
/dev/mapper/vg_main-var /var xfs defaults 1 2
/dev/mapper/vg_main-var_log /var/log xfs defaults,nodev 1 2
/dev/mapper/vg_main-var_log_audit /var/log/audit xfs defaults,nodev 1 2
#
#tmpfs /tmp tmpfs nodev,nosuid,noexec,defaults 0 0
tmpfs /tmp tmpfs nodev,nosuid,defaults 0 0
/tmp /var/tmp none bind 0 0
tmpfs /dev/shm tmpfs nodev,nosuid,noexec,defaults 0 0
The "/tmp" line that is commented out is the one that breaks - the one below it is what I have to use for the GUI to work when I boot up.