Skip to content

Commit

Permalink
add polkit rules and sysusers
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Nov 9, 2024
1 parent 21678f9 commit 3cc736f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/polkit-1/rules.d/100-taidan.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.policykit.exec" &&
subject.isInGroup("taidan")) {
return polkit.Result.YES;
}
});
4 changes: 4 additions & 0 deletions data/sysusers.d/taidan.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Service account for Taidan OOBE/Firstboot setup
# Should have access to root and be able to run commands as root
# This account should be locked after setup is complete
u taidan - "Taidan OOBE" /usr/lib/taidan /usr/sbin/nologin

0 comments on commit 3cc736f

Please sign in to comment.