Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files/etc/systemd/system/tmp.mount is switching /tmp to tmpfs #89

Closed
erpadmin opened this issue Jul 9, 2018 · 7 comments
Closed

files/etc/systemd/system/tmp.mount is switching /tmp to tmpfs #89

erpadmin opened this issue Jul 9, 2018 · 7 comments

Comments

@erpadmin
Copy link
Contributor

erpadmin commented Jul 9, 2018

I just noticed /tmp is being mounted as tmpfs, but I don't see a requirement by CIS for /tmp to be tmpfs.

I don't know what is the new default for RHEL installs as we are still using the same kickstart file. Has this been an issue for anyone?

my main concern is oracle and other heavy ram use boxes

@sambanks
Copy link
Contributor

sambanks commented Jul 9, 2018

The default tmp.mount that comes with rhel7 is tmpfs, but it is disabled by default.
This role implements a security enhanced version of the redhat provided mount file.
What are your specific concerns? The role could potentially be extended to support non tmpfs.
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/migration_planning_guide/sect-red_hat_enterprise_linux-migration_planning_guide-file_system_layout#sect-Red_Hat_Enterprise_Linux-Migration_Planning_Guide-File_System_Layout-Temporary_storage_space

@erpadmin
Copy link
Contributor Author

ram consumption.
oracle or similar process already has dibs on large chunk of the RAM, user or process consumes /tmp which is backed by RAM, perhaps inadvertently

i am going to leave it as for the majority of our boxes and flip the configuration on our oracle boxes

@gregdurham
Copy link

@erpadmin I have the same concern. Will you just override the file from within another role, and call systemd to reload?

@erpadmin
Copy link
Contributor Author

erpadmin commented Jul 10, 2018

yes that is the plan for an oracle role which runs after CIS. we already already having issues with Oracle and noexec on /tmp since Oracle's runinstaller has a habit of coping the installer to /tmp and then executes it.

@sambanks
Copy link
Contributor

You shouldn't need a separate role, just set the following to false in your group_vars

rhel7cis_rule_1_1_2
rhel7cis_rule_1_1_3
rhel7cis_rule_1_1_4
rhel7cis_rule_1_1_5

@erpadmin
Copy link
Contributor Author

in the context of only CIS sure no separate role would be needed.

i use a common roles and application specific roles during initial build outs so its simpler for me to to add "nonstandard" changes elsewhere otherwise sooner or later those CIS variables get left set incorrectly by someone

@erpadmin
Copy link
Contributor Author

closing issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants