mirror of
https://github.com/KDE/kde-linux.git
synced 2026-08-04 11:12:32 -04:00
12 lines
390 B
Bash
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
|