Files
kde-linux/check-fs.sh
Aleix Pol i Gonzalez 21fb049792 Test permissions after prepare-image has been called
It's where such permissions are set.

See commit 9c3e4f93
2026-07-06 18:13:30 +02:00

12 lines
390 B
Bash

#!/bin/bash
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: 2025 Harald Sitter <sitter@kde.org>
OUTPUT=$1
# Safety nets to prevent excessive breakage
## sudo should have sticky bit set
[ -u $OUTPUT/usr/bin/sudo ] || exit 1
## newuidmap should have a capability set
[ "$(getcap $OUTPUT/usr/bin/newuidmap)" != "" ] || exit 1