]> git.ipfire.org Git - ipfire-2.x.git/commit - src/scripts/update-ids-ruleset
update-ids-ruleset: Run as unprivileged user.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 5 Jun 2019 16:27:10 +0000 (18:27 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 5 Jun 2019 11:33:58 +0000 (12:33 +0100)
commit72ab71969fd88fc1bf78ddd77f066f86b15731c7
tree3113e15ffc07dd81f5d26301e5b06fbc50341ab6
parentdc9ac30c8dfb157c8ac7af5849d166f42462b08d
update-ids-ruleset: Run as unprivileged user.

Check if the script has been launched as privileged user (root) and drop all
permissions by switching to the "nobody" user and group.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/update-ids-ruleset