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: Using copy&paste on gnome-terminals running at different levels you can write-down i.e. paste from a higher level terminal to a lower level terminal.
Version-Release number of selected component (if applicable):
selinux-policy-mls-3.7.19-54
mcstrans-0.3.1-4
How reproducible:
Steps to Reproduce:
1.Using semanage I changed the default login and user to be ranged SystemLow-SystemHigh so that I could newrole to single levels
2.Added user_devpts_t to /etc/selinux/mls/contexts/securetty_types so that a user could run newrole in a gnome-terminal
3.start 2 gnome-terminals
4.in terminal 1 run `newrole -l Secret-Secret`, authenticate, copy text of newrole command using Edit menu Copy
5.in terminal 2 run `newrole -l Unclassified-Unclassified`, authenticate, paste using Edit menu Paste
Actual results:
Copied text pasted from Secret window to Unclassified window
Expected results:
Unclassified windows Edit menu Paste should not be active since it should not know that anything is in the clipboard. The clipboard data should be labeled Secret and not accessible to the Unclassified gnome-terminal.
Additional info:
Ted lets bring this up for discussion on the list. I am not sure what the proper control on this would be. Since you did not launch the terminal with the correct label, the X Session does not know you are running at a different level, so it can not prevent. After all you cut from a terminal and pasted to a terminal running at the same level. So I think changing the securetty_types is not allowed.
You're right. What I should have done was:
newrole -l Secret-Secret -- -c "gnome-terminal --disable-factory"
for instance so that the new window is running at the level specified and then indeed you can't copy&paste to gnome-terminal started similarly but at a different level. You can close this as not a bug. Sorry for the bother.