summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Su <chris@lesscrowds.org>2022-04-27 23:35:31 +0800
committerJakov Smolić <jsmolic@gentoo.org>2022-04-27 17:57:21 +0200
commitcc8fe8e8987d7f790d42492d571f82494bb0ecfd (patch)
tree13b5a1c33ba1552fc43349da4e2b1f82fe44665e /acct-user
parentacct-group/headscale: new package, add 0 (diff)
downloadgentoo-cc8fe8e8987d7f790d42492d571f82494bb0ecfd.tar.gz
gentoo-cc8fe8e8987d7f790d42492d571f82494bb0ecfd.tar.bz2
gentoo-cc8fe8e8987d7f790d42492d571f82494bb0ecfd.zip
acct-user/headscale: new package, add 0
Use a normal user to run headsacle to make the system more secure. Bug: https://bugs.gentoo.org/841017 Signed-off-by: Chris Su <chris@lesscrowds.org> Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'acct-user')
-rw-r--r--acct-user/headscale/headscale-0.ebuild16
-rw-r--r--acct-user/headscale/metadata.xml16
2 files changed, 32 insertions, 0 deletions
diff --git a/acct-user/headscale/headscale-0.ebuild b/acct-user/headscale/headscale-0.ebuild
new file mode 100644
index 000000000000..e30127cddfdb
--- /dev/null
+++ b/acct-user/headscale/headscale-0.ebuild
@@ -0,0 +1,16 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit acct-user
+
+DESCRIPTION="Headscale Server hosting user"
+
+ACCT_USER_ID=514
+ACCT_USER_HOME_OWNER=headscale:headscale
+ACCT_USER_HOME_PERMS=750
+ACCT_USER_GROUPS=( headscale )
+ACCT_USER_HOME=/var/lib/headscale
+
+acct-user_add_deps
diff --git a/acct-user/headscale/metadata.xml b/acct-user/headscale/metadata.xml
new file mode 100644
index 000000000000..73d345656db7
--- /dev/null
+++ b/acct-user/headscale/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>chris@lesscrowds.org</email>
+ <name>Chris Su</name>
+ </maintainer>
+ <maintainer type="person" proxied="proxy">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <maintainer type="person" proxied="proxy">
+ <email>jsmolic@gentoo.org</email>
+ <name>Jakov Smolić</name>
+ </maintainer>
+</pkgmetadata>