TMAegisベータ
freebsd のその他のルール

FreeBSD

TMA-FREEBSD-1.1.2.2.2

Ensure nosuid option set on /home partition

高レベル 1自動freebsd

説明

The nosuid mount option specifies that the filesystem cannot contain setuid files. WARNING This option is worthless if a publicly available suid or sgid wrapper is installed on your system. It is set automatically when the user does not have super-user privileges. Since the /home filesystem is only intended for user file storage, set this option to ensure that users cannot create setuid files in /home. Audit: when /home is a separate mount, its options (mount -p) must include nosuid; no separate mount is compliant (see the partition recommendation).

チェック方法

監査方法: シェルコマンド

shell
command -v mount >/dev/null 2>&1 || exit 1; o=$(mount -p | awk '$2=="/home" {print $4}'); if [ -z "$o" ]; then echo compliant; else case ",$o," in *,nosuid,*) echo compliant;; *) echo "/home options: $o";; esac; fi
期待される出力
compliant

修正方法

修正方法: ガイダンスまたは IaC パッチ

- IF - a separate partition exists for /home. Edit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the /home partition. Example: <device> /home <fstype> rw,nosuid,noexec 0 0 Run the following command to remount /home with the configured options: # mount -u -o nosuid /home

プロパティ

オペレーティングシステム
すべて
タグ
freebsdaccounts
参照
CIS FreeBSD 14 Benchmark v1.0.1 - 1.1.2.2.2 Ensure nosuid option set on /home partition

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target freebsd