tools/testing/selftests/mount/run_unprivileged_remount.sh

Source file repositories/reference/linux-study-clean/tools/testing/selftests/mount/run_unprivileged_remount.sh

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/mount/run_unprivileged_remount.sh
Extension
.sh
Size
285 bytes
Lines
13
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Kselftest framework requirement - SKIP code is 4.
ksft_skip=4

# Run mount selftests
if [ -f /proc/self/uid_map ] ; then
	./unprivileged-remount-test ;
else
	echo "WARN: No /proc/self/uid_map exist, test skipped." ;
	exit $ksft_skip
fi

Annotation

Implementation Notes