Skip to content

Commit

Permalink
lxd/apparmor: Include CAP_SYS_ADMIN in rsync AppArmor profile
Browse files Browse the repository at this point in the history
The CAP_SYS_ADMIN cap is required for rsync to write to files
using security.* xattrs. In order to preserve these xattrs and
ensure proper updates when these xattrs are present, we must
include this capability in the rsync AppArmor profile.

Signed-off-by: Mark Bolton <[email protected]>
  • Loading branch information
boltmark committed Oct 8, 2024
1 parent e09d5a7 commit 38a2cac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lxd/apparmor/rsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ profile "{{ .name }}" flags=(attach_disconnected,mediate_deleted) {
capability fsetid,
capability mknod,
capability setfcap,
capability sys_admin,
unix (connect, send, receive) type=stream,
Expand Down

0 comments on commit 38a2cac

Please sign in to comment.