mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
feat(tunable): add new system_user variable.
This commit is contained in:
parent
e28e452ba4
commit
e02bf03cca
2 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,7 @@
|
|||
|
||||
# Name of the systemd profile: unconfined || systemd
|
||||
@{systemd}=unconfined
|
||||
@{systemd_user}=unconfined
|
||||
|
||||
# Udev data dynamic assignment ranges
|
||||
@{dynamic}=23[4-9] 24[0-9] 25[0-4] # range 234 to 254
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue