Skip to content

Commit 8973825

Browse files
committed
interfaces/builtin/microceph_support.go: do not log sudo attempt
osd in microceph attempts to call sudo, which is denied. But that is known, and it spams the logs. Explicitly denying without "audit" will make it silent.
1 parent b6f0d6c commit 8973825

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

interfaces/builtin/microceph_support.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ const microcephSupportConnectedPlugAppArmor = `
5454
/sys/bus/rbd/supported_features r, # display enabled features
5555
/sys/bus/rbd/devices/** rwk, # manage individual block devs
5656
57+
# Avoid logging known attempts calling sudo
58+
deny /usr/bin/sudo x,
5759
`
5860

5961
func init() {

0 commit comments

Comments
 (0)