build: use the base-strict abstraction automatically.
This commit is contained in:
parent
7dd860f277
commit
1118d2ffc5
2 changed files with 7 additions and 3 deletions
|
|
@ -8,14 +8,14 @@
|
|||
|
||||
abi <abi/4.0>,
|
||||
|
||||
include <abstractions/base>
|
||||
include <abstractions/base-strict>
|
||||
|
||||
@{att}/@{run}/systemd/journal/dev-log w,
|
||||
@{att}/@{run}/systemd/journal/socket w,
|
||||
@{att}/@{run}/systemd/journal/stdout rw,
|
||||
|
||||
deny /apparmor/.null rw,
|
||||
deny @{att}/apparmor/.null rw,
|
||||
/apparmor/.null rw,
|
||||
@{att}/apparmor/.null rw,
|
||||
|
||||
include if exists <abstractions/attached/base.d>
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@ func (b ReAttach) Apply(opt *Option, profile string) (string, error) {
|
|||
|
||||
} else {
|
||||
insert = "@{att} = /\n"
|
||||
profile = strings.ReplaceAll(profile,
|
||||
"include <abstractions/base>",
|
||||
"include <abstractions/base-strict>",
|
||||
)
|
||||
}
|
||||
|
||||
return strings.Replace(profile, origin, insert+origin, 1), nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue