sandboxing
This commit is contained in:
parent
5f70e8be94
commit
0f1a81c2aa
13 changed files with 230 additions and 90 deletions
|
|
@ -74,6 +74,19 @@ in
|
|||
security.pam.services.su.requireWheel = true;
|
||||
security.pam.services.newgrp.requireWheel = true;
|
||||
|
||||
security.polkit = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if ((action.id == "org.freedesktop.machine1.host-shell" ||
|
||||
action.id == "org.freedesktop.machine1.login") &&
|
||||
subject.user == "user") {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
||||
'';
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue