Skip to content

Commit

Permalink
Merge pull request #665 from nyrahul/main
Browse files Browse the repository at this point in the history
apparmor-enforcer: skip non-regular profiles
  • Loading branch information
nyrahul authored Apr 6, 2022
2 parents f22bc07 + 28ea045 commit e0ba982
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KubeArmor/enforcer/appArmorEnforcer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ func NewAppArmorEnforcer(node tp.Node, logger *fd.Feeder) *AppArmorEnforcer {
}

for _, file := range files {
if file.IsDir() {
if !file.Mode().IsRegular() {
ae.Logger.Printf("skipping /etc/apparmor.d/%s since not a regular file", file.Name())
continue
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e0ba982

Please sign in to comment.