ApplyProfile will apply the profile with the specified name to the process after the next exec. It is only supported on Linux and produces an [ErrApparmorNotEnabled] on other platforms.
(name string)
| 14 | // after the next exec. It is only supported on Linux and produces an |
| 15 | // [ErrApparmorNotEnabled] on other platforms. |
| 16 | func ApplyProfile(name string) error { |
| 17 | return applyProfile(name) |
| 18 | } |
| 19 | |
| 20 | // ErrApparmorNotEnabled indicates that AppArmor is not enabled or not supported. |
| 21 | var ErrApparmorNotEnabled = errors.New("apparmor: config provided but apparmor not supported") |
no test coverage detected
searching dependent graphs…