From baaad2f31826c78c9858b19075644998a4ba94d0 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Mon, 27 Jan 2020 11:49:41 +0000 Subject: kiss: don't run as root FossilOrigin-Name: 22e3e5f5ec1228fbe99e39d09aa34a23f833d3e33a1a415661aa326b5372cc20 --- kiss | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kiss') diff --git a/kiss b/kiss index 7d49ca7..8303bae 100755 --- a/kiss +++ b/kiss @@ -1139,6 +1139,10 @@ main() { # from leaking to stdout. set +x + # Prevent the package manager from running as root. The package + # manager will elevate permissions where needed. + [ "$(id -u)" != 0 ] || die "kiss must be run as a normal user" + # Set the location to the repository and package database. pkg_db=var/db/kiss/installed -- cgit v1.2.3