Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ echo '[INFO] Install docker'
## Install apparmor utils since they're missing and apparmor is enabled in the kernel
## Otherwise Docker will fail to start
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install apparmor
sudo cp files/image_config/ntp/ntp-apparmor $FILESYSTEM_ROOT/etc/apparmor.d/local/usr.sbin.ntpd
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install apt-transport-https \
ca-certificates \
curl \
Expand Down
9 changes: 9 additions & 0 deletions files/image_config/ntp/ntp-apparmor
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Apparmor configuration
# /etc/apparmor.d/local/usr.sbin.ntpd

# Allow read access to "rw" mount path of fs.squashfs
# Eg: /host/image-HEAD-sonic.../rw/usr/sbin
/**/{,s}bin/ r,
/**/usr/{,s}bin/ r,
/**/usr/local/{,s}bin/ r,