Skip to content

Commit fbf30ec

Browse files
authored
[tacacs]: Fix tcpdump report error when tacacs enabled (sonic-net#16372) (sonic-net#17077)
1 parent feaa855 commit fbf30ec

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

build_debian.sh

+4
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,10 @@ LogsDirectory=audit
424424
LogsDirectoryMode=0750
425425
EOF
426426

427+
# latest tcpdump control resource access with AppArmor.
428+
# override tcpdump profile to allow tcpdump access TACACS config file.
429+
sudo cp files/apparmor/usr.bin.tcpdump $FILESYSTEM_ROOT/etc/apparmor.d/local/usr.bin.tcpdump
430+
427431
if [[ $CONFIGURED_ARCH == amd64 ]]; then
428432
## Pre-install the fundamental packages for amd64 (x86)
429433
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install \

files/apparmor/usr.bin.tcpdump

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# tcpdump will call getpwnam get current user information, the NSS plugin nss_tacplus hook this API and need access tacacs config file.
2+
/etc/tacplus_nss.conf r,

0 commit comments

Comments
 (0)