sonic-buildimage/files
arheneus@marvell.com fc1295bdcc [ntp][apparmor] Allow apparmor read permission for ntpd under rw mount path of rootfs (#6040)
Certain platform specific packages sonic-platform-xyz, installs files onto rootfs, which would be placed on read-write mount path on /host/image-name/rw/...
when ntpd starts it tries to do read access on /usr/bin /usr/sbin/ /usr/local/bin , which inturn links further to the read-write mount path also.
Where ntpd would get below Apparmor Warning message

LOG:-
audit: type=1400 audit(1606226503.240:21): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/image-HEAD-dirty-20201111.173951/rw/usr/local/bin/" pid=3733 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
audit: type=1400 audit(1606226503.240:22): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/image-HEAD-dirty-20201111.173951/rw/usr/sbin/" pid=3733 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
audit: type=1400 audit(1606226503.240:23): apparmor="DENIED" operation="open" profile="/usr/sbin/ntpd" name="/image-HEAD-dirty-20201111.173951/rw/usr/bin/" pid=3733 comm="ntpd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

Fix:
Add rw/.. mount path similar to root path access provided for ntpd in /etc/apparmor.d/usr.sbin.ntpd

Signed-off-by: Antony Rheneus <arheneus@marvell.com>
2022-10-16 05:42:35 +00:00
..
Aboot [201911][Arista] Add emmc quirks for Upperlake (#9971) 2022-02-11 13:28:11 -08:00
apt [apt] Instruct apt-get to NOT check the "Valid Until" date in Release files (#3973) 2020-01-21 10:43:51 -08:00
build_scripts [build]: combine feature and container feature table (#5081) 2020-08-09 11:55:40 -07:00
build_templates [201911][mellanox] Add CPLD update for SN2700 (#12173) 2022-09-26 07:58:28 -07:00
dhcp ZTP infrastructure changes to support DHCP discovery provisioning data (#3298) 2020-03-03 22:23:59 -08:00
docker Enabling ipv6 support on docker container network. This is needed (#5418) 2020-09-22 11:38:19 -07:00
image_config [ntp][apparmor] Allow apparmor read permission for ntpd under rw mount path of rootfs (#6040) 2022-10-16 05:42:35 +00:00
initramfs-tools [NVMe] Add NVMe SSD disc type support to installer.sh script (#6142) 2020-12-16 14:19:07 -08:00
scripts [201911][Mellanox] Collect MST dump before syncd restart on shutdown notification (#11742) 2022-08-29 16:09:26 +03:00
sshd [security] Do not generate ssh server keys for non RSA protocols (#2718) 2019-03-29 15:27:33 -07:00