feat(tunable): add new system_user variable.

This commit is contained in:
Alexandre Pujol 2024-02-14 23:58:18 +00:00
parent e28e452ba4
commit e02bf03cca
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 2 additions and 0 deletions

View file

@ -206,6 +206,7 @@ func SetFullSystemPolicy() ([]string, error) {
return res, err
}
out := strings.Replace(string(content), "@{systemd}=unconfined", "@{systemd}=systemd", -1)
out = strings.Replace(out, "@{systemd_user}=unconfined", "@{systemd_user}=systemd-user", -1)
if err := path.WriteFile([]byte(out)); err != nil {
return res, err
}