-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9984 from rumch-se/partition_for_dev_shm
Added rule partition_for_dev_shm
- Loading branch information
Showing
5 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
linux_os/guide/system/software/disk_partitioning/partition_for_dev_shm/rule.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
documentation_complete: true | ||
|
||
title: 'Ensure /dev/shm is configured' | ||
|
||
description: |- | ||
The <tt>/dev/shm</tt> is a traditional shared memory concept. | ||
One program will create a memory portion, which other processes | ||
(if permitted) can access. If <tt>/dev/shm</tt> is not configured, | ||
tmpfs will be mounted to /dev/shm by systemd. | ||
rationale: |- | ||
Any user can upload and execute files inside the <tt>/dev/shm</tt> similar to | ||
the <tt>/tmp</tt> partition. Configuring <tt>/dev/shm</tt> allows an administrator | ||
to set the noexec option on the mount, making /dev/shm useless for an attacker to | ||
install executable code. It would also prevent an attacker from establishing a | ||
hardlink to a system setuid program and wait for it to be updated. Once the program | ||
was updated, the hardlink would be broken and the attacker would have his own copy | ||
of the program. If the program happened to have a security vulnerability, the attacker | ||
could continue to exploit the known flaw. | ||
severity: low | ||
|
||
identifiers: | ||
cce@sle12: CCE-92319-3 | ||
cce@sle15: CCE-92477-9 | ||
|
||
references: | ||
cis@sle12: 1.1.6 | ||
cis@sle15: 1.1.6 | ||
|
||
{{{ complete_ocil_entry_separate_partition(part="/dev/shm") }}} | ||
|
||
fixtext: '{{{ fixtext_separate_partition(part="/dev/shm") }}}' | ||
|
||
platform: machine | ||
|
||
template: | ||
name: mount | ||
vars: | ||
mountpoint: /dev/shm | ||
min_size: 2147483648 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
CCE-92319-3 | ||
CCE-92321-9 | ||
CCE-92324-3 | ||
CCE-92326-8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
CCE-92477-9 | ||
CCE-92479-5 | ||
CCE-92481-1 | ||
CCE-92483-7 | ||
|